summaryrefslogtreecommitdiffstats
path: root/contrib/one-true-awk/lex.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-12-13 04:59:48 +0000
committerobrien <obrien@FreeBSD.org>2002-12-13 04:59:48 +0000
commit279a30e7a9812f477c5991f0df7082a9736bdc00 (patch)
tree59f89c7c67df8769e65e35d1054fb5407fb18d12 /contrib/one-true-awk/lex.c
parent4911d68e89b7b39eeb1d42f4e510a4c6c5d26bd3 (diff)
downloadFreeBSD-src-279a30e7a9812f477c5991f0df7082a9736bdc00.zip
FreeBSD-src-279a30e7a9812f477c5991f0df7082a9736bdc00.tar.gz
Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.
Diffstat (limited to 'contrib/one-true-awk/lex.c')
-rw-r--r--contrib/one-true-awk/lex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/one-true-awk/lex.c b/contrib/one-true-awk/lex.c
index 2b16b25..e4b1fd3 100644
--- a/contrib/one-true-awk/lex.c
+++ b/contrib/one-true-awk/lex.c
@@ -38,7 +38,7 @@ int brackcnt = 0;
int parencnt = 0;
typedef struct Keyword {
- char *word;
+ const char *word;
int sub;
int type;
} Keyword;
@@ -499,7 +499,7 @@ int word(char *w)
}
}
-void startreg(void) /* next call to yyles will return a regular expression */
+void startreg(void) /* next call to yylex will return a regular expression */
{
reg = 1;
}
@@ -574,7 +574,7 @@ void unput(int c) /* put lexical character back on input */
ep = ebuf + sizeof(ebuf) - 1;
}
-void unputstr(char *s) /* put a string back on input */
+void unputstr(const char *s) /* put a string back on input */
{
int i;
OpenPOWER on IntegriCloud