diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1988-05-08 20:13:35 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1988-05-08 20:13:35 +0000 |
commit | 16ceb2c2884573b898d4c029ea4966bcfd6225e6 (patch) | |
tree | ce668b6b20bb28cb05b7c6a1cc01752091f1eccf | |
parent | 04153018792074e5286f89e3d194580f184c8385 (diff) |
RCS header
changed display style of non-printings from ^x to \0xx
-rw-r--r-- | yylex.c | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -1,8 +1,5 @@ /* yylex - scanner front-end for flex */ -#include "flexdef.h" -#include "parse.h" - /* * Copyright (c) 1987, the University of California * @@ -15,6 +12,14 @@ * public, are made available for use by anyone. */ +#include "flexdef.h" +#include "parse.h" + +#ifndef lint +static char rcsid[] = + "@(#) $Header$ (LBL)"; +#endif + /* yylex - scan for a regular expression token * * synopsis @@ -183,12 +188,8 @@ int yylex() case 29: case 30: case 31: - fprintf( stderr, "^%c", 'A' + yylval - 1 ); - break; - case 127: - (void) putc( '^', stderr ); - (void) putc( '@', stderr ); + fprintf( stderr, "\\%.3o", yylval ); break; default: |