X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ffilename.c;h=4d90e6d5aae14000554babc1c20e4b68be1f6772;hb=5382abe75bbd1689aca8c922fbf084af9f6bd723;hp=4aaf7d17f916d5c92aca4d4d2aad8f11d07376e9;hpb=4944c86a9318bc5b5578ab145a95c116ffd2c9fd;p=pspp diff --git a/src/filename.c b/src/filename.c index 4aaf7d17f9..4d90e6d5aa 100644 --- a/src/filename.c +++ b/src/filename.c @@ -17,37 +17,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* AIX requires this to be the first thing in the file. */ #include -#if __GNUC__ -#define alloca __builtin_alloca -#else -#if HAVE_ALLOCA_H -#include -#else -#ifdef _AIX -#pragma alloca -#else -#ifndef alloca /* predefined by HP cc +Olibcalls */ -char *alloca (); -#endif -#endif -#endif -#endif - #include +#include "filename.h" #include #include #include #include "alloc.h" #include "error.h" -#include "filename.h" #include "settings.h" #include "str.h" #include "version.h" -#undef DEBUGGING -/*#define DEBUGGING 1 */ #include "debug-print.h" /* PORTME: Everything in this file is system dependent. */ @@ -373,16 +354,10 @@ fn_normalize (const char *filename) else { errno = 0; -#if __CHECKER__ - memset (dest, 0, maxlen); -#endif while (getcwd (dest, maxlen - (dest - fn2)) == NULL && errno == ERANGE) { maxlen *= 2; dest = fn2 = xrealloc (fn2, maxlen + 1); -#if __CHECKER__ - memset (dest, 0, maxlen); -#endif errno = 0; } if (errno)