be0451150bbeb807985961a0dbd4f03de1c251ea
[pspp-builds.git] / pref.h.orig
1 /* -*- C -*- */
2
3 /* Used by separable libraries to enable PSPP-specific features. */
4 #define PSPP 1
5
6 /*
7  *
8  * Debugging
9  *
10  */
11
12 /* Define to get lots of info printed by procedures. */
13 /*#define DEBUGGING 1*/
14
15 #if DEBUGGING
16 #define GLOBAL_DEBUGGING 1
17 #endif
18
19 #if !HAVE_LIBPLOT
20 #define NO_CHARTS 1
21 #endif
22
23 /* Define these if DEBUGGING is off and you want to make certain
24    additional optimizations. */
25 #if !DEBUGGING
26 /* #define NDEBUG 1 */                  /* disable assert() sanity checks */
27 #endif
28 \f
29 /* Compilers. */
30
31 /* Use proper keywords. */
32 #if __GNUC__ > 1 && !defined (inline)
33 #define inline __inline__
34 #endif
35
36 /* GNU C allows the programmer to declare that certain functions take
37    printf-like arguments, never return, etc.  Conditionalize these
38    declarations on whether gcc is in use. */
39 #if __GNUC__ > 1
40 #define ATTRIBUTE(X) __attribute__ (X)
41 #else
42 #define ATTRIBUTE(X)
43 #endif
44
45 #define UNUSED ATTRIBUTE ((unused))
46 #define NO_RETURN ATTRIBUTE ((noreturn))
47 #define PRINTF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (printf, FMT, FIRST)))
48 #define SCANF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (scanf, FMT, FIRST)))
49
50 /* This attribute was added late in the GCC 2.x cycle. */
51 #if __GNUC__ > 2
52 #define MALLOC_LIKE ATTRIBUTE ((malloc))
53 #else
54 #define MALLOC_LIKE
55 #endif
56 \f
57 /* Internationalization. */
58 #include <libintl.h>
59
60 #if !ENABLE_NLS
61 /* If we don't do this then gettext() still monkeys with the
62    string, keeping gcc from checking printf() format types. */
63 #undef gettext
64 #define gettext(STRING) STRING
65 #endif
66
67 #define _(STRING) gettext(STRING)
68 #define N_(STRING) STRING
69 \f
70 /* Filesystems. */
71
72 /* Directory separator and path delimiter for this OS. */
73 #ifndef __MSDOS__
74 #define DIR_SEPARATOR '/'
75 #define PATH_DELIMITER ':'
76 #else
77 #define DIR_SEPARATOR '\\'
78 #define PATH_DELIMITER ';'
79 #endif
80 \f
81 /* Options. */
82
83 /* Approximate amount of memory, in bytes, to allocate before paging
84    to disk.  */
85 #define MAX_WORKSPACE (4*1024*1024)     /* 4 MBytes */
86
87 /* (libhistory) The location for the history file that records
88    commands entered interactively.  Tilde expansion is performed. */
89 #define HISTORY_FILE "~/.pspp_history"
90
91 /* (libhistory) Maximum number of commands to record in history
92    file. */
93 #define MAX_HISTORY 500
94 \f
95 /* Non ansi compilers may set this */
96 #ifndef P_tmpdir
97 #define P_tmpdir "/tmp"
98 #endif