+Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
+
+ * grel.c: made private functions static.
+
Sun Aug 16 23:23:46 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gmodule/Makefile.am: added gmodule-dl.c and gmodule-dld.c to
+Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
+
+ * grel.c: made private functions static.
+
Sun Aug 16 23:23:46 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gmodule/Makefile.am: added gmodule-dl.c and gmodule-dld.c to
+Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
+
+ * grel.c: made private functions static.
+
Sun Aug 16 23:23:46 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gmodule/Makefile.am: added gmodule-dl.c and gmodule-dld.c to
+Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
+
+ * grel.c: made private functions static.
+
Sun Aug 16 23:23:46 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gmodule/Makefile.am: added gmodule-dl.c and gmodule-dld.c to
+Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
+
+ * grel.c: made private functions static.
+
Sun Aug 16 23:23:46 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gmodule/Makefile.am: added gmodule-dl.c and gmodule-dld.c to
+Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
+
+ * grel.c: made private functions static.
+
Sun Aug 16 23:23:46 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gmodule/Makefile.am: added gmodule-dl.c and gmodule-dld.c to
+Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
+
+ * grel.c: made private functions static.
+
Sun Aug 16 23:23:46 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gmodule/Makefile.am: added gmodule-dl.c and gmodule-dld.c to
+Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
+
+ * grel.c: made private functions static.
+
Sun Aug 16 23:23:46 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* gmodule/Makefile.am: added gmodule-dl.c and gmodule-dld.c to
GList* g_list_remove (GList *list,
gpointer data);
GList* g_list_remove_link (GList *list,
- GList *link);
+ GList *llink);
GList* g_list_reverse (GList *list);
GList* g_list_nth (GList *list,
guint n);
gpointer data,
GCompareFunc func);
gint g_list_position (GList *list,
- GList *link);
+ GList *llink);
gint g_list_index (GList *list,
gpointer data);
GList* g_list_last (GList *list);
GSList* g_slist_remove (GSList *list,
gpointer data);
GSList* g_slist_remove_link (GSList *list,
- GSList *link);
+ GSList *llink);
GSList* g_slist_reverse (GSList *list);
GSList* g_slist_nth (GSList *list,
guint n);
gpointer data,
GCompareFunc func);
gint g_slist_position (GSList *list,
- GSList *link);
+ GSList *llink);
gint g_slist_index (GSList *list,
gpointer data);
GSList* g_slist_last (GSList *list);
GList* g_list_remove (GList *list,
gpointer data);
GList* g_list_remove_link (GList *list,
- GList *link);
+ GList *llink);
GList* g_list_reverse (GList *list);
GList* g_list_nth (GList *list,
guint n);
gpointer data,
GCompareFunc func);
gint g_list_position (GList *list,
- GList *link);
+ GList *llink);
gint g_list_index (GList *list,
gpointer data);
GList* g_list_last (GList *list);
GSList* g_slist_remove (GSList *list,
gpointer data);
GSList* g_slist_remove_link (GSList *list,
- GSList *link);
+ GSList *llink);
GSList* g_slist_reverse (GSList *list);
GSList* g_slist_nth (GSList *list,
guint n);
gpointer data,
GCompareFunc func);
gint g_slist_position (GSList *list,
- GSList *link);
+ GSList *llink);
gint g_slist_index (GSList *list,
gpointer data);
GSList* g_slist_last (GSList *list);
gpointer *data;
};
-gboolean
-tuple_equal_2 (gconstpointer v_a, gconstpointer v_b)
+static gboolean
+tuple_equal_2 (gconstpointer v_a,
+ gconstpointer v_b)
{
gpointer* a = (gpointer*) v_a;
gpointer* b = (gpointer*) v_b;
return a[0] == b[0] && a[1] == b[1];
}
-guint
+static guint
tuple_hash_2 (gconstpointer v_a)
{
gpointer* a = (gpointer*) v_a;
return (gulong)a[0] ^ (gulong)a[1];
}
-GHashFunc
+static GHashFunc
tuple_hash (gint fields)
{
switch (fields)
return NULL;
}
-GCompareFunc
+static GCompareFunc
tuple_equal (gint fields)
{
switch (fields)
/* Print
*/
-void
-g_relation_print_one (gpointer tuple_key, gpointer tuple_value, gpointer user_data)
+static void
+g_relation_print_one (gpointer tuple_key,
+ gpointer tuple_value,
+ gpointer user_data)
{
gint i;
GRealRelation* rel = (GRealRelation*) user_data;
g_print ("]\n");
}
-void
-g_relation_print_index (gpointer tuple_key, gpointer tuple_value, gpointer user_data)
+static void
+g_relation_print_index (gpointer tuple_key,
+ gpointer tuple_value,
+ gpointer user_data)
{
GRealRelation* rel = (GRealRelation*) user_data;
GHashTable* table = (GHashTable*) tuple_value;
return len;
}
-char*
+extern gchar* g_vsprintf (const gchar *fmt, va_list *args, va_list *args2);
+gchar*
g_vsprintf (const gchar *fmt,
- va_list *args,
- va_list *args2)
+ va_list *args,
+ va_list *args2)
{
static gchar *buf = NULL;
- static gint alloc = 0;
+ static guint alloc = 0;
+ guint len;
- gint len = get_length_upper_bound (fmt, args);
+ len = get_length_upper_bound (fmt, args);
if (len >= alloc)
{
if (buf)
g_free (buf);
- alloc = nearest_pow (MAX(len + 1, 1024 + 1));
+ alloc = nearest_pow (MAX (len + 1, 1024 + 1));
- buf = g_new (char, alloc);
+ buf = g_new (gchar, alloc);
}
vsprintf (buf, fmt, *args2);
gpointer *data;
};
-gboolean
-tuple_equal_2 (gconstpointer v_a, gconstpointer v_b)
+static gboolean
+tuple_equal_2 (gconstpointer v_a,
+ gconstpointer v_b)
{
gpointer* a = (gpointer*) v_a;
gpointer* b = (gpointer*) v_b;
return a[0] == b[0] && a[1] == b[1];
}
-guint
+static guint
tuple_hash_2 (gconstpointer v_a)
{
gpointer* a = (gpointer*) v_a;
return (gulong)a[0] ^ (gulong)a[1];
}
-GHashFunc
+static GHashFunc
tuple_hash (gint fields)
{
switch (fields)
return NULL;
}
-GCompareFunc
+static GCompareFunc
tuple_equal (gint fields)
{
switch (fields)
/* Print
*/
-void
-g_relation_print_one (gpointer tuple_key, gpointer tuple_value, gpointer user_data)
+static void
+g_relation_print_one (gpointer tuple_key,
+ gpointer tuple_value,
+ gpointer user_data)
{
gint i;
GRealRelation* rel = (GRealRelation*) user_data;
g_print ("]\n");
}
-void
-g_relation_print_index (gpointer tuple_key, gpointer tuple_value, gpointer user_data)
+static void
+g_relation_print_index (gpointer tuple_key,
+ gpointer tuple_value,
+ gpointer user_data)
{
GRealRelation* rel = (GRealRelation*) user_data;
GHashTable* table = (GHashTable*) tuple_value;
return len;
}
-char*
+extern gchar* g_vsprintf (const gchar *fmt, va_list *args, va_list *args2);
+gchar*
g_vsprintf (const gchar *fmt,
- va_list *args,
- va_list *args2)
+ va_list *args,
+ va_list *args2)
{
static gchar *buf = NULL;
- static gint alloc = 0;
+ static guint alloc = 0;
+ guint len;
- gint len = get_length_upper_bound (fmt, args);
+ len = get_length_upper_bound (fmt, args);
if (len >= alloc)
{
if (buf)
g_free (buf);
- alloc = nearest_pow (MAX(len + 1, 1024 + 1));
+ alloc = nearest_pow (MAX (len + 1, 1024 + 1));
- buf = g_new (char, alloc);
+ buf = g_new (gchar, alloc);
}
vsprintf (buf, fmt, *args2);