Mercurial > emacs
diff lib-src/etags.c @ 35758:aa069bbee4c8
Work around small preprocessor bugs in sunos4 pcc and MinGW.
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Wed, 31 Jan 2001 08:53:56 +0000 |
parents | e0acf4b43873 |
children | 3584fc1b9b79 |
line wrap: on
line diff
--- a/lib-src/etags.c Wed Jan 31 08:32:22 2001 +0000 +++ b/lib-src/etags.c Wed Jan 31 08:53:56 2001 +0000 @@ -32,7 +32,7 @@ * Francesco Potort́ <pot@gnu.org> has maintained it since 1993. */ -char pot_etags_version[] = "@(#) pot revision number is 14.13"; +char pot_etags_version[] = "@(#) pot revision number is $Revision: 14.14 $"; #define TRUE 1 #define FALSE 0 @@ -122,14 +122,13 @@ #ifndef errno extern int errno; #endif -#include <assert.h> #include <sys/types.h> #include <sys/stat.h> -/* Work around bug in Mingw assert.h. */ -#if defined (__MINGW32__) && defined(NDEBUG) && defined (assert) -#undef assert -#define assert(x) ((void) 0) +#include <assert.h> +#ifdef NDEBUG +# undef assert /* some systems have a buggy assert.h */ +# define assert(x) ((void) 0) #endif #if !defined (S_ISREG) && defined (S_IFREG) @@ -2983,7 +2982,7 @@ lp += 2; toklen += 2; c = lp[-1]; - goto intoken; + goto still_in_token; } else { @@ -3105,7 +3104,7 @@ } } /* if (endtoken (c)) */ else if (intoken (c)) - intoken: + still_in_token: { toklen++; continue;