RCS header
authorVern Paxson <vern@ee.lbl.gov>
Sun, 8 May 1988 20:13:35 +0000 (20:13 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Sun, 8 May 1988 20:13:35 +0000 (20:13 +0000)
changed display style of non-printings from ^x to \0xx

yylex.c

diff --git a/yylex.c b/yylex.c
index 8e2625458479db878570d571fa58297a0a8fc625..cebf75664dc872f10a18c5eac4ce06b6f1f8c5ae 100644 (file)
--- a/yylex.c
+++ b/yylex.c
@@ -1,8 +1,5 @@
 /* yylex - scanner front-end for flex */
 
-#include "flexdef.h"
-#include "parse.h"
-
 /*
  * Copyright (c) 1987, the University of California
  * 
  * 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: