+Mon Mar 26 14:14:53 2001 Owen Taylor <otaylor@redhat.com>
+
+ * Makefile.am (INCLUDES): -DG_DISABLE_DEPRECATED
+
+ * gmain.h timeloop.c: Surround the cruftiest stuff with
+ #ifndef G_DISABLE_DEPRECATED.
+
+ * gcompat.h gdate.h: Move compat defines back to
+ gdate.h, surround with #ifndef G_DISABLE_DEPRECATED.
+ Remove gcompat.h.
+
Mon Mar 26 13:34:50 2001 Owen Taylor <otaylor@redhat.com>
[ Patch from DindinX <David.Odin@bigfoot.com>, added docs ]
+Mon Mar 26 14:14:53 2001 Owen Taylor <otaylor@redhat.com>
+
+ * Makefile.am (INCLUDES): -DG_DISABLE_DEPRECATED
+
+ * gmain.h timeloop.c: Surround the cruftiest stuff with
+ #ifndef G_DISABLE_DEPRECATED.
+
+ * gcompat.h gdate.h: Move compat defines back to
+ gdate.h, surround with #ifndef G_DISABLE_DEPRECATED.
+ Remove gcompat.h.
+
Mon Mar 26 13:34:50 2001 Owen Taylor <otaylor@redhat.com>
[ Patch from DindinX <David.Odin@bigfoot.com>, added docs ]
+Mon Mar 26 14:14:53 2001 Owen Taylor <otaylor@redhat.com>
+
+ * Makefile.am (INCLUDES): -DG_DISABLE_DEPRECATED
+
+ * gmain.h timeloop.c: Surround the cruftiest stuff with
+ #ifndef G_DISABLE_DEPRECATED.
+
+ * gcompat.h gdate.h: Move compat defines back to
+ gdate.h, surround with #ifndef G_DISABLE_DEPRECATED.
+ Remove gcompat.h.
+
Mon Mar 26 13:34:50 2001 Owen Taylor <otaylor@redhat.com>
[ Patch from DindinX <David.Odin@bigfoot.com>, added docs ]
+Mon Mar 26 14:14:53 2001 Owen Taylor <otaylor@redhat.com>
+
+ * Makefile.am (INCLUDES): -DG_DISABLE_DEPRECATED
+
+ * gmain.h timeloop.c: Surround the cruftiest stuff with
+ #ifndef G_DISABLE_DEPRECATED.
+
+ * gcompat.h gdate.h: Move compat defines back to
+ gdate.h, surround with #ifndef G_DISABLE_DEPRECATED.
+ Remove gcompat.h.
+
Mon Mar 26 13:34:50 2001 Owen Taylor <otaylor@redhat.com>
[ Patch from DindinX <David.Odin@bigfoot.com>, added docs ]
+Mon Mar 26 14:14:53 2001 Owen Taylor <otaylor@redhat.com>
+
+ * Makefile.am (INCLUDES): -DG_DISABLE_DEPRECATED
+
+ * gmain.h timeloop.c: Surround the cruftiest stuff with
+ #ifndef G_DISABLE_DEPRECATED.
+
+ * gcompat.h gdate.h: Move compat defines back to
+ gdate.h, surround with #ifndef G_DISABLE_DEPRECATED.
+ Remove gcompat.h.
+
Mon Mar 26 13:34:50 2001 Owen Taylor <otaylor@redhat.com>
[ Patch from DindinX <David.Odin@bigfoot.com>, added docs ]
+Mon Mar 26 14:14:53 2001 Owen Taylor <otaylor@redhat.com>
+
+ * Makefile.am (INCLUDES): -DG_DISABLE_DEPRECATED
+
+ * gmain.h timeloop.c: Surround the cruftiest stuff with
+ #ifndef G_DISABLE_DEPRECATED.
+
+ * gcompat.h gdate.h: Move compat defines back to
+ gdate.h, surround with #ifndef G_DISABLE_DEPRECATED.
+ Remove gcompat.h.
+
Mon Mar 26 13:34:50 2001 Owen Taylor <otaylor@redhat.com>
[ Patch from DindinX <David.Odin@bigfoot.com>, added docs ]
+Mon Mar 26 14:14:53 2001 Owen Taylor <otaylor@redhat.com>
+
+ * Makefile.am (INCLUDES): -DG_DISABLE_DEPRECATED
+
+ * gmain.h timeloop.c: Surround the cruftiest stuff with
+ #ifndef G_DISABLE_DEPRECATED.
+
+ * gcompat.h gdate.h: Move compat defines back to
+ gdate.h, surround with #ifndef G_DISABLE_DEPRECATED.
+ Remove gcompat.h.
+
Mon Mar 26 13:34:50 2001 Owen Taylor <otaylor@redhat.com>
[ Patch from DindinX <David.Odin@bigfoot.com>, added docs ]
+Mon Mar 26 14:14:53 2001 Owen Taylor <otaylor@redhat.com>
+
+ * Makefile.am (INCLUDES): -DG_DISABLE_DEPRECATED
+
+ * gmain.h timeloop.c: Surround the cruftiest stuff with
+ #ifndef G_DISABLE_DEPRECATED.
+
+ * gcompat.h gdate.h: Move compat defines back to
+ gdate.h, surround with #ifndef G_DISABLE_DEPRECATED.
+ Remove gcompat.h.
+
Mon Mar 26 13:34:50 2001 Owen Taylor <otaylor@redhat.com>
[ Patch from DindinX <David.Odin@bigfoot.com>, added docs ]
SUBDIRS = . gobject gmodule gthread docs tests build
INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@ \
- -DG_DISABLE_COMPAT_H -DGLIB_COMPILATION
+ -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
EXTRA_DIST = \
ChangeLog.pre-1-2 \
gasyncqueue.h \
gbacktrace.h \
gcache.h \
- gcompat.h \
gcompletion.h \
gconvert.h \
gdataset.h \
+++ /dev/null
-/* GLIB - Library of useful routines for C programming
- *
- * Copyright (C) 2000 Ali Abdin <aliabdin@aucegypt.edu>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
- */
-
-#ifndef __G_COMPAT_H__
-#define __G_COMPAT_H__
-
-#include <gmacros.h>
-
-G_BEGIN_DECLS
-
-#ifndef G_DISABLE_COMPAT_H
-
-#define g_date_weekday g_date_get_weekday
-#define g_date_month g_date_get_month
-#define g_date_year g_date_get_year
-#define g_date_day g_date_get_day
-#define g_date_julian g_date_get_julian
-#define g_date_day_of_year g_date_get_day_of_year
-#define g_date_monday_week_of_year g_date_get_monday_week_of_year
-#define g_date_sunday_week_of_year g_date_get_sunday_week_of_year
-#define g_date_days_in_month g_date_get_days_in_month
-#define g_date_monday_weeks_in_year g_date_get_monday_weeks_in_year
-#define g_date_sunday_weeks_in_year g_date_get_sunday_weeks_in_year
-
-#endif /* G_DISABLE_COMPAT_H */
-
-G_END_DECLS
-
-#endif /* __G_COMPAT_H__ */
const gchar *format,
GDate *date);
+#ifndef G_DISABLE_DEPRECATED
+
+#define g_date_weekday g_date_get_weekday
+#define g_date_month g_date_get_month
+#define g_date_year g_date_get_year
+#define g_date_day g_date_get_day
+#define g_date_julian g_date_get_julian
+#define g_date_day_of_year g_date_get_day_of_year
+#define g_date_monday_week_of_year g_date_get_monday_week_of_year
+#define g_date_sunday_week_of_year g_date_get_sunday_week_of_year
+#define g_date_days_in_month g_date_get_days_in_month
+#define g_date_monday_weeks_in_year g_date_get_monday_weeks_in_year
+#define g_date_sunday_weeks_in_year g_date_get_sunday_weeks_in_year
+
+#endif /* G_DISABLE_DEPRECATED */
+
G_END_DECLS
#endif /* __G_DATE_H__ */
#include <gasyncqueue.h>
#include <gbacktrace.h>
#include <gcache.h>
-#include <gcompat.h>
#include <gcompletion.h>
#include <gconvert.h>
#include <gdataset.h>
SUBDIRS = . gobject gmodule gthread docs tests build
INCLUDES = -DG_LOG_DOMAIN=g_log_domain_glib @GLIB_DEBUG_FLAGS@ \
- -DG_DISABLE_COMPAT_H -DGLIB_COMPILATION
+ -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION
EXTRA_DIST = \
ChangeLog.pre-1-2 \
gasyncqueue.h \
gbacktrace.h \
gcache.h \
- gcompat.h \
gcompletion.h \
gconvert.h \
gdataset.h \
const gchar *format,
GDate *date);
+#ifndef G_DISABLE_DEPRECATED
+
+#define g_date_weekday g_date_get_weekday
+#define g_date_month g_date_get_month
+#define g_date_year g_date_get_year
+#define g_date_day g_date_get_day
+#define g_date_julian g_date_get_julian
+#define g_date_day_of_year g_date_get_day_of_year
+#define g_date_monday_week_of_year g_date_get_monday_week_of_year
+#define g_date_sunday_week_of_year g_date_get_sunday_week_of_year
+#define g_date_days_in_month g_date_get_days_in_month
+#define g_date_monday_weeks_in_year g_date_get_monday_weeks_in_year
+#define g_date_sunday_weeks_in_year g_date_get_sunday_weeks_in_year
+
+#endif /* G_DISABLE_DEPRECATED */
+
G_END_DECLS
#endif /* __G_DATE_H__ */
#include <gasyncqueue.h>
#include <gbacktrace.h>
#include <gcache.h>
-#include <gcompat.h>
#include <gcompletion.h>
#include <gconvert.h>
#include <gdataset.h>
/* ============== Compat main loop stuff ================== */
+#ifndef G_DISABLE_DEPRECATED
+
/* Legacy names for GMainLoop functions
*/
#define g_main_new(is_running) g_main_loop_new (NULL, is_running);
#define g_main_destroy(loop) g_main_loop_unref(loop)
#define g_main_is_running(loop) g_main_loop_is_running(loop)
-/* Source manipulation by ID */
-gboolean g_source_remove (guint tag);
-gboolean g_source_remove_by_user_data (gpointer user_data);
-gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs,
- gpointer user_data);
-
/* Functions to manipulate the default main loop
*/
#define g_main_set_poll_func(func) g_main_context_set_poll_func (NULL, func)
+#endif /* G_DISABLE_DEPRECATED */
+
+/* Source manipulation by ID */
+gboolean g_source_remove (guint tag);
+gboolean g_source_remove_by_user_data (gpointer user_data);
+gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs,
+ gpointer user_data);
+
/* Idles and timeouts */
guint g_timeout_add_full (gint priority,
guint interval,
/* ============== Compat main loop stuff ================== */
+#ifndef G_DISABLE_DEPRECATED
+
/* Legacy names for GMainLoop functions
*/
#define g_main_new(is_running) g_main_loop_new (NULL, is_running);
#define g_main_destroy(loop) g_main_loop_unref(loop)
#define g_main_is_running(loop) g_main_loop_is_running(loop)
-/* Source manipulation by ID */
-gboolean g_source_remove (guint tag);
-gboolean g_source_remove_by_user_data (gpointer user_data);
-gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs,
- gpointer user_data);
-
/* Functions to manipulate the default main loop
*/
#define g_main_set_poll_func(func) g_main_context_set_poll_func (NULL, func)
+#endif /* G_DISABLE_DEPRECATED */
+
+/* Source manipulation by ID */
+gboolean g_source_remove (guint tag);
+gboolean g_source_remove_by_user_data (gpointer user_data);
+gboolean g_source_remove_by_funcs_user_data (GSourceFuncs *funcs,
+ gpointer user_data);
+
/* Idles and timeouts */
guint g_timeout_add_full (gint priority,
guint interval,
n_active_children--;
if (n_active_children == 0)
- g_main_quit (loop);
+ g_main_loop_quit (loop);
return FALSE;
}
create_child ();
getrusage (RUSAGE_SELF, &old_usage);
- loop = g_main_new (FALSE);
- g_main_run (loop);
+ loop = g_main_loop_new (NULL, FALSE);
+ g_main_loop_run (loop);
getrusage (RUSAGE_SELF, &new_usage);
printf ("Elapsed user: %g\n",
n_active_children--;
if (n_active_children == 0)
- g_main_quit (loop);
+ g_main_loop_quit (loop);
return FALSE;
}
create_child ();
getrusage (RUSAGE_SELF, &old_usage);
- loop = g_main_new (FALSE);
- g_main_run (loop);
+ loop = g_main_loop_new (NULL, FALSE);
+ g_main_loop_run (loop);
getrusage (RUSAGE_SELF, &new_usage);
printf ("Elapsed user: %g\n",