Changeset a3f0fea in git for Singular/scanner.cc


Ignore:
Timestamp:
Jan 24, 2019, 1:08:04 PM (5 years ago)
Author:
Reimer Behrends <behrends@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
756676ef1fcf4cff300fb1607a6d21293b253245
Parents:
25fe907e3f7e0d124b25f97832c0b71e96c515e2
Message:
Modify variable declarions for pSingular.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/scanner.cc

    r25fe907 ra3f0fea  
    9999typedef struct yy_buffer_state *YY_BUFFER_STATE;
    100100
    101 extern int yyleng;
    102 extern FILE *yyin, *yyout;
     101EXTERN_VAR int yyleng;
     102EXTERN_VAR FILE *yyin, *yyout;
    103103
    104104#define EOB_ACT_CONTINUE_SCAN 0
     
    199199        };
    200200
    201 static YY_BUFFER_STATE yy_current_buffer = 0;
     201STATIC_VAR YY_BUFFER_STATE yy_current_buffer = 0;
    202202
    203203/* We provide macros for accessing buffer states in case in the
     
    209209
    210210/* yy_hold_char holds the character lost when yytext is formed. */
    211 static char yy_hold_char;
    212 
    213 static int yy_n_chars;          /* number of characters read into yy_ch_buf */
    214 
    215 
    216 int yyleng;
     211STATIC_VAR char yy_hold_char;
     212
     213STATIC_VAR int yy_n_chars;              /* number of characters read into yy_ch_buf */
     214
     215
     216VAR int yyleng;
    217217
    218218/* Points to current character in buffer. */
    219 static char *yy_c_buf_p = (char *) 0;
    220 static int yy_init = 1;         /* whether we need to initialize */
    221 static int yy_start = 0;        /* start state number */
     219STATIC_VAR char *yy_c_buf_p = (char *) 0;
     220STATIC_VAR int yy_init = 1;             /* whether we need to initialize */
     221STATIC_VAR int yy_start = 0;    /* start state number */
    222222
    223223/* Flag which is used to allow yywrap()'s to do buffer switches
    224224 * instead of setting up a fresh yyin.  A bit of a hack ...
    225225 */
    226 static int yy_did_buffer_switch_on_eof;
     226STATIC_VAR int yy_did_buffer_switch_on_eof;
    227227
    228228void yyrestart YY_PROTO(( FILE *input_file ));
     
    263263
    264264typedef unsigned char YY_CHAR;
    265 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
     265VAR FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
    266266typedef int yy_state_type;
    267 extern char *yytext;
     267EXTERN_VAR char *yytext;
    268268#define yytext_ptr yytext
    269269
     
    543543    } ;
    544544
    545 static yy_state_type yy_last_accepting_state;
    546 static char *yy_last_accepting_cpos;
     545STATIC_VAR yy_state_type yy_last_accepting_state;
     546STATIC_VAR char *yy_last_accepting_cpos;
    547547
    548548/* The intent behind this definition is that it'll catch
     
    550550 */
    551551#define REJECT reject_used_but_not_detected
    552 static int yy_more_flag = 0;
    553 static int yy_more_len = 0;
     552STATIC_VAR int yy_more_flag = 0;
     553STATIC_VAR int yy_more_len = 0;
    554554#define yymore() (yy_more_flag = 1)
    555555#define YY_MORE_ADJ yy_more_len
    556556#define YY_RESTORE_YY_MORE_OFFSET
    557 char *yytext;
     557VAR char *yytext;
    558558#line 1 "scanner.l"
    559559#define INITIAL 0
     
    579579#ifndef NEW_FLEX
    580580#endif /* NEW_LEX */
    581 int blocknest = 0;
    582 extern char * yytext;
     581VAR int blocknest = 0;
     582EXTERN_VAR char * yytext;
    583583//extern unsigned char * yytext;
    584 extern int yyleng;
    585 extern int inerror;
     584EXTERN_VAR int yyleng;
     585EXTERN_VAR int inerror;
    586586
    587587#ifndef SING_NDEBUG
     
    709709
    710710#if YY_STACK_USED
    711 static int yy_start_stack_ptr = 0;
    712 static int yy_start_stack_depth = 0;
    713 static int *yy_start_stack = 0;
     711STATIC_VAR int yy_start_stack_ptr = 0;
     712STATIC_VAR int yy_start_stack_depth = 0;
     713STATIC_VAR int *yy_start_stack = 0;
    714714#ifndef YY_NO_PUSH_STATE
    715715static void yy_push_state YY_PROTO(( int new_state ));
     
    17681768static void yyunput( c, yy_bp )
    17691769int c;
    1770 register char *yy_bp;
     1770VAR register char *yy_bp;
    17711771#endif
    17721772        {
     
    19431943YY_BUFFER_STATE yy_create_buffer( file, size )
    19441944FILE *file;
    1945 int size;
     1945VAR int size;
    19461946#endif
    19471947        {
     
    20002000void yy_init_buffer( b, file )
    20012001YY_BUFFER_STATE b;
    2002 FILE *file;
     2002VAR FILE *file;
    20032003#endif
    20042004
     
    20582058YY_BUFFER_STATE yy_scan_buffer( base, size )
    20592059char *base;
    2060 yy_size_t size;
     2060VAR yy_size_t size;
    20612061#endif
    20622062        {
     
    21132113YY_BUFFER_STATE yy_scan_bytes( bytes, len )
    21142114yyconst char *bytes;
    2115 int len;
     2115VAR int len;
    21162116#endif
    21172117        {
     
    22402240char *s1;
    22412241yyconst char *s2;
    2242 int n;
     2242VAR int n;
    22432243#endif
    22442244        {
     
    22812281static void *yy_flex_realloc( ptr, size )
    22822282void *ptr;
    2283 yy_size_t size;
     2283VAR yy_size_t size;
    22842284#endif
    22852285        {
Note: See TracChangeset for help on using the changeset viewer.