diff options
author | peter <peter@FreeBSD.org> | 1999-04-18 13:37:49 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-18 13:37:49 +0000 |
commit | 31da8353e2c89540c346d2183e52ecc00784cb6a (patch) | |
tree | 372fc6311092b6b0718f3d955f3034c21232856c /usr.bin/yacc | |
parent | e0200a9fdea9ada7eb6f9af2ac7b63fcf5112e61 (diff) | |
download | FreeBSD-src-31da8353e2c89540c346d2183e52ecc00784cb6a.zip FreeBSD-src-31da8353e2c89540c346d2183e52ecc00784cb6a.tar.gz |
Clean up the skeleton code a little. There was a #ifdef to avoid
stdlib.h unless on C++. However, we already included it above, so there
was no point using the redundant declarations instead.
Diffstat (limited to 'usr.bin/yacc')
-rw-r--r-- | usr.bin/yacc/skeleton.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c index c4f4a5a..9423875 100644 --- a/usr.bin/yacc/skeleton.c +++ b/usr.bin/yacc/skeleton.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: skeleton.c,v 1.13 1997/04/28 03:36:13 steve Exp $ + * $Id: skeleton.c,v 1.14 1997/04/29 03:07:45 steve Exp $ */ #ifndef lint @@ -68,14 +68,6 @@ char *banner[] = "#define yyclearin (yychar=(YYEMPTY))", "#define yyerrok (yyerrflag=0)", "#define YYRECOVERING (yyerrflag!=0)", - "#if defined(c_plusplus) || defined(__cplusplus)", - /* Declaring standard functions is too painful for C++. */ - "#include <stdlib.h>", - "#else", - /* Declare standard functions to avoid depending on <stdlib.h>. */ - "extern char *getenv();", - "extern void *realloc();", - "#endif", #if 0 "extern int yylex();", "extern int yyparse();", |