Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ctags Now understands white space between # and define.
details: https://anonhg.NetBSD.org/src/rev/9e1b96084421
branches: trunk
changeset: 473241:9e1b96084421
user: ross <ross%NetBSD.org@localhost>
date: Wed May 26 08:43:30 1999 +0000
description:
Now understands white space between # and define.
diffstat:
usr.bin/ctags/C.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r fa84080046c7 -r 9e1b96084421 usr.bin/ctags/C.c
--- a/usr.bin/ctags/C.c Wed May 26 06:42:57 1999 +0000
+++ b/usr.bin/ctags/C.c Wed May 26 08:43:30 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: C.c,v 1.5 1998/07/24 07:30:08 ross Exp $ */
+/* $NetBSD: C.c,v 1.6 1999/05/26 08:43:30 ross Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)C.c 8.4 (Berkeley) 4/2/94";
#else
-__RCSID("$NetBSD: C.c,v 1.5 1998/07/24 07:30:08 ross Exp $");
+__RCSID("$NetBSD: C.c,v 1.6 1999/05/26 08:43:30 ross Exp $");
#endif
#endif /* not lint */
@@ -349,6 +349,10 @@
char tok[MAXTOKEN]; /* storage buffer */
curline = lineno;
+ do if (GETC(==, EOF))
+ return;
+ while(c != '\n' && iswhite(c));
+ ungetc(c, inf);
for (sp = tok;;) { /* get next token */
if (GETC(==, EOF))
return;
Home |
Main Index |
Thread Index |
Old Index