f17dd334a508ace00b52f6198b08c9a3ca004e06
[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
42 /* Only necessary because of a wart in gnulib's xalloc.h. */
43 #define __attribute__(X) __attribute__ (X)
44 #else
45 #define ATTRIBUTE(X)
46 #endif
47
48 #define UNUSED ATTRIBUTE ((unused))
49 #define NO_RETURN ATTRIBUTE ((noreturn))
50 #define PRINTF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (printf, FMT, FIRST)))
51 #define SCANF_FORMAT(FMT, FIRST) ATTRIBUTE ((format (scanf, FMT, FIRST)))
52
53 /* This attribute was added late in the GCC 2.x cycle. */
54 #if __GNUC__ > 2
55 #define MALLOC_LIKE ATTRIBUTE ((malloc))
56 #else
57 #define MALLOC_LIKE
58 #endif
59 \f
60 /* Filesystems. */
61
62 /* Directory separator and path delimiter for this OS. */
63 #ifndef __MSDOS__
64 #define DIR_SEPARATOR '/'
65 #define PATH_DELIMITER ':'
66 #else
67 #define DIR_SEPARATOR '\\'
68 #define PATH_DELIMITER ';'
69 #endif
70 \f
71 /* Options. */
72
73 /* Approximate amount of memory, in bytes, to allocate before paging
74    to disk.  */
75 #define MAX_WORKSPACE (4*1024*1024)     /* 4 MBytes */
76
77 /* (libhistory) The location for the history file that records
78    commands entered interactively.  Tilde expansion is performed. */
79 #define HISTORY_FILE "~/.pspp_history"
80
81 /* (libhistory) Maximum number of commands to record in history
82    file. */
83 #define MAX_HISTORY 500
84 \f
85 /* Non ansi compilers may set this */
86 #ifndef P_tmpdir
87 #define P_tmpdir "/tmp"
88 #endif
89
90 #define SHORT_NAME_LEN 8
91 #define LONG_NAME_LEN 64