[lemon] standalone; remove #include "first.h"
also remove extern declarations for functions from standard headers
This commit is contained in:
parent
30c54b65e4
commit
76514e7a39
16
src/lemon.c
16
src/lemon.c
|
@ -1,4 +1,6 @@
|
|||
#include "first.h"
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
/*
|
||||
** This file contains all sources (including headers) to the LEMON
|
||||
|
@ -14,17 +16,10 @@
|
|||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <inttypes.h>
|
||||
#include <unistd.h> /* access() */
|
||||
|
||||
#define UNUSED(x) ( (void)(x) )
|
||||
|
||||
extern void qsort();
|
||||
extern double strtod();
|
||||
extern long strtol();
|
||||
extern void free();
|
||||
extern int access();
|
||||
extern int atoi();
|
||||
extern char *getenv();
|
||||
|
||||
#ifndef __WIN32__
|
||||
# if defined(_WIN32) || defined(WIN32)
|
||||
# define __WIN32__
|
||||
|
@ -48,7 +43,7 @@ extern char *getenv();
|
|||
|
||||
void *msort(void *list, void **next, int(*cmp)(void *, void *));
|
||||
|
||||
extern void memory_error() NORETURN;
|
||||
static void memory_error() NORETURN;
|
||||
|
||||
/******** From the file "action.h" *************************************/
|
||||
struct action *Action_new();
|
||||
|
@ -2742,7 +2737,6 @@ struct lemon *lemp;
|
|||
return;
|
||||
}
|
||||
|
||||
extern int access();
|
||||
/* Search for the file "name" which is in the same directory as
|
||||
** the exacutable */
|
||||
PRIVATE char *pathsearch(argv0,name,modemask)
|
||||
|
|
Loading…
Reference in New Issue