github.com/xzntrc/go-enry/v2@v2.0.0-20230215091818-766cc1d65498/internal/tokenizer/flex/lex.linguist_yy.h (about)

     1  #ifndef linguist_yyHEADER_H
     2  #define linguist_yyHEADER_H 1
     3  #define linguist_yyIN_HEADER 1
     4  
     5  #line 6 "lex.linguist_yy.h"
     6  
     7  #define  YY_INT_ALIGNED short int
     8  
     9  /* A lexical scanner generated by flex */
    10  
    11  #define FLEX_SCANNER
    12  #define YY_FLEX_MAJOR_VERSION 2
    13  #define YY_FLEX_MINOR_VERSION 5
    14  #define YY_FLEX_SUBMINOR_VERSION 35
    15  #if YY_FLEX_SUBMINOR_VERSION > 0
    16  #define FLEX_BETA
    17  #endif
    18  
    19  /* First, we deal with  platform-specific or compiler-specific issues. */
    20  
    21  /* begin standard C headers. */
    22  #include <stdio.h>
    23  #include <string.h>
    24  #include <errno.h>
    25  #include <stdlib.h>
    26  
    27  /* end standard C headers. */
    28  
    29  /* flex integer type definitions */
    30  
    31  #ifndef FLEXINT_H
    32  #define FLEXINT_H
    33  
    34  /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
    35  
    36  #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    37  
    38  /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
    39   * if you want the limit (max/min) macros for int types. 
    40   */
    41  #ifndef __STDC_LIMIT_MACROS
    42  #define __STDC_LIMIT_MACROS 1
    43  #endif
    44  
    45  #include <inttypes.h>
    46  typedef int8_t flex_int8_t;
    47  typedef uint8_t flex_uint8_t;
    48  typedef int16_t flex_int16_t;
    49  typedef uint16_t flex_uint16_t;
    50  typedef int32_t flex_int32_t;
    51  typedef uint32_t flex_uint32_t;
    52  typedef uint64_t flex_uint64_t;
    53  #else
    54  typedef signed char flex_int8_t;
    55  typedef short int flex_int16_t;
    56  typedef int flex_int32_t;
    57  typedef unsigned char flex_uint8_t; 
    58  typedef unsigned short int flex_uint16_t;
    59  typedef unsigned int flex_uint32_t;
    60  #endif /* ! C99 */
    61  
    62  /* Limits of integral types. */
    63  #ifndef INT8_MIN
    64  #define INT8_MIN               (-128)
    65  #endif
    66  #ifndef INT16_MIN
    67  #define INT16_MIN              (-32767-1)
    68  #endif
    69  #ifndef INT32_MIN
    70  #define INT32_MIN              (-2147483647-1)
    71  #endif
    72  #ifndef INT8_MAX
    73  #define INT8_MAX               (127)
    74  #endif
    75  #ifndef INT16_MAX
    76  #define INT16_MAX              (32767)
    77  #endif
    78  #ifndef INT32_MAX
    79  #define INT32_MAX              (2147483647)
    80  #endif
    81  #ifndef UINT8_MAX
    82  #define UINT8_MAX              (255U)
    83  #endif
    84  #ifndef UINT16_MAX
    85  #define UINT16_MAX             (65535U)
    86  #endif
    87  #ifndef UINT32_MAX
    88  #define UINT32_MAX             (4294967295U)
    89  #endif
    90  
    91  #endif /* ! FLEXINT_H */
    92  
    93  #ifdef __cplusplus
    94  
    95  /* The "const" storage-class-modifier is valid. */
    96  #define YY_USE_CONST
    97  
    98  #else	/* ! __cplusplus */
    99  
   100  /* C99 requires __STDC__ to be defined as 1. */
   101  #if defined (__STDC__)
   102  
   103  #define YY_USE_CONST
   104  
   105  #endif	/* defined (__STDC__) */
   106  #endif	/* ! __cplusplus */
   107  
   108  #ifdef YY_USE_CONST
   109  #define yyconst const
   110  #else
   111  #define yyconst
   112  #endif
   113  
   114  /* An opaque pointer. */
   115  #ifndef YY_TYPEDEF_YY_SCANNER_T
   116  #define YY_TYPEDEF_YY_SCANNER_T
   117  typedef void* yyscan_t;
   118  #endif
   119  
   120  /* For convenience, these vars (plus the bison vars far below)
   121     are macros in the reentrant scanner. */
   122  #define yyin yyg->yyin_r
   123  #define yyout yyg->yyout_r
   124  #define yyextra yyg->yyextra_r
   125  #define yyleng yyg->yyleng_r
   126  #define yytext yyg->yytext_r
   127  #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
   128  #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
   129  #define yy_flex_debug yyg->yy_flex_debug_r
   130  
   131  /* Size of default input buffer. */
   132  #ifndef YY_BUF_SIZE
   133  #define YY_BUF_SIZE 16384
   134  #endif
   135  
   136  #ifndef YY_TYPEDEF_YY_BUFFER_STATE
   137  #define YY_TYPEDEF_YY_BUFFER_STATE
   138  typedef struct yy_buffer_state *YY_BUFFER_STATE;
   139  #endif
   140  
   141  #ifndef YY_TYPEDEF_YY_SIZE_T
   142  #define YY_TYPEDEF_YY_SIZE_T
   143  typedef size_t yy_size_t;
   144  #endif
   145  
   146  #ifndef YY_STRUCT_YY_BUFFER_STATE
   147  #define YY_STRUCT_YY_BUFFER_STATE
   148  struct yy_buffer_state
   149  	{
   150  	FILE *yy_input_file;
   151  
   152  	char *yy_ch_buf;		/* input buffer */
   153  	char *yy_buf_pos;		/* current position in input buffer */
   154  
   155  	/* Size of input buffer in bytes, not including room for EOB
   156  	 * characters.
   157  	 */
   158  	yy_size_t yy_buf_size;
   159  
   160  	/* Number of characters read into yy_ch_buf, not including EOB
   161  	 * characters.
   162  	 */
   163  	yy_size_t yy_n_chars;
   164  
   165  	/* Whether we "own" the buffer - i.e., we know we created it,
   166  	 * and can realloc() it to grow it, and should free() it to
   167  	 * delete it.
   168  	 */
   169  	int yy_is_our_buffer;
   170  
   171  	/* Whether this is an "interactive" input source; if so, and
   172  	 * if we're using stdio for input, then we want to use getc()
   173  	 * instead of fread(), to make sure we stop fetching input after
   174  	 * each newline.
   175  	 */
   176  	int yy_is_interactive;
   177  
   178  	/* Whether we're considered to be at the beginning of a line.
   179  	 * If so, '^' rules will be active on the next match, otherwise
   180  	 * not.
   181  	 */
   182  	int yy_at_bol;
   183  
   184      int yy_bs_lineno; /**< The line count. */
   185      int yy_bs_column; /**< The column count. */
   186      
   187  	/* Whether to try to fill the input buffer when we reach the
   188  	 * end of it.
   189  	 */
   190  	int yy_fill_buffer;
   191  
   192  	int yy_buffer_status;
   193  
   194  	};
   195  #endif /* !YY_STRUCT_YY_BUFFER_STATE */
   196  
   197  void linguist_yyrestart (FILE *input_file ,yyscan_t yyscanner );
   198  void linguist_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
   199  YY_BUFFER_STATE linguist_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
   200  void linguist_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
   201  void linguist_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
   202  void linguist_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
   203  void linguist_yypop_buffer_state (yyscan_t yyscanner );
   204  
   205  YY_BUFFER_STATE linguist_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
   206  YY_BUFFER_STATE linguist_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
   207  YY_BUFFER_STATE linguist_yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
   208  
   209  void *linguist_yyalloc (yy_size_t ,yyscan_t yyscanner );
   210  void *linguist_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
   211  void linguist_yyfree (void * ,yyscan_t yyscanner );
   212  
   213  /* Begin user sect3 */
   214  
   215  #define yytext_ptr yytext_r
   216  
   217  #ifdef YY_HEADER_EXPORT_START_CONDITIONS
   218  #define INITIAL 0
   219  #define sgml 1
   220  #define c_comment 2
   221  #define xml_comment 3
   222  #define haskell_comment 4
   223  #define ocaml_comment 5
   224  #define python_dcomment 6
   225  #define python_scomment 7
   226  
   227  #endif
   228  
   229  #ifndef YY_NO_UNISTD_H
   230  /* Special case for "unistd.h", since it is non-ANSI. We include it way
   231   * down here because we want the user's section 1 to have been scanned first.
   232   * The user has a chance to override it with an option.
   233   */
   234  #include <unistd.h>
   235  #endif
   236  
   237  #define YY_EXTRA_TYPE struct tokenizer_extra *
   238  
   239  int linguist_yylex_init (yyscan_t* scanner);
   240  
   241  int linguist_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
   242  
   243  /* Accessor methods to globals.
   244     These are made visible to non-reentrant scanners for convenience. */
   245  
   246  int linguist_yylex_destroy (yyscan_t yyscanner );
   247  
   248  int linguist_yyget_debug (yyscan_t yyscanner );
   249  
   250  void linguist_yyset_debug (int debug_flag ,yyscan_t yyscanner );
   251  
   252  YY_EXTRA_TYPE linguist_yyget_extra (yyscan_t yyscanner );
   253  
   254  void linguist_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
   255  
   256  FILE *linguist_yyget_in (yyscan_t yyscanner );
   257  
   258  void linguist_yyset_in  (FILE * in_str ,yyscan_t yyscanner );
   259  
   260  FILE *linguist_yyget_out (yyscan_t yyscanner );
   261  
   262  void linguist_yyset_out  (FILE * out_str ,yyscan_t yyscanner );
   263  
   264  yy_size_t linguist_yyget_leng (yyscan_t yyscanner );
   265  
   266  char *linguist_yyget_text (yyscan_t yyscanner );
   267  
   268  int linguist_yyget_lineno (yyscan_t yyscanner );
   269  
   270  void linguist_yyset_lineno (int line_number ,yyscan_t yyscanner );
   271  
   272  /* Macros after this point can all be overridden by user definitions in
   273   * section 1.
   274   */
   275  
   276  #ifndef YY_SKIP_YYWRAP
   277  #ifdef __cplusplus
   278  extern "C" int linguist_yywrap (yyscan_t yyscanner );
   279  #else
   280  extern int linguist_yywrap (yyscan_t yyscanner );
   281  #endif
   282  #endif
   283  
   284  #ifndef yytext_ptr
   285  static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
   286  #endif
   287  
   288  #ifdef YY_NEED_STRLEN
   289  static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
   290  #endif
   291  
   292  #ifndef YY_NO_INPUT
   293  
   294  #endif
   295  
   296  /* Amount of stuff to slurp up with each read. */
   297  #ifndef YY_READ_BUF_SIZE
   298  #define YY_READ_BUF_SIZE 8192
   299  #endif
   300  
   301  /* Number of entries by which start-condition stack grows. */
   302  #ifndef YY_START_STACK_INCR
   303  #define YY_START_STACK_INCR 25
   304  #endif
   305  
   306  /* Default declaration of generated scanner - a define so the user can
   307   * easily add parameters.
   308   */
   309  #ifndef YY_DECL
   310  #define YY_DECL_IS_OURS 1
   311  
   312  extern int linguist_yylex (yyscan_t yyscanner);
   313  
   314  #define YY_DECL int linguist_yylex (yyscan_t yyscanner)
   315  #endif /* !YY_DECL */
   316  
   317  /* yy_get_previous_state - get the state just before the EOB char was reached */
   318  
   319  #undef YY_NEW_FILE
   320  #undef YY_FLUSH_BUFFER
   321  #undef yy_set_bol
   322  #undef yy_new_buffer
   323  #undef yy_set_interactive
   324  #undef YY_DO_BEFORE_ACTION
   325  
   326  #ifdef YY_DECL_IS_OURS
   327  #undef YY_DECL_IS_OURS
   328  #undef YY_DECL
   329  #endif
   330  
   331  #line 118 "tokenizer.l"
   332  
   333  
   334  #line 335 "lex.linguist_yy.h"
   335  #undef linguist_yyIN_HEADER
   336  #endif /* linguist_yyHEADER_H */