diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-04-18 17:06:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-04-18 17:06:32 +0000 |
commit | 44df8b77706890435e485c323ff5be8bec119bcb (patch) | |
tree | 39bcf9f33f3c403bffd9afa17348950c0329b622 /usr.bin/awk/lex.c | |
parent | 47e793c291239affc066833827fbcdb12825e582 (diff) |
March 5, 1999 version of the "one true awk"
Diffstat (limited to 'usr.bin/awk/lex.c')
-rw-r--r-- | usr.bin/awk/lex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/awk/lex.c b/usr.bin/awk/lex.c index cb89504c0c5..688128bdc7a 100644 --- a/usr.bin/awk/lex.c +++ b/usr.bin/awk/lex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lex.c,v 1.1 1997/08/25 16:17:11 kstailey Exp $ */ +/* $OpenBSD: lex.c,v 1.2 1999/04/18 17:06:30 millert Exp $ */ /**************************************************************** Copyright (C) Lucent Technologies 1997 All Rights Reserved @@ -97,7 +97,7 @@ Keyword keywords[] ={ /* keep sorted: binary searched */ #define RET(x) return(x) #endif -int peek() +int peek(void) { int c = input(); unput(c); @@ -144,11 +144,11 @@ int gettok(char **pbuf, int *psz) /* get next input token */ || c == '.' || c == '+' || c == '-') *bp++ = c; else { - *bp = 0; unput(c); break; } } + *bp = 0; strtod(buf, &rem); /* parse the number */ unputstr(rem); /* put rest back for later */ rem[0] = 0; |