1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

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.
This commit is contained in:
Peter Wemm 1999-04-18 13:37:49 +00:00
parent e6fbbbe459
commit 7c71e88713
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=45776

View File

@ -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();",