X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=pref.h.orig;h=f2efb834c970a5a2c376176f1b9ed30b8c2d2fc9;hb=2322678e8fddbbf158b01b2720db2636404bba3b;hp=f17dd334a508ace00b52f6198b08c9a3ca004e06;hpb=4de79b34b329d1da6cdeb145993d3efd911e2967;p=pspp diff --git a/pref.h.orig b/pref.h.orig index f17dd334a5..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,68 +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) - -/* Only necessary because of a wart in gnulib's xalloc.h. */ -#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 /* 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