summaryrefslogtreecommitdiff
path: root/gscanner.c
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1998-09-07 09:43:54 +0000
committerTim Janik <timj@src.gnome.org>1998-09-07 09:43:54 +0000
commit0b42c37e7d91a517372108e99105556f5146b0b5 (patch)
tree9d68a6a0a14e78a40fefde1901f544597ce6d64e /gscanner.c
parentaffa6a06770c047761586bede62ca8e8cdef3cfb (diff)
downloadglib-0b42c37e7d91a517372108e99105556f5146b0b5.tar.gz
check for all three inline keywords individually.
Mon Sep 7 07:53:21 1998 Tim Janik <timj@gtk.org> * configure.in: check for all three inline keywords individually. * glib.h: inlining hassle. for compilers that don't allow the `inline' keyword, mostly because of strict ANSI C compliance or dumbness, we try to fall back to either `__inline__' or `__inline'. we define G_CAN_INLINE, if the compiler seems to be actually *capable* to do function inlining, in which case inline function bodys do make sense. we also define G_INLINE_FUNC to properly export the function prototypes if no inlinig can be performed. we special case most of the stuff, so inline functions can have a normal implementation by defining G_INLINE_FUNC to extern and G_CAN_INLINE to 1. * ltconfig: (compiler PIC flag test): special case linux for non aout systems to honour lcc's position independant code (cases "linux*aout)" and "linux*)" got added). (this needs to go into libtool which does an advanced test, checking for __LCC__). * autogen.sh: take $CC=lcc into account by invoking automake with --include-deps so lcc isn't scared by gcc's auto-dependancy generation code. care about $ACLOCAL_FLAGS. optionally feature autoheader. * minor fixups in other places to cure some of lcc's warnings.
Diffstat (limited to 'gscanner.c')
-rw-r--r--gscanner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gscanner.c b/gscanner.c
index f25b11d0c..85773680f 100644
--- a/gscanner.c
+++ b/gscanner.c
@@ -630,7 +630,7 @@ g_scanner_cur_token (GScanner *scanner)
GValue
g_scanner_cur_value (GScanner *scanner)
{
- register GValue v;
+ GValue v;
v.v_int = 0;
g_return_val_if_fail (scanner != NULL, v);
@@ -1138,8 +1138,8 @@ g_scanner_get_token_ll (GScanner *scanner,
register gboolean in_string_dq;
static guchar ch;
register GTokenType token;
- register GValue value;
register GString *gstring;
+ GValue value;
config = scanner->config;
(*value_p).v_int = 0;