mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
removed useless g_string(x) macro that cluttered the namespace and was
Tue Oct 12 14:17:12 1999 Tim Janik <timj@gtk.org> * glib.h: removed useless g_string(x) macro that cluttered the namespace and was just a poor wrapper around the cpp '#' symbol, use #x if you need to work around this. added new macro G_STRINGIFY(arg) that will convert arg to a string, no matter whether it contains macros or not.
This commit is contained in:
parent
52ad8a9c2a
commit
9a65b20e07
@ -1,3 +1,11 @@
|
|||||||
|
Tue Oct 12 14:17:12 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h: removed useless g_string(x) macro that cluttered the namespace
|
||||||
|
and was just a poor wrapper around the cpp '#' symbol, use #x if you
|
||||||
|
need to work around this.
|
||||||
|
added new macro G_STRINGIFY(arg) that will convert arg to a string,
|
||||||
|
no matter whether it contains macros or not.
|
||||||
|
|
||||||
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Tue Oct 12 14:17:12 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h: removed useless g_string(x) macro that cluttered the namespace
|
||||||
|
and was just a poor wrapper around the cpp '#' symbol, use #x if you
|
||||||
|
need to work around this.
|
||||||
|
added new macro G_STRINGIFY(arg) that will convert arg to a string,
|
||||||
|
no matter whether it contains macros or not.
|
||||||
|
|
||||||
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Tue Oct 12 14:17:12 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h: removed useless g_string(x) macro that cluttered the namespace
|
||||||
|
and was just a poor wrapper around the cpp '#' symbol, use #x if you
|
||||||
|
need to work around this.
|
||||||
|
added new macro G_STRINGIFY(arg) that will convert arg to a string,
|
||||||
|
no matter whether it contains macros or not.
|
||||||
|
|
||||||
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Tue Oct 12 14:17:12 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h: removed useless g_string(x) macro that cluttered the namespace
|
||||||
|
and was just a poor wrapper around the cpp '#' symbol, use #x if you
|
||||||
|
need to work around this.
|
||||||
|
added new macro G_STRINGIFY(arg) that will convert arg to a string,
|
||||||
|
no matter whether it contains macros or not.
|
||||||
|
|
||||||
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Tue Oct 12 14:17:12 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h: removed useless g_string(x) macro that cluttered the namespace
|
||||||
|
and was just a poor wrapper around the cpp '#' symbol, use #x if you
|
||||||
|
need to work around this.
|
||||||
|
added new macro G_STRINGIFY(arg) that will convert arg to a string,
|
||||||
|
no matter whether it contains macros or not.
|
||||||
|
|
||||||
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Tue Oct 12 14:17:12 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h: removed useless g_string(x) macro that cluttered the namespace
|
||||||
|
and was just a poor wrapper around the cpp '#' symbol, use #x if you
|
||||||
|
need to work around this.
|
||||||
|
added new macro G_STRINGIFY(arg) that will convert arg to a string,
|
||||||
|
no matter whether it contains macros or not.
|
||||||
|
|
||||||
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Tue Oct 12 14:17:12 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h: removed useless g_string(x) macro that cluttered the namespace
|
||||||
|
and was just a poor wrapper around the cpp '#' symbol, use #x if you
|
||||||
|
need to work around this.
|
||||||
|
added new macro G_STRINGIFY(arg) that will convert arg to a string,
|
||||||
|
no matter whether it contains macros or not.
|
||||||
|
|
||||||
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Tue Oct 12 14:17:12 1999 Tim Janik <timj@gtk.org>
|
||||||
|
|
||||||
|
* glib.h: removed useless g_string(x) macro that cluttered the namespace
|
||||||
|
and was just a poor wrapper around the cpp '#' symbol, use #x if you
|
||||||
|
need to work around this.
|
||||||
|
added new macro G_STRINGIFY(arg) that will convert arg to a string,
|
||||||
|
no matter whether it contains macros or not.
|
||||||
|
|
||||||
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
1999-10-12 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
|
||||||
|
1
NEWS
1
NEWS
@ -13,6 +13,7 @@ What's new in GLib 1.3.1:
|
|||||||
* New thread-safe random number generator Mersenne Twister.
|
* New thread-safe random number generator Mersenne Twister.
|
||||||
* g_strcompress() added, g_strescape() had a slight API change, and
|
* g_strcompress() added, g_strescape() had a slight API change, and
|
||||||
more tightly defined semantics.
|
more tightly defined semantics.
|
||||||
|
* the g_string(x) macro has been removed, #x may be used instead.
|
||||||
|
|
||||||
Overview of Changes in GLib 1.2.1:
|
Overview of Changes in GLib 1.2.1:
|
||||||
|
|
||||||
|
6
glib.h
6
glib.h
@ -131,6 +131,9 @@ extern "C" {
|
|||||||
#undef CLAMP
|
#undef CLAMP
|
||||||
#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
|
#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
|
||||||
|
|
||||||
|
#define G_STRINGIFY(macro_or_string) G_STRINGIFY_ARG (macro_or_string)
|
||||||
|
#define G_STRINGIFY_ARG(contents) #contents
|
||||||
|
|
||||||
|
|
||||||
/* Define G_VA_COPY() to do the right thing for copying va_list variables.
|
/* Define G_VA_COPY() to do the right thing for copying va_list variables.
|
||||||
* glibconfig.h may have already defined G_VA_COPY as va_copy or __va_copy.
|
* glibconfig.h may have already defined G_VA_COPY as va_copy or __va_copy.
|
||||||
@ -326,9 +329,6 @@ extern "C" {
|
|||||||
} G_STMT_END
|
} G_STMT_END
|
||||||
|
|
||||||
|
|
||||||
#define g_string(x) #x
|
|
||||||
|
|
||||||
|
|
||||||
/* Provide macros for error handling. The "assert" macros will
|
/* Provide macros for error handling. The "assert" macros will
|
||||||
* exit on failure. The "return" macros will exit the current
|
* exit on failure. The "return" macros will exit the current
|
||||||
* function. Two different definitions are given for the macros
|
* function. Two different definitions are given for the macros
|
||||||
|
@ -131,6 +131,9 @@ extern "C" {
|
|||||||
#undef CLAMP
|
#undef CLAMP
|
||||||
#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
|
#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
|
||||||
|
|
||||||
|
#define G_STRINGIFY(macro_or_string) G_STRINGIFY_ARG (macro_or_string)
|
||||||
|
#define G_STRINGIFY_ARG(contents) #contents
|
||||||
|
|
||||||
|
|
||||||
/* Define G_VA_COPY() to do the right thing for copying va_list variables.
|
/* Define G_VA_COPY() to do the right thing for copying va_list variables.
|
||||||
* glibconfig.h may have already defined G_VA_COPY as va_copy or __va_copy.
|
* glibconfig.h may have already defined G_VA_COPY as va_copy or __va_copy.
|
||||||
@ -326,9 +329,6 @@ extern "C" {
|
|||||||
} G_STMT_END
|
} G_STMT_END
|
||||||
|
|
||||||
|
|
||||||
#define g_string(x) #x
|
|
||||||
|
|
||||||
|
|
||||||
/* Provide macros for error handling. The "assert" macros will
|
/* Provide macros for error handling. The "assert" macros will
|
||||||
* exit on failure. The "return" macros will exit the current
|
* exit on failure. The "return" macros will exit the current
|
||||||
* function. Two different definitions are given for the macros
|
* function. Two different definitions are given for the macros
|
||||||
|
Loading…
Reference in New Issue
Block a user