Update of /cvsroot/cscope/cscope/src
In directory usw-pr-cvs1:/tmp/cvs-serv11081/src
Modified Files:
scanner.l
Log Message:
Treat tag-less enum/struct/union as in fscanner.l
Index: scanner.l
===================================================================
RCS file: /cvsroot/cscope/cscope/src/scanner.l,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** scanner.l 2001/06/01 12:43:24 1.5
--- scanner.l 2001/06/26 13:55:07 1.6
***************
*** 358,366 ****
/* NOTREACHED */
}
! (enum|struct|union)/([ \t\n]+{identifier})?[ \t\n]*\{ { /* enum/struct/union definition */
tagdef = *(yytext + first);
goto ident;
/* NOTREACHED */
}
{identifier}/[ \t]*\([ \t\na-zA-Z0-9_*&[\]=,.]*\)[ \t\n()]*[:a-zA-Z_#{] {
--- 358,375 ----
/* NOTREACHED */
}
! (enum|struct|union)/([ \t\n]+{identifier})[ \t\n]*\{ { /* enum/struct/union definition */
tagdef = *(yytext + first);
goto ident;
/* NOTREACHED */
}
+ (enum|struct|union)/[ \t\n]*\{ { /* tag-less e/s/u definition */
+ tagdef = yytext[first];
+ if (braces == 0) {
+ esudef = YES;
+ }
+ last = first;
+ tagdef = '\0';
+ goto more;
+ }
{identifier}/[ \t]*\([ \t\na-zA-Z0-9_*&[\]=,.]*\)[ \t\n()]*[:a-zA-Z_#{] {
|