23 |
|
|
24 |
%{ |
%{ |
25 |
#include "system.h" |
#include "system.h" |
26 |
|
#include "quotearg.h" |
27 |
#include "error.h" |
#include "error.h" |
28 |
#include "getargs.h" |
#include "getargs.h" |
29 |
#include "files.h" |
#include "files.h" |
30 |
|
|
31 |
int skel_lex (void); |
int skel_lex (void); |
32 |
|
|
33 |
static int yylineno = 1; |
static int yylineno = 1; |
34 |
static char *yyoutname = NULL; |
static char *yyoutname = NULL; |
35 |
|
|
36 |
%} |
%} |
37 |
%% |
%% |
38 |
/* This is an approximation, but we don't need more. */ |
/* This is an approximation, but we don't need more. */ |
48 |
"@:>@" fputc (']', yyout); |
"@:>@" fputc (']', yyout); |
49 |
|
|
50 |
"__oline__" fprintf (yyout, "%d", yylineno+1); |
"__oline__" fprintf (yyout, "%d", yylineno+1); |
51 |
"__ofile__" fprintf (yyout, "%s", yyoutname); |
"__ofile__" fprintf (yyout, "%s", quotearg_style (escape_quoting_style, yyoutname)); |
52 |
[^@_\n]+ ECHO; |
[^@_\n]+ ECHO; |
53 |
\n+ yylineno += yyleng; ECHO; |
\n+ yylineno += yyleng; ECHO; |
54 |
. ECHO; |
. ECHO; |