⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lex.c_shipped

📁 linux 内核源代码
💻 C_SHIPPED
📖 第 1 页 / 共 5 页
字号:
       79,   79,   79,   51,   75,   75,   75,   86,   79,   63,       86,   87,   87,   75,    0,   75,   75,   75,   75,   75,       75,   75,   75,   75,   75,   75,   75    } ;static yyconst flex_int16_t yy_nxt[313] =    {   0,        6,    7,    8,    7,    9,    6,   10,    6,    6,   11,        6,    6,   12,    6,    6,    6,    6,    6,    6,   10,       10,   10,   13,   10,   10,    6,   10,    6,   15,   16,       26,   15,   17,   18,   19,   20,   20,   21,   15,   22,       24,   30,   24,   38,   33,   36,   37,   74,   23,   34,       74,   27,   38,   38,   38,   38,   38,   31,   32,   39,       39,   39,   40,   41,   41,   42,   47,   47,   47,   26,       43,   38,   44,   45,   46,   30,   44,   75,   38,   38,       24,   38,   24,   26,   30,   40,   55,   55,   57,   26,       27,   31,   57,   43,   35,   30,   64,   64,   64,   57,       31,   65,   65,   75,   27,   36,   37,   35,   59,   37,       27,   31,   56,   56,   56,   59,   37,   51,   52,   52,       39,   39,   39,   59,   37,   37,   68,   53,   54,   54,       69,   50,   38,   54,   59,   37,   44,   45,   32,   37,       44,   35,   59,   37,   75,   14,   60,   60,   66,   66,       66,   37,   14,   72,   75,   61,   62,   63,   59,   61,       56,   56,   56,   69,   64,   64,   64,   69,   67,   67,       75,   75,   75,   67,   37,   35,   75,   75,   75,   61,       62,   75,   75,   61,   75,   70,   70,   70,   75,   75,       75,   70,   70,   70,   66,   66,   66,   75,   75,   75,       75,   75,   54,   54,   75,   75,   75,   54,   25,   25,       25,   25,   25,   25,   25,   25,   28,   75,   75,   28,       28,   28,   29,   29,   29,   29,   29,   29,   29,   29,       35,   35,   35,   35,   35,   35,   35,   35,   48,   75,       48,   48,   48,   48,   48,   48,   49,   75,   49,   49,       49,   49,   49,   49,   42,   42,   75,   42,   56,   75,       56,   58,   58,   58,   66,   75,   66,   71,   71,   71,       71,   71,   71,   71,   71,   73,   73,   73,   73,   73,       73,   73,   73,    5,   75,   75,   75,   75,   75,   75,       75,   75,   75,   75,   75,   75,   75,   75,   75,   75,       75,   75,   75,   75,   75,   75,   75,   75,   75,   75,       75,   75    } ;static yyconst flex_int16_t yy_chk[313] =    {   0,        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,    3,    3,        9,    3,    3,    3,    3,    3,    3,    3,    3,    3,        7,   11,    7,   16,   13,   14,   14,   73,    3,   13,       72,    9,   16,   17,   17,   21,   21,   11,   18,   18,       18,   18,   19,   19,   19,   19,   20,   20,   20,   25,       19,   23,   19,   19,   19,   29,   19,   20,   22,   22,       24,   23,   24,   33,   34,   42,   43,   43,   45,   48,       25,   29,   45,   42,   60,   49,   52,   52,   52,   44,       34,   53,   53,   41,   33,   36,   36,   52,   61,   61,       48,   49,   55,   55,   55,   69,   69,   36,   36,   36,       39,   39,   39,   59,   59,   35,   59,   39,   39,   39,       61,   32,   15,   39,   51,   51,   58,   58,   12,   68,       58,   68,   62,   62,    5,    4,   51,   51,   65,   65,       65,   71,    2,   71,    0,   51,   51,   51,   70,   51,       56,   56,   56,   62,   64,   64,   64,   62,   56,   56,        0,    0,    0,   56,   63,   64,    0,    0,    0,   70,       70,    0,    0,   70,    0,   63,   63,   63,    0,    0,        0,   63,   63,   63,   66,   66,   66,    0,    0,    0,        0,    0,   66,   66,    0,    0,    0,   66,   76,   76,       76,   76,   76,   76,   76,   76,   77,    0,    0,   77,       77,   77,   78,   78,   78,   78,   78,   78,   78,   78,       79,   79,   79,   79,   79,   79,   79,   79,   80,    0,       80,   80,   80,   80,   80,   80,   81,    0,   81,   81,       81,   81,   81,   81,   82,   82,    0,   82,   83,    0,       83,   84,   84,   84,   85,    0,   85,   86,   86,   86,       86,   86,   86,   86,   86,   87,   87,   87,   87,   87,       87,   87,   87,   75,   75,   75,   75,   75,   75,   75,       75,   75,   75,   75,   75,   75,   75,   75,   75,   75,       75,   75,   75,   75,   75,   75,   75,   75,   75,   75,       75,   75    } ;static yy_state_type yy_last_accepting_state;static char *yy_last_accepting_cpos;extern int yy_flex_debug;int yy_flex_debug = 1;static yyconst flex_int16_t yy_rule_linenum[13] =    {   0,       69,   70,   71,   74,   77,   78,   79,   85,   86,   87,       89,   92    } ;/* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */#define REJECT reject_used_but_not_detected#define yymore() yymore_used_but_not_detected#define YY_MORE_ADJ 0#define YY_RESTORE_YY_MORE_OFFSETchar *yytext;#line 1 "scripts/genksyms/lex.l"/* Lexical analysis for genksyms.   Copyright 1996, 1997 Linux International.   New implementation contributed by Richard Henderson <rth@tamu.edu>   Based on original work by Bjorn Ekwall <bj0rn@blox.se>   Taken from Linux modutils 2.4.22.   This program is free software; you can redistribute it and/or modify it   under the terms of the GNU General Public License as published by the   Free Software Foundation; either version 2 of the License, or (at your   option) any later version.   This program is distributed in the hope that it will be useful, but   WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU   General Public License for more details.   You should have received a copy of the GNU General Public License   along with this program; if not, write to the Free Software Foundation,   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */#line 25 "scripts/genksyms/lex.l"#include <limits.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include "genksyms.h"#include "parse.h"/* We've got a two-level lexer here.  We let flex do basic tokenization   and then we categorize those basic tokens in the second stage.  */#define YY_DECL		static int yylex1(void)/* Version 2 checksumming does proper tokenization; version 1 wasn't   quite so pedantic.  *//* We don't do multiple input files.  */#line 669 "scripts/genksyms/lex.c"#define INITIAL 0#define V2_TOKENS 1#ifndef YY_NO_UNISTD_H/* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. *//* %if-c-only */#include <unistd.h>/* %endif *//* %if-c++-only *//* %endif */#endif#ifndef YY_EXTRA_TYPE#define YY_EXTRA_TYPE void *#endif/* %if-c-only Reentrant structure and macros (non-C++). *//* %if-reentrant *//* %if-c-only */static int yy_init_globals (void );/* %endif *//* %if-reentrant *//* %endif *//* %if-bison-bridge *//* %endif *//* %endif End reentrant structures and macros. *//* Macros after this point can all be overridden by user definitions in * section 1. */#ifndef YY_SKIP_YYWRAP#ifdef __cplusplusextern "C" int yywrap (void );#elseextern int yywrap (void );#endif#endif/* %not-for-header */    static void yyunput (int c,char *buf_ptr  );    /* %ok-for-header *//* %endif */#ifndef yytext_ptrstatic void yy_flex_strncpy (char *,yyconst char *,int );#endif#ifdef YY_NEED_STRLENstatic int yy_flex_strlen (yyconst char * );#endif#ifndef YY_NO_INPUT/* %if-c-only Standard (non-C++) definition *//* %not-for-header */#ifdef __cplusplusstatic int yyinput (void );#elsestatic int input (void );#endif/* %ok-for-header *//* %endif */#endif/* %if-c-only *//* %endif *//* Amount of stuff to slurp up with each read. */#ifndef YY_READ_BUF_SIZE#define YY_READ_BUF_SIZE 8192#endif/* Copy whatever the last rule matched to the standard output. */#ifndef ECHO/* %if-c-only Standard (non-C++) definition *//* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )/* %endif *//* %if-c++-only C++ definition *//* %endif */#endif/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL, * is returned in "result". */#ifndef YY_INPUT#define YY_INPUT(buf,result,max_size) \/* %% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \ */\	if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \		{ \		int c = '*'; \		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 = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \			{ \			if( errno != EINTR) \				{ \				YY_FATAL_ERROR( "input in flex scanner failed" ); \				break; \				} \			errno=0; \			clearerr(yyin); \			} \		}\\/* %if-c++-only C++ definition \ */\/* %endif */#endif/* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */#ifndef yyterminate#define yyterminate() return YY_NULL#endif/* Number of entries by which start-condition stack grows. */#ifndef YY_START_STACK_INCR#define YY_START_STACK_INCR 25#endif/* Report a fatal error. */#ifndef YY_FATAL_ERROR/* %if-c-only */#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )/* %endif *//* %if-c++-only *//* %endif */#endif/* %if-tables-serialization structures and prototypes *//* %not-for-header *//* %ok-for-header *//* %not-for-header *//* %tables-yydmap generated elements *//* %endif *//* end tables serialization structures and prototypes *//* %ok-for-header *//* Default declaration of generated scanner - a define so the user can * easily add parameters. */#ifndef YY_DECL#define YY_DECL_IS_OURS 1/* %if-c-only Standard (non-C++) definition */extern int yylex (void);#define YY_DECL int yylex (void)/* %endif *//* %if-c++-only C++ definition *//* %endif */#endif /* !YY_DECL *//* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */#ifndef YY_USER_ACTION#define YY_USER_ACTION#endif/* Code executed at the end of each rule. */#ifndef YY_BREAK#define YY_BREAK break;#endif/* %% [6.0] YY_RULE_SETUP definition goes here */#define YY_RULE_SETUP \	if ( yyleng > 0 ) \		YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \				(yytext[yyleng - 1] == '\n'); \	YY_USER_ACTION/* %not-for-header *//** The main scanner function which does all the work. */YY_DECL{	register yy_state_type yy_current_state;	register char *yy_cp, *yy_bp;	register int yy_act;    /* %% [7.0] user's declarations go here */#line 65 "scripts/genksyms/lex.l" /* Keep track of our location in the original source files.  */#line 890 "scripts/genksyms/lex.c"	if ( !(yy_init) )		{		(yy_init) = 1;#ifdef YY_USER_INIT		YY_USER_INIT;#endif		if ( ! (yy_start) )			(yy_start) = 1;	/* first start state */		if ( ! yyin )/* %if-c-only */			yyin = stdin;/* %endif *//* %if-c++-only *//* %endif */		if ( ! yyout )/* %if-c-only */			yyout = stdout;/* %endif *//* %if-c++-only *//* %endif */		if ( ! YY_CURRENT_BUFFER ) {			yyensure_buffer_stack ();			YY_CURRENT_BUFFER_LVALUE =				yy_create_buffer(yyin,YY_BUF_SIZE );		}		yy_load_buffer_state( );		}	while ( 1 )		/* loops until end-of-file is reached */		{/* %% [8.0] yymore()-related code goes here */		yy_cp = (yy_c_buf_p);		/* Support of yytext. */		*yy_cp = (yy_hold_char);		/* yy_bp points to the position in yy_ch_buf of the start of		 * the current run.		 */		yy_bp = yy_cp;/* %% [9.0] code to set up and find next match goes here */		yy_current_state = (yy_start);		yy_current_state += YY_AT_BOL();yy_match:		do			{			register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];			if ( yy_accept[yy_current_state] )				{				(yy_last_accepting_state) = yy_current_state;				(yy_last_accepting_cpos) = yy_cp;				}			while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )				{				yy_current_state = (int) yy_def[yy_current_state];				if ( yy_current_state >= 76 )					yy_c = yy_meta[(unsigned int) yy_c];				}			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];			++yy_cp;			}		while ( yy_base[yy_current_state] != 284 );yy_find_action:/* %% [10.0] code to find the action number goes here */		yy_act = yy_accept[yy_current_state];		if ( yy_act == 0 )			{ /* have to back up */			yy_cp = (yy_last_accepting_cpos);			yy_current_state = (yy_last_accepting_state);			yy_act = yy_accept[yy_current_state];			}		YY_DO_BEFORE_ACTION;/* %% [11.0] code for yylineno update goes here */do_action:	/* This label is used only to access EOF actions. *//* %% [12.0] debug code goes here */		if ( yy_flex_debug )			{			if ( yy_act == 0 )				fprintf( stderr, "--scanner backing up\n" );			else if ( yy_act < 13 )				fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n",				         (long)yy_rule_linenum[yy_act], yytext );			else if ( yy_act == 13 )				fprintf( stderr, "--accepting default rule (\"%s\")\n",				         yytext );			else if ( yy_act == 14 )				fprintf( stderr, "--(end of buffer or a NUL)\n" );			else				fprintf( stderr, "--EOF (start condition %d)\n", YY_START );			}		switch ( yy_act )	{ /* beginning of action switch *//* %% [13.0] actions go here */			case 0: /* must back up */			/* undo the effects of YY_DO_BEFORE_ACTION */			*yy_cp = (yy_hold_char);			yy_cp = (yy_last_accepting_cpos);			yy_current_state = (yy_last_accepting_state);			goto yy_find_action;case 1:/* rule 1 can match eol */YY_RULE_SETUP#line 69 "scripts/genksyms/lex.l"return FILENAME;	YY_BREAKcase 2:/* rule 2 can match eol */YY_RULE_SETUP#line 70 "scripts/genksyms/lex.l"cur_line++;	YY_BREAKcase 3:/* rule 3 can match eol */YY_RULE_SETUP#line 71 "scripts/genksyms/lex.l"cur_line++;	YY_BREAK/* Ignore all other whitespace.  */case 4:YY_RULE_SETUP#line 74 "scripts/genksyms/lex.l";	YY_BREAKcase 5:/* rule 5 can match eol */YY_RULE_SETUP#line 77 "scripts/genksyms/lex.l"return STRING;	YY_BREAKcase 6:/* rule 6 can match eol */YY_RULE_SETUP#line 78 "scripts/genksyms/lex.l"return CHAR;	YY_BREAKcase 7:YY_RULE_SETUP#line 79 "scripts/genksyms/lex.l"return IDENT;	YY_BREAK/* The Pedant requires that the other C multi-character tokens be    recognized as tokens.  We don't actually use them since we don't    parse expressions, but we do want whitespace to be arranged    around them properly.  */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -