mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-12 12:14:06 +02:00
version bump to 1.1.1, binary age 1, interface age 0. updates. updates.
Tue Aug 4 15:17:54 1998 Tim Janik <timj@gtk.org> * configure.in: version bump to 1.1.1, binary age 1, interface age 0. * NEWS: updates. * README: updates. * INSTALL: updates and fixes. * COPYING: include the GNU LGPL, rather than shipping an empty file. * AUTHORS: listed original authors here, and added people who made significant improvements to glib. * glib.h: * gutils.c: implement g_get_current_dir() which returns a newly allocated string, instead of a g_getcwd() variant that operates on a static buffer. export glib_interface_age and glib_binary_age. as a convenience, macro definitions have been added for g_node_insert_data, g_node_insert_data_before, g_node_append_data and g_node_prepend_data. * testglib.c: minor cleanups, print current dir.
This commit is contained in:
32
glib.h
32
glib.h
@@ -782,6 +782,23 @@ GNode* g_node_find (GNode *root,
|
||||
GTraverseFlags flags,
|
||||
gpointer data);
|
||||
|
||||
/* convenience macros */
|
||||
#define g_node_append(parent, node) G_STMT_START { \
|
||||
g_node_insert_before ((parent), NULL, (node)); \
|
||||
} G_STMT_END
|
||||
#define g_node_insert_data(parent, position, data) G_STMT_START { \
|
||||
g_node_insert ((parent), (position), g_node_new ((data))); \
|
||||
} G_STMT_END
|
||||
#define g_node_insert_data_before(parent, sibling, data) G_STMT_START { \
|
||||
g_node_insert_before ((parent), (sibling), g_node_new ((data))); \
|
||||
} G_STMT_END
|
||||
#define g_node_prepend_data(parent, data) G_STMT_START { \
|
||||
g_node_prepend ((parent), g_node_new ((data))); \
|
||||
} G_STMT_END
|
||||
#define g_node_append_data(parent, data) G_STMT_START { \
|
||||
g_node_insert_before ((parent), NULL, g_node_new ((data))); \
|
||||
} G_STMT_END
|
||||
|
||||
/* traversal function, assumes that `node' is root
|
||||
* (only traverses `node' and its subtree).
|
||||
* this function is just a high level interface to
|
||||
@@ -827,11 +844,6 @@ GNode* g_node_last_sibling (GNode *node);
|
||||
((GNode*) (node))->next : NULL)
|
||||
#define g_node_first_child(node) ((node) ? \
|
||||
((GNode*) (node))->children : NULL)
|
||||
#define g_node_append(parent, node) G_STMT_START { \
|
||||
g_node_insert_before ((parent), \
|
||||
NULL, \
|
||||
(node)); \
|
||||
} G_STMT_END
|
||||
|
||||
|
||||
|
||||
@@ -964,10 +976,10 @@ gint g_snprintf (gchar *string,
|
||||
gchar const *format,
|
||||
...) G_GNUC_PRINTF (3, 4);
|
||||
gchar* g_basename (const gchar *file_name);
|
||||
|
||||
/* strings are newly allocated with g_malloc() */
|
||||
gchar* g_dirname (const gchar *file_name);
|
||||
#if 0
|
||||
gchar* g_getcwd (void);
|
||||
#endif
|
||||
gchar* g_get_current_dir (void);
|
||||
|
||||
|
||||
/* We make the assumption that if memmove isn't available, then
|
||||
@@ -976,7 +988,7 @@ gchar* g_getcwd (void);
|
||||
#ifdef HAVE_MEMMOVE
|
||||
#define g_memmove memmove
|
||||
#else
|
||||
#define g_memmove(a,b,c) bcopy(b,a,c)
|
||||
#define g_memmove(a,b,c) bcopy((b), (a), (c))
|
||||
#endif
|
||||
|
||||
/* Errors
|
||||
@@ -1451,6 +1463,8 @@ gpointer g_tuples_index (GTuples *tuples,
|
||||
extern const guint glib_major_version;
|
||||
extern const guint glib_minor_version;
|
||||
extern const guint glib_micro_version;
|
||||
extern const guint glib_interface_age;
|
||||
extern const guint glib_binary_age;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user