aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog8
-rw-r--r--lib-src/etags.c15
2 files changed, 15 insertions, 8 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index d7685bfe124..9691dddf9fd 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,11 @@
12001-01-31 Francesco Potorti` <pot@gnu.org>
2
3 * etags.c: [NDEBUG] #undef assert and #define it as ((void)0), for
4 the sake of some buggy assert.h (e.g. in MinGW and sunos4 pcc).
5 (C_entries): Tag token renamed to still_in_token because sunos4
6 pcc wants to expand it as the token() macro even though it has no
7 arguments.
8
12001-01-30 Andrew Innes <andrewi@gnu.org> 92001-01-30 Andrew Innes <andrewi@gnu.org>
2 10
3 * etags.c (assert) [__MINGW32__]: Redefine assert to work around a 11 * etags.c (assert) [__MINGW32__]: Redefine assert to work around a
diff --git a/lib-src/etags.c b/lib-src/etags.c
index e17aefbc557..2071fb52b2f 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -32,7 +32,7 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
32 * Francesco Potort́ <pot@gnu.org> has maintained it since 1993. 32 * Francesco Potort́ <pot@gnu.org> has maintained it since 1993.
33 */ 33 */
34 34
35char pot_etags_version[] = "@(#) pot revision number is 14.13"; 35char pot_etags_version[] = "@(#) pot revision number is $Revision: 14.14 $";
36 36
37#define TRUE 1 37#define TRUE 1
38#define FALSE 0 38#define FALSE 0
@@ -122,14 +122,13 @@ char pot_etags_version[] = "@(#) pot revision number is 14.13";
122#ifndef errno 122#ifndef errno
123 extern int errno; 123 extern int errno;
124#endif 124#endif
125#include <assert.h>
126#include <sys/types.h> 125#include <sys/types.h>
127#include <sys/stat.h> 126#include <sys/stat.h>
128 127
129/* Work around bug in Mingw assert.h. */ 128#include <assert.h>
130#if defined (__MINGW32__) && defined(NDEBUG) && defined (assert) 129#ifdef NDEBUG
131#undef assert 130# undef assert /* some systems have a buggy assert.h */
132#define assert(x) ((void) 0) 131# define assert(x) ((void) 0)
133#endif 132#endif
134 133
135#if !defined (S_ISREG) && defined (S_IFREG) 134#if !defined (S_ISREG) && defined (S_IFREG)
@@ -2983,7 +2982,7 @@ C_entries (c_ext, inf)
2983 lp += 2; 2982 lp += 2;
2984 toklen += 2; 2983 toklen += 2;
2985 c = lp[-1]; 2984 c = lp[-1];
2986 goto intoken; 2985 goto still_in_token;
2987 } 2986 }
2988 else 2987 else
2989 { 2988 {
@@ -3105,7 +3104,7 @@ C_entries (c_ext, inf)
3105 } 3104 }
3106 } /* if (endtoken (c)) */ 3105 } /* if (endtoken (c)) */
3107 else if (intoken (c)) 3106 else if (intoken (c))
3108 intoken: 3107 still_in_token:
3109 { 3108 {
3110 toklen++; 3109 toklen++;
3111 continue; 3110 continue;