Changeset 172d852 in git for old_modgen/modgen/scanner.cc
- Timestamp:
- Jan 24, 2019, 2:32:29 PM (5 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- 08394f319ba420091cccad7e025c3f7cac04c373
- Parents:
- 5abb79fd2458b47b21d297f2c8b26f285ac9546f756676ef1fcf4cff300fb1607a6d21293b253245
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2019-01-24 14:32:29+01:00
- git-committer:
- GitHub <noreply@github.com>2019-01-24 14:32:29+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
old_modgen/modgen/scanner.cc
r5abb79f r172d852 99 99 typedef struct yy_buffer_state *YY_BUFFER_STATE; 100 100 101 externint yyleng;102 externFILE *yyin, *yyout;101 EXTERN_VAR int yyleng; 102 EXTERN_VAR FILE *yyin, *yyout; 103 103 104 104 #define EOB_ACT_CONTINUE_SCAN 0 … … 199 199 }; 200 200 201 staticYY_BUFFER_STATE yy_current_buffer = 0;201 STATIC_VAR YY_BUFFER_STATE yy_current_buffer = 0; 202 202 203 203 /* We provide macros for accessing buffer states in case in the … … 209 209 210 210 /* yy_hold_char holds the character lost when yytext is formed. */ 211 staticchar yy_hold_char;212 213 staticint yy_n_chars; /* number of characters read into yy_ch_buf */214 215 216 int yyleng;211 STATIC_VAR char yy_hold_char; 212 213 STATIC_VAR int yy_n_chars; /* number of characters read into yy_ch_buf */ 214 215 216 VAR int yyleng; 217 217 218 218 /* Points to current character in buffer. */ 219 staticchar *yy_c_buf_p = (char *) 0;220 staticint yy_init = 1; /* whether we need to initialize */221 staticint yy_start = 0; /* start state number */219 STATIC_VAR char *yy_c_buf_p = (char *) 0; 220 STATIC_VAR int yy_init = 1; /* whether we need to initialize */ 221 STATIC_VAR int yy_start = 0; /* start state number */ 222 222 223 223 /* Flag which is used to allow yywrap()'s to do buffer switches 224 224 * instead of setting up a fresh yyin. A bit of a hack ... 225 225 */ 226 staticint yy_did_buffer_switch_on_eof;226 STATIC_VAR int yy_did_buffer_switch_on_eof; 227 227 228 228 void yyrestart YY_PROTO(( FILE *input_file )); … … 263 263 264 264 typedef unsigned char YY_CHAR; 265 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;265 VAR FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; 266 266 typedef int yy_state_type; 267 externchar *yytext;267 EXTERN_VAR char *yytext; 268 268 #define yytext_ptr yytext 269 269 … … 683 683 } ; 684 684 685 staticyy_state_type yy_last_accepting_state;686 staticchar *yy_last_accepting_cpos;685 STATIC_VAR yy_state_type yy_last_accepting_state; 686 STATIC_VAR char *yy_last_accepting_cpos; 687 687 688 688 /* The intent behind this definition is that it'll catch … … 690 690 */ 691 691 #define REJECT reject_used_but_not_detected 692 staticint yy_more_flag = 0;693 staticint yy_more_len = 0;692 STATIC_VAR int yy_more_flag = 0; 693 STATIC_VAR int yy_more_len = 0; 694 694 #define yymore() (yy_more_flag = 1) 695 695 #define YY_MORE_ADJ yy_more_len 696 696 #define YY_RESTORE_YY_MORE_OFFSET 697 char *yytext;697 VAR char *yytext; 698 698 #line 1 "scanner.l" 699 699 #define INITIAL 0 … … 728 728 # define YYLP_MISS_BR3 12 729 729 730 externint iseof;731 732 int offset = 0;733 int yylineno = 1;734 int do_return = 0;735 736 int state_level = -1;737 int state_max = 0;738 char *yylp_buffer_start;739 740 externint sectnum;741 staticint oldsectnum = 1;742 externmoddef module_def;743 externprocdef procedure_decl;744 745 char *sectname[] = { "sect -0", "section 1",730 EXTERN_VAR int iseof; 731 732 VAR int offset = 0; 733 VAR int yylineno = 1; 734 VAR int do_return = 0; 735 736 VAR int state_level = -1; 737 VAR int state_max = 0; 738 VAR char *yylp_buffer_start; 739 740 EXTERN_VAR int sectnum; 741 STATIC_VAR int oldsectnum = 1; 742 EXTERN_INST_VAR moddef module_def; 743 EXTERN_INST_VAR procdef procedure_decl; 744 745 VAR char *sectname[] = { "sect -0", "section 1", 746 746 "Singular", "procedures", "C-part" 747 747 }; … … 862 862 863 863 #if YY_STACK_USED 864 staticint yy_start_stack_ptr = 0;865 staticint yy_start_stack_depth = 0;866 staticint *yy_start_stack = 0;864 STATIC_VAR int yy_start_stack_ptr = 0; 865 STATIC_VAR int yy_start_stack_depth = 0; 866 STATIC_VAR int *yy_start_stack = 0; 867 867 #ifndef YY_NO_PUSH_STATE 868 868 static void yy_push_state YY_PROTO(( int new_state )); … … 983 983 #line 149 "scanner.l" 984 984 985 staticint brace1 = 0; /* { } */986 staticint brace2 = 0; /* ( ) */987 staticint brace3 = 0; /* [ ] */988 staticint quote = 0; /* " */985 STATIC_VAR int brace1 = 0; /* { } */ 986 STATIC_VAR int brace2 = 0; /* ( ) */ 987 STATIC_VAR int brace3 = 0; /* [ ] */ 988 STATIC_VAR int quote = 0; /* " */ 989 989 990 990 … … 2212 2212 static void yyunput( c, yy_bp ) 2213 2213 int c; 2214 register char *yy_bp;2214 VAR register char *yy_bp; 2215 2215 #endif 2216 2216 { … … 2389 2389 YY_BUFFER_STATE yy_create_buffer( file, size ) 2390 2390 FILE *file; 2391 int size;2391 VAR int size; 2392 2392 #endif 2393 2393 { … … 2441 2441 void yy_init_buffer( b, file ) 2442 2442 YY_BUFFER_STATE b; 2443 FILE *file;2443 VAR FILE *file; 2444 2444 #endif 2445 2445 … … 2499 2499 YY_BUFFER_STATE yy_scan_buffer( base, size ) 2500 2500 char *base; 2501 yy_size_t size;2501 VAR yy_size_t size; 2502 2502 #endif 2503 2503 { … … 2554 2554 YY_BUFFER_STATE yy_scan_bytes( bytes, len ) 2555 2555 yyconst char *bytes; 2556 int len;2556 VAR int len; 2557 2557 #endif 2558 2558 { … … 2681 2681 char *s1; 2682 2682 yyconst char *s2; 2683 int n;2683 VAR int n; 2684 2684 #endif 2685 2685 { … … 2722 2722 static void *yy_flex_realloc( ptr, size ) 2723 2723 void *ptr; 2724 yy_size_t size;2724 VAR yy_size_t size; 2725 2725 #endif 2726 2726 {
Note: See TracChangeset
for help on using the changeset viewer.