Checkin of new directory structure.
[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 /* Options. */
63
64 /* Approximate amount of memory, in bytes, to allocate before paging
65    to disk.  */
66 #define MAX_WORKSPACE (4*1024*1024)     /* 4 MBytes */
67
68 \f
69 /* Non ansi compilers may set this */
70 #ifndef P_tmpdir
71 #define P_tmpdir "/tmp"
72 #endif
73
74 #define SHORT_NAME_LEN 8
75 #define LONG_NAME_LEN 64