** drh@acm.org
** http://www.hwaci.com/drh/
**
-** $Id: lemon.c,v 1.15 2003/12/21 00:16:54 ulfl Exp $
+** $Id: lemon.c,v 1.16 2004/01/18 15:53:43 jmayer Exp $
*/
#include <stdio.h>
#include <stdarg.h>
char *argv0; /* Name of the program */
};
+void memory_error(void);
#define MemoryCheck(X) if((X)==0){ \
- extern void memory_error(void); \
memory_error(); \
}
if( path ) sprintf(path,"%s/%s",argv0,name);
*cp = c;
}else{
- extern char *getenv();
pathlist = getenv("PATH");
if( pathlist==0 ) pathlist = ".:/bin:/usr/bin";
path = (char *)malloc( strlen(pathlist)+strlen(name)+2 );
int i;
s = (char*)malloc( size );
if( s==0 ){
- extern void memory_error();
memory_error();
}
for(i=0; i<size; i++) s[i] = 0;