/[global]/global/gctags/asm_scan.l
ViewVC logotype

Diff of /global/gctags/asm_scan.l

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by h-iwamoto, Sat Oct 9 04:14:33 2004 UTC revision 1.2 by h-iwamoto, Thu Oct 14 13:18:52 2004 UTC
# Line 23  Line 23 
23  #include <config.h>  #include <config.h>
24  #endif  #endif
25  #include <stdio.h>  #include <stdio.h>
26    #ifdef HAVE_STRING_H
27    #include <string.h>
28    #else
29    #include <strings.h>
30    #endif
31    
32  #include "asm_parse.h"  #include "asm_parse.h"
33    #include "asm_res.h"
34  #include "die.h"  #include "die.h"
35  #include "gctags.h"  #include "gctags.h"
36    #include "gparam.h"
37  #include "linetable.h"  #include "linetable.h"
38  #include "strbuf.h"  #include "strbuf.h"
39    
# Line 116  WORD           {ALPHA}{ALPHANUM}* Line 123  WORD           {ALPHA}{ALPHANUM}*
123  <INITIAL>{  <INITIAL>{
124          ^[ \t]*\#[ \t]*define   { yy_push_state(PREPROCESSOR_LINE); return ASM_DEFINE; }          ^[ \t]*\#[ \t]*define   { yy_push_state(PREPROCESSOR_LINE); return ASM_DEFINE; }
125          ^[ \t]*\#[ \t]*undef    { yy_push_state(PREPROCESSOR_LINE); return ASM_UNDEF; }          ^[ \t]*\#[ \t]*undef    { yy_push_state(PREPROCESSOR_LINE); return ASM_UNDEF; }
126          ^[ \t]*\#[ \t]*{WORD}   |          ^[ \t]*\#[ \t]*{WORD} {
127                    if (reserved_sharp(yytext, yyleng)) {
128                            yy_push_state(PREPROCESSOR_LINE);
129                            return ASM_DIRECTIVE;
130                    } else {
131                            yy_push_state(LINE_COMMENT);
132                    }
133            }
134          ^[ \t]*\#               { yy_push_state(PREPROCESSOR_LINE); return ASM_DIRECTIVE; }          ^[ \t]*\#               { yy_push_state(PREPROCESSOR_LINE); return ASM_DIRECTIVE; }
135          (call|jsr)      { return ASM_CALL; }          (call|jsr)      { return ASM_CALL; }
136          ^(ENTRY|ALTENTRY|NENTRY|GLOBAL_ENTRY|JSBENTRY|C_SYMBOL_NAME|C_ENTRY) {          ^(ENTRY|ALTENTRY|NENTRY|GLOBAL_ENTRY|JSBENTRY|C_SYMBOL_NAME|C_ENTRY) {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26