Flutter Engine
 
Loading...
Searching...
No Matches
comments.cc File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "flutter/tools/licenses_cpp/src/comments.h"
#include "flutter/tools/licenses_cpp/src/comments_util.h"
#include <string>
#include <unistd.h>

Go to the source code of this file.

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 
struct  LexerContext
 
struct  yyguts_t
 

Macros

#define YY_INT_ALIGNED   short int
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   6
 
#define YY_FLEX_SUBMINOR_VERSION   4
 
#define FLEX_BETA
 
#define FLEXINT_H
 
#define INT8_MIN   (-128)
 
#define INT16_MIN   (-32767 - 1)
 
#define INT32_MIN   (-2147483647 - 1)
 
#define INT8_MAX   (127)
 
#define INT16_MAX   (32767)
 
#define INT32_MAX   (2147483647)
 
#define UINT8_MAX   (255U)
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define SIZE_MAX   (~(size_t)0)
 
#define yyconst   const
 
#define yynoreturn
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((YY_CHAR)(c))
 
#define YY_TYPEDEF_YY_SCANNER_T
 
#define yyin   yyg->yyin_r
 
#define yyout   yyg->yyout_r
 
#define yyextra   yyg->yyextra_r
 
#define yyleng   yyg->yyleng_r
 
#define yytext   yyg->yytext_r
 
#define yylineno   (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
 
#define yycolumn   (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
 
#define yy_flex_debug   yyg->yy_flex_debug_r
 
#define BEGIN   yyg->yy_start = 1 + 2 *
 
#define YY_START   ((yyg->yy_start - 1) / 2)
 
#define YYSTATE   YY_START
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE   yyrestart(yyin, yyscanner)
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   16384
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define YY_LESS_LINENO(n)
 
#define YY_LINENO_REWIND_TO(ptr)
 
#define yyless(n)
 
#define unput(c)   yyunput(c, yyg->yytext_ptr, yyscanner)
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER    (yyg->yy_buffer_stack ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] : NULL)
 
#define YY_CURRENT_BUFFER_LVALUE   yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
 
#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER, yyscanner)
 
#define yy_new_buffer   yy_create_buffer
 
#define yy_set_interactive(is_interactive)
 
#define yy_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define yywrap(yyscanner)   (/*CONSTCOND*/ 1)
 
#define YY_SKIP_YYWRAP
 
#define yytext_ptr   yytext_r
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   8
 
#define YY_END_OF_BUFFER   9
 
#define REJECT   reject_used_but_not_detected
 
#define yymore()   yymore_used_but_not_detected
 
#define YY_MORE_ADJ   0
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define INITIAL   0
 
#define C_COMMENT   1
 
#define BLOCK   2
 
#define YY_EXTRA_TYPE   LexerContext*
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO
 
#define YY_INPUT(buf, result, max_size)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error(msg, yyscanner)
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int yylex(yyscan_t yyscanner)
 
#define YY_USER_ACTION
 
#define YY_BREAK   /*LINTED*/ break;
 
#define YY_RULE_SETUP
 
#define YY_EXIT_FAILURE   2
 
#define yyless(n)
 
#define YYTABLES_NAME   "yytables"
 

Typedefs

typedef signed char flex_int8_t
 
typedef short int flex_int16_t
 
typedef int flex_int32_t
 
typedef unsigned char flex_uint8_t
 
typedef unsigned short int flex_uint16_t
 
typedef unsigned int flex_uint32_t
 
typedef void * yyscan_t
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef flex_uint8_t YY_CHAR
 
typedef int yy_state_type
 

Functions

void yyrestart (FILE *input_file, yyscan_t yyscanner)
 
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
 
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size, yyscan_t yyscanner)
 
void yy_delete_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner)
 
void yy_flush_buffer (YY_BUFFER_STATE b, yyscan_t yyscanner)
 
void yypush_buffer_state (YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
 
void yypop_buffer_state (yyscan_t yyscanner)
 
static void yyensure_buffer_stack (yyscan_t yyscanner)
 
static void yy_load_buffer_state (yyscan_t yyscanner)
 
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner)
 
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size, yyscan_t yyscanner)
 
YY_BUFFER_STATE yy_scan_string (const char *yy_str, yyscan_t yyscanner)
 
YY_BUFFER_STATE yy_scan_bytes (const char *bytes, yy_size_t len, yyscan_t yyscanner)
 
void * yyalloc (yy_size_t, yyscan_t yyscanner)
 
void * yyrealloc (void *, yy_size_t, yyscan_t yyscanner)
 
void yyfree (void *, yyscan_t yyscanner)
 
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state, yyscan_t yyscanner)
 
static int yy_get_next_buffer (yyscan_t yyscanner)
 
static void yynoreturn yy_fatal_error (const char *msg, yyscan_t yyscanner)
 
static int yy_init_globals (yyscan_t yyscanner)
 
int yylex_init (yyscan_t *scanner)
 
int yylex_init_extra (YY_EXTRA_TYPE user_defined, yyscan_t *scanner)
 
int yylex_destroy (yyscan_t yyscanner)
 
int yyget_debug (yyscan_t yyscanner)
 
void yyset_debug (int debug_flag, yyscan_t yyscanner)
 
YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner)
 
void yyset_extra (YY_EXTRA_TYPE user_defined, yyscan_t yyscanner)
 
FILE * yyget_in (yyscan_t yyscanner)
 
void yyset_in (FILE *_in_str, yyscan_t yyscanner)
 
FILE * yyget_out (yyscan_t yyscanner)
 
void yyset_out (FILE *_out_str, yyscan_t yyscanner)
 
yy_size_t yyget_leng (yyscan_t yyscanner)
 
char * yyget_text (yyscan_t yyscanner)
 
int yyget_lineno (yyscan_t yyscanner)
 
void yyset_lineno (int _line_number, yyscan_t yyscanner)
 
int yyget_column (yyscan_t yyscanner)
 
void yyset_column (int _column_no, yyscan_t yyscanner)
 
static void yyunput (int c, char *buf_ptr, yyscan_t yyscanner)
 
static int input (yyscan_t yyscanner)
 
int yylex (yyscan_t yyscanner)
 
 if (!yyg->yy_init)
 

Variables

static const flex_int16_t yy_accept [37]
 
static const YY_CHAR yy_ec [256]
 
static const YY_CHAR yy_meta [7] = {0, 1, 1, 2, 1, 1, 3}
 
static const flex_int16_t yy_base [45]
 
static const flex_int16_t yy_def [45]
 
static const flex_int16_t yy_nxt [69]
 
static const flex_int16_t yy_chk [69]
 
 YY_DECL
 
char * yy_cp
 
char * yy_bp
 
int yy_act
 
struct yyguts_tyyg = (struct yyguts_t*)yyscanner
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   yyg->yy_start = 1 + 2 *

Definition at line 138 of file comments.cc.

◆ BLOCK

#define BLOCK   2

Definition at line 434 of file comments.cc.

◆ C_COMMENT

#define C_COMMENT   1

Definition at line 433 of file comments.cc.

◆ ECHO

#define ECHO
Value:
do { \
if (fwrite(yytext, (size_t)yyleng, 1, yyout)) { \
} \
} while (0)
#define yytext
Definition comments.cc:129
#define yyout
Definition comments.cc:126
#define yyleng
Definition comments.cc:128

Definition at line 568 of file comments.cc.

569 { \
570 if (fwrite(yytext, (size_t)yyleng, 1, yyout)) { \
571 } \
572 } while (0)

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 179 of file comments.cc.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 180 of file comments.cc.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 181 of file comments.cc.

◆ FLEX_BETA

#define FLEX_BETA

Definition at line 16 of file comments.cc.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 11 of file comments.cc.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 32 of file comments.cc.

◆ INITIAL

#define INITIAL   0

Definition at line 432 of file comments.cc.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 75 of file comments.cc.

◆ INT16_MIN

#define INT16_MIN   (-32767 - 1)

Definition at line 66 of file comments.cc.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 78 of file comments.cc.

◆ INT32_MIN

#define INT32_MIN   (-2147483647 - 1)

Definition at line 69 of file comments.cc.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 72 of file comments.cc.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 63 of file comments.cc.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 399 of file comments.cc.

◆ SIZE_MAX

#define SIZE_MAX   (~(size_t)0)

Definition at line 91 of file comments.cc.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 84 of file comments.cc.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 87 of file comments.cc.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 81 of file comments.cc.

◆ unput

#define unput (   c)    yyunput(c, yyg->yytext_ptr, yyscanner)

Definition at line 197 of file comments.cc.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 317 of file comments.cc.

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/ break;

Definition at line 645 of file comments.cc.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 160 of file comments.cc.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 258 of file comments.cc.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 246 of file comments.cc.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 247 of file comments.cc.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER    (yyg->yy_buffer_stack ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] : NULL)

Definition at line 268 of file comments.cc.

269 : NULL)

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]

Definition at line 273 of file comments.cc.

◆ YY_DECL

#define YY_DECL   int yylex(yyscan_t yyscanner)

Definition at line 633 of file comments.cc.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 629 of file comments.cc.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
yyg->yytext_ptr = yy_bp; \
*yy_cp = '\0'; \
char * yy_cp
Definition comments.cc:657
struct yyguts_t * yyg
Definition comments.cc:659
char * yy_bp
Definition comments.cc:657
size_t yy_size_t
Definition comments.cc:176
char * yy_c_buf_p
Definition comments.cc:460
char yy_hold_char
Definition comments.cc:457

Definition at line 338 of file comments.cc.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   9

Definition at line 345 of file comments.cc.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 149 of file comments.cc.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   LexerContext*

Definition at line 444 of file comments.cc.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error(msg, yyscanner)

Definition at line 620 of file comments.cc.

◆ yy_flex_debug

#define yy_flex_debug   yyg->yy_flex_debug_r

Definition at line 132 of file comments.cc.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 12 of file comments.cc.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

Definition at line 13 of file comments.cc.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   4

Definition at line 14 of file comments.cc.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER, yyscanner)

Definition at line 286 of file comments.cc.

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if (YY_CURRENT_BUFFER_LVALUE->yy_is_interactive) { \
int c = '*'; \
yy_size_t n; \
for (n = 0; n < max_size && (c = getc(yyin)) != EOF && c != '\n'; ++n) \
buf[n] = (char)c; \
if (c == '\n') \
buf[n++] = (char)c; \
if (c == EOF && ferror(yyin)) \
YY_FATAL_ERROR("input in flex scanner failed"); \
result = n; \
} else { \
errno = 0; \
while ((result = (int)fread(buf, 1, (yy_size_t)max_size, yyin)) == 0 && \
ferror(yyin)) { \
if (errno != EINTR) { \
YY_FATAL_ERROR("input in flex scanner failed"); \
break; \
} \
errno = 0; \
clearerr(yyin); \
} \
}
#define YY_CURRENT_BUFFER_LVALUE
Definition comments.cc:273
#define yyin
Definition comments.cc:125

Definition at line 579 of file comments.cc.

580 { \
581 int c = '*'; \
582 yy_size_t n; \
583 for (n = 0; n < max_size && (c = getc(yyin)) != EOF && c != '\n'; ++n) \
584 buf[n] = (char)c; \
585 if (c == '\n') \
586 buf[n++] = (char)c; \
587 if (c == EOF && ferror(yyin)) \
588 YY_FATAL_ERROR("input in flex scanner failed"); \
589 result = n; \
590 } else { \
591 errno = 0; \
592 while ((result = (int)fread(buf, 1, (yy_size_t)max_size, yyin)) == 0 && \
593 ferror(yyin)) { \
594 if (errno != EINTR) { \
595 YY_FATAL_ERROR("input in flex scanner failed"); \
596 break; \
597 } \
598 errno = 0; \
599 clearerr(yyin); \
600 } \
601 }

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 7 of file comments.cc.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 183 of file comments.cc.

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   ptr)

Definition at line 184 of file comments.cc.

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 401 of file comments.cc.

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

Definition at line 298 of file comments.cc.

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart(yyin, yyscanner)

Definition at line 148 of file comments.cc.

◆ YY_NULL

#define YY_NULL   0

Definition at line 110 of file comments.cc.

◆ YY_NUM_RULES

#define YY_NUM_RULES   8

Definition at line 344 of file comments.cc.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 559 of file comments.cc.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 402 of file comments.cc.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP
Value:
if (yyleng > 0) \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (yytext[yyleng - 1] == '\n'); \
#define YY_USER_ACTION
Definition comments.cc:640

Definition at line 648 of file comments.cc.

◆ YY_SC_TO_UI

#define YY_SC_TO_UI (   c)    ((YY_CHAR)(c))

Definition at line 115 of file comments.cc.

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:
{ \
yyensure_buffer_stack(yyscanner); \
yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_CURRENT_BUFFER
Definition comments.cc:268
#define YY_BUF_SIZE
Definition comments.cc:160

Definition at line 308 of file comments.cc.

309 { \
310 if (!YY_CURRENT_BUFFER) { \
311 yyensure_buffer_stack(yyscanner); \
313 yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); \
314 } \
315 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
316 }

◆ yy_set_interactive

#define yy_set_interactive (   is_interactive)
Value:
{ \
yyensure_buffer_stack(yyscanner); \
yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}

Definition at line 299 of file comments.cc.

300 { \
301 if (!YY_CURRENT_BUFFER) { \
302 yyensure_buffer_stack(yyscanner); \
304 yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); \
305 } \
306 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
307 }

◆ YY_SKIP_YYWRAP

#define YY_SKIP_YYWRAP

Definition at line 322 of file comments.cc.

◆ YY_START

#define YY_START   ((yyg->yy_start - 1) / 2)

Definition at line 143 of file comments.cc.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 615 of file comments.cc.

◆ YY_STATE_BUF_SIZE

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 167 of file comments.cc.

◆ YY_STATE_EOF

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 146 of file comments.cc.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 200 of file comments.cc.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 170 of file comments.cc.

◆ YY_TYPEDEF_YY_SCANNER_T

#define YY_TYPEDEF_YY_SCANNER_T

Definition at line 119 of file comments.cc.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 175 of file comments.cc.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 640 of file comments.cc.

◆ yycolumn

#define yycolumn   (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)

Definition at line 131 of file comments.cc.

◆ yyconst

#define yyconst   const

Definition at line 101 of file comments.cc.

◆ yyextra

#define yyextra   yyg->yyextra_r

Definition at line 127 of file comments.cc.

◆ yyin

#define yyin   yyg->yyin_r

Definition at line 125 of file comments.cc.

◆ yyleng

#define yyleng   yyg->yyleng_r

Definition at line 128 of file comments.cc.

◆ yyless [1/2]

#define yyless (   n)
Value:
do { \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg); \
YY_RESTORE_YY_MORE_OFFSET \
yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} while (0)
#define YY_MORE_ADJ
Definition comments.cc:401
#define YY_DO_BEFORE_ACTION
Definition comments.cc:338

Definition at line 187 of file comments.cc.

188 { \
189 /* Undo effects of setting up yytext. */ \
190 int yyless_macro_arg = (n); \
191 YY_LESS_LINENO(yyless_macro_arg); \
192 *yy_cp = yyg->yy_hold_char; \
193 YY_RESTORE_YY_MORE_OFFSET \
194 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
195 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
196 } while (0)

◆ yyless [2/2]

#define yyless (   n)
Value:
do { \
/* Undo effects of setting up yytext. */ \
yy_size_t yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg); \
yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
*yyg->yy_c_buf_p = '\0'; \
yyleng = yyless_macro_arg; \
} while (0)

Definition at line 187 of file comments.cc.

188 { \
189 /* Undo effects of setting up yytext. */ \
190 int yyless_macro_arg = (n); \
191 YY_LESS_LINENO(yyless_macro_arg); \
192 *yy_cp = yyg->yy_hold_char; \
193 YY_RESTORE_YY_MORE_OFFSET \
194 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
195 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
196 } while (0)

◆ yylineno

#define yylineno   (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)

Definition at line 130 of file comments.cc.

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 400 of file comments.cc.

◆ yynoreturn

#define yynoreturn

Definition at line 106 of file comments.cc.

◆ yyout

#define yyout   yyg->yyout_r

Definition at line 126 of file comments.cc.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 144 of file comments.cc.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 610 of file comments.cc.

◆ yytext

#define yytext   yyg->yytext_r

Definition at line 129 of file comments.cc.

◆ yytext_ptr

#define yytext_ptr   yytext_r

Definition at line 327 of file comments.cc.

◆ yywrap

#define yywrap (   yyscanner)    (/*CONSTCOND*/ 1)

Definition at line 321 of file comments.cc.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 55 of file comments.cc.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 56 of file comments.cc.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 54 of file comments.cc.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 58 of file comments.cc.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 59 of file comments.cc.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 57 of file comments.cc.

◆ YY_BUFFER_STATE

Definition at line 171 of file comments.cc.

◆ YY_CHAR

Definition at line 323 of file comments.cc.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 176 of file comments.cc.

◆ yy_state_type

typedef int yy_state_type

Definition at line 325 of file comments.cc.

◆ yyscan_t

typedef void * yyscan_t

Copyright 2013 The Flutter Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. To regenerate comments.cc run: flex -o comments.cc comments.l

Definition at line 120 of file comments.cc.

Function Documentation

◆ if()

if ( !yyg->  yy_init)

Definition at line 661 of file comments.cc.

661 {
662 yyg->yy_init = 1;
663
664#ifdef YY_USER_INIT
665 YY_USER_INIT;
666#endif
667
668 if (!yyg->yy_start)
669 yyg->yy_start = 1; /* first start state */
670
671 if (!yyin)
672 yyin = stdin;
673
674 if (!yyout)
675 yyout = stdout;
676
677 if (!YY_CURRENT_BUFFER) {
678 yyensure_buffer_stack(yyscanner);
680 }
681
682 yy_load_buffer_state(yyscanner);
683 }
static void yy_load_buffer_state(yyscan_t yyscanner)
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size, yyscan_t yyscanner)
static void yyensure_buffer_stack(yyscan_t yyscanner)
int yy_start
Definition comments.cc:462
int yy_init
Definition comments.cc:461

References YY_BUF_SIZE, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yyguts_t::yy_init, yy_load_buffer_state(), yyguts_t::yy_start, yyensure_buffer_stack(), yyg, yyin, and yyout.

◆ input()

static int input ( yyscan_t  yyscanner)
static

Referenced by impeller::compiler::ShaderBundleData::AddInputDescription(), fml::Base32Decode(), fml::Base32Encode(), impeller::Paint::CreateContents(), impeller::compiler::ShaderBundleData::CreateFlatbuffer(), impeller::Paint::MaskBlurDescriptor::CreateMaskBlur(), impeller::compiler::RuntimeStageData::CreateStageFlatbuffer(), impeller::CreateVertexBuffer(), impeller::VertexDescriptor::GetHash(), impeller::FilterContents::GetSourceCoverage(), fml::HexEncode(), flutter::DartCallbackCache::LoadCacheFromDisk(), impeller::Main(), main(), HarfBuzzSubset< T, typename >::Make(), impeller::FilterInput::Make(), impeller::FilterInput::Make(), impeller::FilterContents::MakeBorderMaskBlur(), impeller::ColorFilterContents::MakeColorMatrix(), impeller::FilterContents::MakeDirectionalMorphology(), flutter::gpu::ShaderLibrary::MakeFromFlatbuffer(), impeller::FilterContents::MakeGaussianBlur(), impeller::ColorFilterContents::MakeLinearToSrgbFilter(), impeller::FilterContents::MakeLocalMatrixFilter(), impeller::FilterContents::MakeMatrixFilter(), impeller::FilterContents::MakeMorphology(), impeller::FilterContents::MakeRuntimeEffect(), impeller::ColorFilterContents::MakeSrgbToLinearFilter(), Filter::Matches(), Filter::Open(), Filter::Open(), DepsParser::Parse(), flutter::ParseBase32(), flutter::ParseBase64(), flutter::ParseCommaDelimited(), impeller::PipelineBlend(), impeller::ReadStageInputFormat(), impeller::BufferBindingsGLES::RegisterVertexStageInput(), impeller::RuntimeEffectContents::Render(), ui::AXPlatformNodeBase::SanitizeStringAttribute(), impeller::Canvas::SaveLayer(), impeller::FilterContents::SetEffectTransform(), impeller::FilterContents::SetRenderingMode(), impeller::VertexDescriptorMTL::SetStageInputsAndLayout(), flutter::TemplaterMain(), ui::TEST(), TEST(), TEST(), flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), flutter::testing::TEST(), TEST(), impeller::testing::TEST(), TEST(), TEST(), TEST(), TEST(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::ToVertexDescriptorFormat(), impeller::Paint::WithFilters(), impeller::Paint::WithFiltersForSubpassTarget(), impeller::Paint::WithImageFilter(), impeller::Paint::WithMaskBlur(), impeller::WrapInput(), impeller::WrapWithGPUColorFilter(), and impeller::WrapWithInvertColors().

◆ yy_create_buffer()

YY_BUFFER_STATE yy_create_buffer ( FILE *  file,
int  size,
yyscan_t  yyscanner 
)

Referenced by if().

◆ yy_delete_buffer()

void yy_delete_buffer ( YY_BUFFER_STATE  b,
yyscan_t  yyscanner 
)

◆ yy_fatal_error()

static void yynoreturn yy_fatal_error ( const char *  msg,
yyscan_t  yyscanner 
)
static

◆ yy_flush_buffer()

void yy_flush_buffer ( YY_BUFFER_STATE  b,
yyscan_t  yyscanner 
)

◆ yy_get_next_buffer()

static int yy_get_next_buffer ( yyscan_t  yyscanner)
static

◆ yy_get_previous_state()

static yy_state_type yy_get_previous_state ( yyscan_t  yyscanner)
static

◆ yy_init_buffer()

static void yy_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file,
yyscan_t  yyscanner 
)
static

◆ yy_init_globals()

static int yy_init_globals ( yyscan_t  yyscanner)
static

◆ yy_load_buffer_state()

static void yy_load_buffer_state ( yyscan_t  yyscanner)
static

Referenced by if().

◆ yy_scan_buffer()

YY_BUFFER_STATE yy_scan_buffer ( char *  base,
yy_size_t  size,
yyscan_t  yyscanner 
)

◆ yy_scan_bytes()

YY_BUFFER_STATE yy_scan_bytes ( const char *  bytes,
yy_size_t  len,
yyscan_t  yyscanner 
)

◆ yy_scan_string()

YY_BUFFER_STATE yy_scan_string ( const char *  yy_str,
yyscan_t  yyscanner 
)

◆ yy_switch_to_buffer()

void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer,
yyscan_t  yyscanner 
)

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state,
yyscan_t  yyscanner 
)
static

◆ yyalloc()

void * yyalloc ( yy_size_t  ,
yyscan_t  yyscanner 
)

◆ yyensure_buffer_stack()

static void yyensure_buffer_stack ( yyscan_t  yyscanner)
static

Referenced by if().

◆ yyfree()

void yyfree ( void *  ,
yyscan_t  yyscanner 
)

◆ yyget_column()

int yyget_column ( yyscan_t  yyscanner)

◆ yyget_debug()

int yyget_debug ( yyscan_t  yyscanner)

◆ yyget_extra()

YY_EXTRA_TYPE yyget_extra ( yyscan_t  yyscanner)

◆ yyget_in()

FILE * yyget_in ( yyscan_t  yyscanner)

◆ yyget_leng()

yy_size_t yyget_leng ( yyscan_t  yyscanner)

◆ yyget_lineno()

int yyget_lineno ( yyscan_t  yyscanner)

◆ yyget_out()

FILE * yyget_out ( yyscan_t  yyscanner)

◆ yyget_text()

char * yyget_text ( yyscan_t  yyscanner)

◆ yylex()

int yylex ( yyscan_t  yyscanner)
extern

◆ yylex_destroy()

int yylex_destroy ( yyscan_t  yyscanner)

◆ yylex_init()

int yylex_init ( yyscan_t scanner)

◆ yylex_init_extra()

int yylex_init_extra ( YY_EXTRA_TYPE  user_defined,
yyscan_t scanner 
)

◆ yypop_buffer_state()

void yypop_buffer_state ( yyscan_t  yyscanner)

◆ yypush_buffer_state()

void yypush_buffer_state ( YY_BUFFER_STATE  new_buffer,
yyscan_t  yyscanner 
)

◆ yyrealloc()

void * yyrealloc ( void *  ,
yy_size_t  ,
yyscan_t  yyscanner 
)

◆ yyrestart()

void yyrestart ( FILE *  input_file,
yyscan_t  yyscanner 
)

◆ yyset_column()

void yyset_column ( int  _column_no,
yyscan_t  yyscanner 
)

◆ yyset_debug()

void yyset_debug ( int  debug_flag,
yyscan_t  yyscanner 
)

◆ yyset_extra()

void yyset_extra ( YY_EXTRA_TYPE  user_defined,
yyscan_t  yyscanner 
)

◆ yyset_in()

void yyset_in ( FILE *  _in_str,
yyscan_t  yyscanner 
)

◆ yyset_lineno()

void yyset_lineno ( int  _line_number,
yyscan_t  yyscanner 
)

◆ yyset_out()

void yyset_out ( FILE *  _out_str,
yyscan_t  yyscanner 
)

◆ yyunput()

static void yyunput ( int  c,
char *  buf_ptr,
yyscan_t  yyscanner 
)
static

Variable Documentation

◆ yy_accept

const flex_int16_t yy_accept[37]
static
Initial value:
= {
0, 0, 0, 0, 0, 0, 0, 9, 7, 7, 1, 7, 8, 4, 8, 6, 6, 0, 1,
0, 1, 2, 0, 4, 0, 0, 0, 5, 0, 2, 2, 0, 3, 0, 5, 0, 0}

Definition at line 352 of file comments.cc.

352 {
353 0, 0, 0, 0, 0, 0, 0, 9, 7, 7, 1, 7, 8, 4, 8, 6, 6, 0, 1,
354 0, 1, 2, 0, 4, 0, 0, 0, 5, 0, 2, 2, 0, 3, 0, 5, 0, 0};

◆ yy_act

int yy_act

Definition at line 658 of file comments.cc.

◆ yy_base

const flex_int16_t yy_base[45]
static
Initial value:
= {
0, 0, 0, 4, 7, 18, 13, 14, 62, 11, 0, 13, 17, 62, 20,
62, 25, 0, 0, 0, 0, 29, 5, 62, 0, 32, 0, 0, 0, 62,
0, 35, 62, 2, 0, 0, 62, 40, 43, 46, 49, 52, 55, 58, 0}

Definition at line 374 of file comments.cc.

374 {
375 0, 0, 0, 4, 7, 18, 13, 14, 62, 11, 0, 13, 17, 62, 20,
376 62, 25, 0, 0, 0, 0, 29, 5, 62, 0, 32, 0, 0, 0, 62,
377 0, 35, 62, 2, 0, 0, 62, 40, 43, 46, 49, 52, 55, 58, 0};

◆ yy_bp

char * yy_bp

Definition at line 657 of file comments.cc.

◆ yy_chk

const flex_int16_t yy_chk[69]
static
Initial value:
= {
0, 0, 2, 44, 2, 0, 2, 3, 33, 3, 4, 22, 4, 9, 7, 9, 6, 9,
11, 11, 12, 5, 12, 14, 0, 14, 14, 16, 0, 16, 0, 16, 21, 0, 21, 25,
0, 25, 31, 0, 31, 37, 37, 37, 38, 38, 38, 39, 39, 39, 40, 0, 40, 41,
41, 41, 42, 42, 42, 43, 0, 43, 36, 36, 36, 36, 36, 36, 36}

Definition at line 390 of file comments.cc.

390 {
391 0, 0, 2, 44, 2, 0, 2, 3, 33, 3, 4, 22, 4, 9, 7, 9, 6, 9,
392 11, 11, 12, 5, 12, 14, 0, 14, 14, 16, 0, 16, 0, 16, 21, 0, 21, 25,
393 0, 25, 31, 0, 31, 37, 37, 37, 38, 38, 38, 39, 39, 39, 40, 0, 40, 41,
394 41, 41, 42, 42, 42, 43, 0, 43, 36, 36, 36, 36, 36, 36, 36};

◆ yy_cp

char* yy_cp

Definition at line 657 of file comments.cc.

◆ YY_DECL

YY_DECL
Initial value:
{
yy_state_type yy_current_state
int yy_state_type
Definition comments.cc:325

The main scanner function which does all the work.

Definition at line 655 of file comments.cc.

◆ yy_def

const flex_int16_t yy_def[45]
static
Initial value:
= {
0, 37, 37, 38, 38, 39, 39, 36, 36, 36, 40, 36, 41, 36, 41,
36, 36, 9, 40, 11, 40, 36, 14, 36, 14, 42, 16, 43, 44, 36,
21, 42, 36, 31, 43, 31, 0, 36, 36, 36, 36, 36, 36, 36, 36}

Definition at line 379 of file comments.cc.

379 {
380 0, 37, 37, 38, 38, 39, 39, 36, 36, 36, 40, 36, 41, 36, 41,
381 36, 36, 9, 40, 11, 40, 36, 14, 36, 14, 42, 16, 43, 44, 36,
382 21, 42, 36, 31, 43, 31, 0, 36, 36, 36, 36, 36, 36, 36, 36};

◆ yy_ec

const YY_CHAR yy_ec[256]
static
Initial value:
= {
0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 4, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 6, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1}

Definition at line 356 of file comments.cc.

356 {
357 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
358 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 4, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 1, 6, 1, 1,
359 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
360 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
361 1,
362
363 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
364 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
365 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
366 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
367
368 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
369 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
370 1, 1, 1, 1, 1};

◆ yy_meta

const YY_CHAR yy_meta[7] = {0, 1, 1, 2, 1, 1, 3}
static

Definition at line 372 of file comments.cc.

372{0, 1, 1, 2, 1, 1, 3};

◆ yy_nxt

const flex_int16_t yy_nxt[69]
static
Initial value:
= {
0, 36, 9, 27, 10, 36, 11, 13, 35, 14, 13, 22, 14, 17, 36, 18, 16, 19,
21, 18, 23, 16, 24, 23, 36, 24, 25, 26, 36, 27, 36, 28, 29, 36, 30, 32,
36, 33, 32, 36, 33, 8, 8, 8, 12, 12, 12, 15, 15, 15, 20, 36, 20, 22,
22, 22, 31, 31, 31, 34, 36, 34, 7, 36, 36, 36, 36, 36, 36}

Definition at line 384 of file comments.cc.

384 {
385 0, 36, 9, 27, 10, 36, 11, 13, 35, 14, 13, 22, 14, 17, 36, 18, 16, 19,
386 21, 18, 23, 16, 24, 23, 36, 24, 25, 26, 36, 27, 36, 28, 29, 36, 30, 32,
387 36, 33, 32, 36, 33, 8, 8, 8, 12, 12, 12, 15, 15, 15, 20, 36, 20, 22,
388 22, 22, 31, 31, 31, 34, 36, 34, 7, 36, 36, 36, 36, 36, 36};

◆ yyg

struct yyguts_t* yyg = (struct yyguts_t*)yyscanner

Definition at line 659 of file comments.cc.

Referenced by if().