Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BayLibre
Linux
Commits
0359de7d
Commit
0359de7d
authored
13 years ago
by
Michal Marek
Browse files
Options
Downloads
Patches
Plain Diff
genksyms: Regenerate lexer and parser
parent
2c5925d6
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/genksyms/lex.lex.c_shipped
+10
-2
10 additions, 2 deletions
scripts/genksyms/lex.lex.c_shipped
scripts/genksyms/parse.tab.c_shipped
+345
-300
345 additions, 300 deletions
scripts/genksyms/parse.tab.c_shipped
scripts/genksyms/parse.tab.h_shipped
+3
-4
3 additions, 4 deletions
scripts/genksyms/parse.tab.h_shipped
with
358 additions
and
306 deletions
scripts/genksyms/lex.lex.c_shipped
+
10
−
2
View file @
0359de7d
...
...
@@ -660,7 +660,7 @@ static int input (void );
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
#define ECHO
do { if (
fwrite( yytext, yyleng, 1, yyout )
) {} } while (0)
#define ECHO fwrite( yytext, yyleng, 1, yyout )
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
...
...
@@ -671,7 +671,7 @@ static int input (void );
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
unsigned
n; \
int
n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
...
...
@@ -1926,6 +1926,7 @@ void yyfree (void * ptr )
cur_node->tag = \
find_symbol(cur_node->string, SYM_ENUM_CONST, 1)?\
SYM_ENUM_CONST : SYM_NORMAL ; \
cur_node->in_source_file = in_source_file; \
} while (0)
#define APP _APP(yytext, yyleng)
...
...
@@ -1975,6 +1976,13 @@ repeat:
cur_filename = memcpy(xmalloc(e-file+1), file, e-file+1);
cur_line = atoi(yytext+2);
if (!source_file) {
source_file = xstrdup(cur_filename);
in_source_file = 1;
} else {
in_source_file = (strcmp(cur_filename, source_file) == 0);
}
goto repeat;
}
...
...
This diff is collapsed.
Click to expand it.
scripts/genksyms/parse.tab.c_shipped
+
345
−
300
View file @
0359de7d
This diff is collapsed.
Click to expand it.
scripts/genksyms/parse.tab.h_shipped
+
3
−
4
View file @
0359de7d
/* A Bison parser, made by GNU Bison 2.
4.3
. */
/* A Bison parser, made by GNU Bison 2.
5
. */
/*
Skelet
on interface for
Bison's
Yacc-like parsers in C
/*
Bis
on interface for Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
2009, 2010 Free Software Foundation, Inc.
Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc.
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment