#define EGLIB_STRINGIFY(x) #x
#define EGLIB_TOSTRING(x) EGLIB_STRINGIFY(x)
#define G_STRLOC __FILE__ ":" EGLIB_TOSTRING(__LINE__) ":"
+
+#define G_BEGIN_DECLS
+#define G_END_DECLS
+
+#define G_CONST_RETURN const
+
/*
* Allocation
*/
gsize g_strlcpy (gchar *dest, const gchar *src, gsize dest_size);
#endif
+gchar *g_ascii_strdown (const gchar *str, gssize len);
+
#define g_ascii_isspace(c) (isspace (c) != 0)
#define g_ascii_isalpha(c) (isalpha (c) != 0)
#define g_ascii_isprint(c) (isprint (c) != 0)
guint len;
};
-GPtrArray *g_ptr_array_new ();
+GPtrArray *g_ptr_array_new (void);
GPtrArray *g_ptr_array_sized_new (guint reserved_size);
void g_ptr_array_add (GPtrArray *array, gpointer data);
gboolean g_ptr_array_remove (GPtrArray *array, gpointer data);
GQueue *g_queue_new (void);
void g_queue_free (GQueue *queue);
-
-/*
- * Modules
- */
-typedef enum {
- G_MODULE_BIND_LAZY = 0x01,
- G_MODULE_BIND_LOCAL = 0x02,
- G_MODULE_BIND_MASK = 0x03
-} GModuleFlags;
-typedef struct _GModule GModule;
-
-GModule *g_module_open (const gchar *file, GModuleFlags flags);
-gboolean g_module_symbol (GModule *module, const gchar *symbol_name,
- gpointer *symbol);
-const gchar *g_module_error (void);
-gboolean g_module_close (GModule *module);
-gchar * g_module_build_path (const gchar *directory, const gchar *module_name);
/*
* Messages
*/
* Conversions
*/
-gpointer g_convert_error_quark();
+gpointer g_convert_error_quark(void);
/*
#define MAX(a,b) (((a)>(b)) ? (a) : (b))
#endif
+#ifndef MIN
+#define MIN(a,b) (((a)<(b)) ? (a) : (b))
+#endif
+
/* FIXME: Implement these two for gcc */
#define G_LIKELY(x) (x)
#define G_UNLIKELY(x) (x)
const gchar *g_get_home_dir (void);
const gchar *g_get_tmp_dir (void);
const gchar *g_get_user_name (void);
+gchar *g_get_prgname (void);
+void g_set_prgname (const gchar *prgname);
/*
* Shell
GHashTable *g_hash_table_new_full_alloc (GHashFunc hash_func, GEqualFunc key_equal_func,
GDestroyNotify key_destroy_func, GDestroyNotify value_destroy_func,
GMAlloc allocfn, GMFree freefn);
+
+#define GLIB_CHECK_VERSION(a,b,c) TRUE
#endif