From d0ae963e2a496cc69fd3617ddcfb6958bbdf02dd Mon Sep 17 00:00:00 2001 From: epetrich Date: Sat, 22 May 2004 06:03:56 +0000 Subject: [PATCH] * device/include/string.h: applied Stas Sergeev's patch to make this header file compatible with the preprocessor -Wundef option * src/SDCCmain.c (main): abort compilation if preprocessor reports failure (fixes bug #941458) git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3322 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 7 +++++++ device/include/string.h | 2 +- src/SDCCmain.c | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a48e4aea..80e06d2c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-05-22 Erik Petrich + + * device/include/string.h: applied Stas Sergeev's patch to make this + header file compatible with the preprocessor -Wundef option + * src/SDCCmain.c (main): abort compilation if preprocessor reports + failure (fixes bug #941458) + 2004-05-21 Erik Petrich * src/SDCCopt.c (killDeadCode): fixed bug #907733 diff --git a/device/include/string.h b/device/include/string.h index 2800db73..aabc9037 100644 --- a/device/include/string.h +++ b/device/include/string.h @@ -54,7 +54,7 @@ extern int memcmp (void *, void *, size_t ) ; extern void *memset (void *, unsigned char , size_t ) ; extern void *memmove (void *, void *, size_t ) ; -#if SDCC_ds390 +#ifdef SDCC_ds390 extern void xdata * memcpyx(void xdata *, void xdata *, int) _naked; #endif diff --git a/src/SDCCmain.c b/src/SDCCmain.c index 92e08452..9b720b27 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -2156,7 +2156,8 @@ main (int argc, char **argv, char **envp) yyparse (); - pclose(yyin); + if (pclose(yyin)) + fatalError = 1; deleteSetItem(&pipeSet, yyin); if (fatalError) { -- 2.30.2