Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274291
b: refs/heads/master
c: 0359de7
h: refs/heads/master
i:
  274289: 79f86e2
  274287: 1f761e0
v: v3
  • Loading branch information
Michal Marek committed Oct 11, 2011
1 parent 74445c2 commit 36dac1a
Show file tree
Hide file tree
Showing 4 changed files with 359 additions and 307 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2c5925d6b7fedc8f1c325f4f85451f505ec69aca
refs/heads/master: 0359de7dd501f694f01b61364c9b633eab41f494
12 changes: 10 additions & 2 deletions trunk/scripts/genksyms/lex.lex.c_shipped
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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; \
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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;
}

Expand Down
Loading

0 comments on commit 36dac1a

Please sign in to comment.