X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pref.h.orig;h=f2efb834c970a5a2c376176f1b9ed30b8c2d2fc9;hb=2322678e8fddbbf158b01b2720db2636404bba3b;hp=2193c6b4082b1fcbf340b8161fd0e5be07d02ae2;hpb=05e356b2a3087e819ef3b5388e29c822f41502e1;p=pspp diff --git a/pref.h.orig b/pref.h.orig index 2193c6b408..f2efb834c9 100644 --- a/pref.h.orig +++ b/pref.h.orig @@ -1,8 +1,5 @@ /* -*- C -*- */ -/* Used by separable libraries to enable PSPP-specific features. */ -#define PSPP 1 - /* * * Debugging @@ -19,78 +16,15 @@ #if !HAVE_LIBPLOT #define NO_CHARTS 1 #endif - -/* Define these if DEBUGGING is off and you want to make certain - additional optimizations. */ -#if !DEBUGGING -/* #define NDEBUG 1 */ /* disable assert() sanity checks */ -#endif - -/* Compilers. */ - -/* Use proper keywords. */ -#if __GNUC__ > 1 && !defined (inline) -#define inline __inline__ -#endif - -/* GNU C allows the programmer to declare that certain functions take - printf-like arguments, never return, etc. Conditionalize these - declarations on whether gcc is in use. */ -#if __GNUC__ > 1 -#define ATTRIBUTE(X) __attribute__ (X) -#else -#define ATTRIBUTE(X) -#endif - -#define UNUSED ATTRIBUTE ((unused)) -#define NO_RETURN ATTRIBUTE ((noreturn)) -#define PRINTF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (printf, FMT, FIRST))) -#define SCANF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (scanf, FMT, FIRST))) - -/* This attribute was added late in the GCC 2.x cycle. */ -#if __GNUC__ > 2 -#define MALLOC_LIKE ATTRIBUTE ((malloc)) -#else -#define MALLOC_LIKE -#endif - -/* Internationalization. */ -#include - -#if !ENABLE_NLS -/* If we don't do this then gettext() still monkeys with the - string, keeping gcc from checking printf() format types. */ -#undef gettext -#define gettext(STRING) STRING -#endif - -#define _(STRING) gettext(STRING) -#define N_(STRING) STRING /* Filesystems. */ -/* Directory separator and path delimiter for this OS. */ -#ifndef __MSDOS__ -#define DIR_SEPARATOR '/' -#define PATH_DELIMITER ':' -#else -#define DIR_SEPARATOR '\\' -#define PATH_DELIMITER ';' -#endif - /* Options. */ /* Approximate amount of memory, in bytes, to allocate before paging to disk. */ #define MAX_WORKSPACE (4*1024*1024) /* 4 MBytes */ -/* (libhistory) The location for the history file that records - commands entered interactively. Tilde expansion is performed. */ -#define HISTORY_FILE "~/.pspp_history" - -/* (libhistory) Maximum number of commands to record in history - file. */ -#define MAX_HISTORY 500 /* Non ansi compilers may set this */ #ifndef P_tmpdir