Make libevolution-util compilable.

This commit is contained in:
Srinivasa Ragavan
2012-02-29 17:20:27 +05:30
committed by Matthew Barnes
parent 449e05f1b2
commit 2e7fe9a4ea
10 changed files with 316 additions and 247 deletions

View File

@ -0,0 +1,42 @@
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with the program; if not, see <http://www.gnu.org/licenses/>
*
*
* Authors:
Srinivasa Ragavan <sragavan@gnome.org>
*
* Copyright (C) 2012 Intel Corporation (www.intel.com)
*
*/
#ifndef EVOLUTION_UTIL_H
#define EVOLUTION_UTIL_H
#include <sys/types.h>
#include <glib.h>
/* String to/from double conversion functions */
gdouble e_flexible_strtod (const gchar *nptr,
gchar **endptr);
/* 29 bytes should enough for all possible values that
* g_ascii_dtostr can produce with the %.17g format.
* Then add 10 for good measure */
#define E_ASCII_DTOSTR_BUF_SIZE (DBL_DIG + 12 + 10)
gchar * e_ascii_dtostr (gchar *buffer,
gint buf_len,
const gchar *format,
gdouble d);
#endif /* EVOLUTION_UTIL_H */