/[bison]/bison/src/scan-skel.l
ViewVC logotype

Diff of /bison/src/scan-skel.l

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by eggert, Mon Oct 21 05:30:50 2002 UTC revision 1.16 by akim, Wed Nov 6 16:22:04 2002 UTC
# Line 23  Line 23 
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. */
# Line 44  static char *yyoutname = NULL; Line 48  static char *yyoutname = NULL;
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;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26