File: configur.h

package info (click to toggle)
regina 3.3-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,952 kB
  • ctags: 7,235
  • sloc: ansic: 50,555; sh: 2,727; lex: 2,298; yacc: 1,498; makefile: 1,017; cpp: 117
file content (785 lines) | stat: -rw-r--r-- 22,018 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
/*
 *  The Regina Rexx Interpreter
 *  Copyright (C) 1992-1994  Anders Christensen <anders@pvv.unit.no>
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Library General Public
 *  License as published by the Free Software Foundation; either
 *  version 2 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Library General Public License for more details.
 *
 *  You should have received a copy of the GNU Library General Public
 *  License along with this library; if not, write to the Free
 *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

/*
 * $Id: configur.h,v 1.42 2004/04/16 11:14:02 mark Exp $
 */

/*
 * For platforms that don't use autoconf, put these here...
 */
#define HAVE_ASSERT_H        1
#define HAVE_ERRNO_H         1
#define HAVE_CTYPE_H         1
#define HAVE_STDARG_H        1
#define HAVE_SYS_STAT_H      1

#if defined(DOS) && defined(EMX)
# define HAVE_ALLOCA_H        1
# define HAVE_FTIME           1
# define HAVE_MATH_H          1
# define HAVE_RANDOM          1
#undef HAVE_RANDOM /* needs bsd support and linking with -lbsd */
# define HAVE_SIGACTION       1
# define HAVE_STDIO_H         1
# define HAVE_SYS_TIME_H      1
# define HAVE_SYSCONF         1
# define HAVE_TERMIOS_H       1
# define HAVE_TIME_H          1
# define HAVE_FCNTL_H         1
# define HAVE_GRP_H           1
# define HAVE_PWD_H           1
# define HAVE_LIMITS_H        1
# define HAVE_MALLOC_H        1
# define HAVE_SETJMP_H        1
# define HAVE_SIGNAL_H        1
# define HAVE_STDLIB_H        1
# define HAVE_STRING_H        1
# define HAVE_UNISTD_H        1
# define HAVE_SYS_SOCKET_H    1
# define HAVE_NETINET_IN_H    1
# define HAVE_SYS_SELECT_H    1
# define HAVE_NETDB_H         1
# define HAVE_ARPA_INET_H     1
# define HAVE__FULLPATH       1
# define HAVE_PUTENV          1
# define HAVE_GETTIMEOFDAY    1
# define HAVE_FTRUNCATE       1
# define HAVE_MEMCPY          1
# define HAVE_MEMMOVE         1
# define HAVE_STRERROR        1
# define HAVE_VSPRINTF        1
# define HAVE_GETPID          1
# define TIME_WITH_SYS_TIME   1
#endif

#if defined(OS2) && defined(EMX)
# define HAVE_ALLOCA_H        1
# define HAVE_FTIME           1
# define HAVE_MATH_H          1
# define HAVE_RANDOM          1
#undef HAVE_RANDOM /* needs bsd support and linking with -lbsd */
# define HAVE_SIGACTION       1
# define HAVE_STDIO_H         1
# define HAVE_SYS_TIME_H      1
# define HAVE_SYSCONF         1
# define HAVE_TERMIOS_H       1
# define HAVE_TIME_H          1
# define HAVE_FCNTL_H         1
# define HAVE_GRP_H           1
# define HAVE_PWD_H           1
# define HAVE_LIMITS_H        1
# define HAVE_MALLOC_H        1
# define HAVE_SETJMP_H        1
# define HAVE_SIGNAL_H        1
# define HAVE_STDLIB_H        1
# define HAVE_STRING_H        1
# define HAVE_UNISTD_H        1
# define HAVE_SYS_SOCKET_H    1
# define HAVE_NETINET_IN_H    1
# define HAVE_SYS_SELECT_H    1
# define HAVE_NETDB_H         1
# define HAVE_ARPA_INET_H     1
# define HAVE__FULLPATH       1
# define HAVE_PUTENV          1
# define HAVE_GETTIMEOFDAY    1
# define HAVE_FTRUNCATE       1
# define HAVE_MEMCPY          1
# define HAVE_MEMMOVE         1
# define HAVE_STRERROR        1
# define HAVE_VSPRINTF        1
# define HAVE_GETPID          1
# define TIME_WITH_SYS_TIME   1
# if defined(DYNAMIC)
#  define DYNAMIC_OS2
# endif
#endif

#if defined(OS2) && defined(__IBMC__)
# define HAVE_SETJMP_H
# define HAVE__FULLPATH
# define HAVE_PUTENV
# define HAVE_GETTIMEOFDAY
# define HAVE_FTRUNCATE
# define HAVE_MEMCPY
# define HAVE_MEMMOVE
# define HAVE_STRERROR
# define HAVE_VSPRINTF
# define HAVE_GETPID
# define TIME_WITH_SYS_TIME
#endif

#if defined(OS2) && defined(__WATCOMC__)
# define HAVE_MALLOC_H
# define HAVE_PROCESS_H
# define HAVE_SETJMP_H
# define HAVE_STRING_H
# define HAVE_UNISTD_H
# define HAVE_STRING_H
# define HAVE_DIRECT_H
# define HAVE_PROCESS_H    /* at least OpenWatcom */
# define HAVE_SYS_SOCKET_H /* at least OpenWatcom */
# define HAVE_NETINET_IN_H /* at least OpenWatcom */
# define HAVE_SYS_SELECT_H /* at least OpenWatcom */
# define HAVE_NETDB_H      /* at least OpenWatcom */
# define HAVE_ARPA_INET_H  /* at least OpenWatcom */
# define HAVE__FULLPATH
# define HAVE_PUTENV
# define HAVE_DIRECT_H
# define HAVE_TYPES_H
# define HAVE_SYS_SOCKET_H
# define HAVE_NETINET_IN_H
# define HAVE_SYS_SELECT_H
# define HAVE_NETDB_H
# define HAVE_ARPA_INET_H
# define HAVE_MEMCPY
# define HAVE_MEMMOVE
# define HAVE_STRERROR
# define HAVE_VSPRINTF
# define HAVE_GETPID
# if defined(DYNAMIC)
#  define DYNAMIC_OS2
# endif
#endif

#if defined(WIN32) && defined(__WATCOMC__)
# define HAVE_MALLOC_H
# define HAVE_SETJMP_H
# define HAVE_SIGNAL_H
# define HAVE_UNISTD_H
# define HAVE_FTIME
# define HAVE_FCNTL_H
# define HAVE__FULLPATH
# define HAVE__SPLITPATH2
/* # define HAVE_FTRUNCATE */
# define HAVE_MEMCPY
# define HAVE_MEMMOVE
# define HAVE_SETENV
# define HAVE_STRERROR
# define HAVE_VSPRINTF
# define HAVE_GETPID
# if defined(DYNAMIC)
#  define DYNAMIC_WIN32
# endif
#endif

#if defined(WIN32) && defined(_MSC_VER)
# define HAVE_FCNTL_H
# define HAVE_LIMITS_H
# define HAVE_MALLOC_H
# define HAVE_PROCESS_H
# define HAVE_SETJMP_H
# define HAVE_SIGNAL_H
# define HAVE_STDLIB_H
# define HAVE_STRING_H
# define HAVE__FULLPATH
# define HAVE__SPLITPATH
# define HAVE_FTRUNCATE
# define HAVE_MY_WIN32_SETENV
# define HAVE_FTIME
# define HAVE_MEMCPY
# define HAVE_MEMMOVE
# define HAVE_STRERROR
# define HAVE_VSPRINTF
# define HAVE_GETPID
# if defined(DYNAMIC)
#  define DYNAMIC_WIN32
# endif
#endif

#if defined(WIN32) && defined(__BORLANDC__)
# define HAVE_LIMITS_H
# define HAVE_MALLOC_H
# define HAVE_PROCESS_H
# define HAVE_SETJMP_H
# define HAVE_SIGNAL_H
# define HAVE_STDLIB_H
# define HAVE_STRING_H
# define HAVE__FULLPATH
# define HAVE__SPLITPATH
# define HAVE_MY_WIN32_SETENV
# define HAVE_FTIME
# define HAVE_MEMCPY
# define HAVE_MEMMOVE
# define HAVE_STRERROR
# define HAVE_VSPRINTF
# if defined(DYNAMIC)
#  define DYNAMIC_WIN32
# endif
#endif

#if defined(WIN32) && defined(__CYGWIN32__)
# define HAVE_GRP_H           1
# define HAVE_PWD_H           1
# define HAVE_LIMITS_H        1
# define HAVE_MALLOC_H        1
# define HAVE_PROCESS_H       1
# define HAVE_SETJMP_H        1
# define HAVE_SIGNAL_H        1
# define HAVE_STDLIB_H        1
# define HAVE_STRING_H        1
# define HAVE_UNISTD_H        1
/* # define HAVE__FULLPATH        1 */
# define HAVE_PUTENV          1
# define HAVE_GETTIMEOFDAY    1
# define HAVE_FTRUNCATE       1
# define HAVE_MEMCPY          1
# define HAVE_MEMMOVE         1
# define HAVE_STRERROR        1
# define HAVE_VSPRINTF        1
# define HAVE_GETPID
# define TIME_WITH_SYS_TIME   1
# if defined(DYNAMIC)
#  define DYNAMIC_WIN32
# endif
#endif

#if defined(WIN32) && defined(__MINGW32__)
# define HAVE_LIMITS_H        1
# define HAVE_MALLOC_H        1
# define HAVE_PROCESS_H       1
# define HAVE_SETJMP_H        1
# define HAVE_SIGNAL_H        1
# define HAVE_STDLIB_H        1
# define HAVE_STRING_H        1
# define HAVE_UNISTD_H        1
/* # define HAVE__FULLPATH        1 */
# define HAVE_PUTENV          1
/* # define HAVE_GETTIMEOFDAY    1 */
/* # define HAVE_FTRUNCATE       1 */
# define HAVE_MEMCPY          1
# define HAVE_MEMMOVE         1
# define HAVE_STRERROR        1
# define HAVE_VSPRINTF        1
# define HAVE_GETPID
# define TIME_WITH_SYS_TIME   1
# if defined(DYNAMIC)
#  define DYNAMIC_WIN32
# endif
#endif

#if defined(WIN32) && defined(__LCC__)
# define HAVE_FCNTL_H         1
# define HAVE_DIRECT_H        1
# define HAVE_LIMITS_H        1
# define HAVE_MALLOC_H        1
# define HAVE_PROCESS_H       1
# define HAVE_SETJMP_H        1
# define HAVE_SIGNAL_H        1
# define HAVE_STDLIB_H        1
# define HAVE_STRING_H        1
# define HAVE_UNISTD_H        1
# define HAVE__FULLPATH       1
# define HAVE_PUTENV          1
/* # define HAVE_GETTIMEOFDAY    1 */
/* # define HAVE_FTRUNCATE       1 */
# define HAVE_MEMCPY          1
# define HAVE_MEMMOVE         1
# define HAVE_STRERROR        1
# define HAVE_VSPRINTF        1
# define HAVE__SPLITPATH      1
# define HAVE_GETPID          1
/* # define TIME_WITH_SYS_TIME   1 */
# if defined(DYNAMIC)
#  define DYNAMIC_WIN32
# endif
#endif

#if defined(DOS) && defined(DJGPP)
# define HAVE_FCNTL_H
# define HAVE_GRP_H
# define HAVE_PWD_H
# define HAVE_LIMITS_H
# define TIME_WITH_SYS_TIME
# define HAVE_SETJMP_H
# define HAVE_UNISTD_H
# define HAVE_SYS_SOCKET_H
# define HAVE_NETINET_IN_H
/* # define HAVE_SYS_SELECT_H */
# define HAVE_NETDB_H
# define HAVE_ARPA_INET_H
# define HAVE_PUTENV
# define HAVE_GETTIMEOFDAY
# define HAVE_FTRUNCATE
# define HAVE_RANDOM
# define HAVE_USLEEP
# define HAVE_MEMCPY
# define HAVE_MEMMOVE
# define HAVE_STRERROR
# define HAVE__TRUENAME
# define HAVE_VSPRINTF
# define HAVE_GETPID
# ifndef _MAX_PATH
#  define _MAX_PATH  PATH_MAX
# endif
#endif

#if defined(_AMIGA) && defined(__SASC)
# define HAVE_SETJMP_H
/* # define HAVE_UNISTD_H */
# define HAVE_PUTENV
# define HAVE_MEMCPY
# define HAVE_MEMMOVE
# define HAVE_STRERROR
# define HAVE_VSPRINTF
# define UNIX
#endif

#if defined(AMIGA) && ( defined(GCC) || defined(__GNUC__) )
# define HAVE_GRP_H           1
# define HAVE_PWD_H           1
# define HAVE_LIMITS_H        1
# define HAVE_MALLOC_H        1
# define HAVE_SETJMP_H        1
# define HAVE_SIGNAL_H        1
# define HAVE_STDLIB_H        1
# define HAVE_STRING_H        1
# define HAVE_UNISTD_H        1
# define HAVE_SYS_SOCKET_H    1
# define HAVE_SYS_FCNTL_H     1
# define HAVE_NETINET_IN_H    1
# define HAVE_NETDB_H         1
# define HAVE_ARPA_INET_H     1
/* # define HAVE__FULLPATH        1 */
# define HAVE_PUTENV          1
# define HAVE_FTIME           1
# define HAVE_FTRUNCATE       1
# define HAVE_MEMCPY          1
# define HAVE_MEMMOVE         1
# define HAVE_STRERROR        1
# define HAVE_VSPRINTF        1
# define HAVE_GETPID
# define TIME_WITH_SYS_TIME   1
# if !defined( _AMIGA )
#  define _AMIGA
# endif
# if !defined( __AMIGADATE__ )
#  define __AMIGADATE__ "("__DATE__")"
# endif
#endif

#if defined(MAC)
/* # define HAVE_GRP_H           1 */
/* # define HAVE_PWD_H           1 */
# define HAVE_LIMITS_H        1
/* # define HAVE_MALLOC_H        1 */
# define HAVE_SETJMP_H        1
# define HAVE_SIGNAL_H        1
# define HAVE_STDLIB_H        1
# define HAVE_STRING_H        1
/* # define HAVE_UNISTD_H        1 */
/*
# define HAVE_SYS_SOCKET_H    1
# define HAVE_NETINET_IN_H    1
# define HAVE_NETDB_H         1
# define HAVE_ARPA_INET_H     1
*/
/* # define HAVE__FULLPATH        1 */
/*# define HAVE_SETENV          1 */
/* # define HAVE_FTIME           1 */
/* # define HAVE_FTRUNCATE       1 */
# define HAVE_MEMCPY          1
# define HAVE_MEMMOVE         1
# define HAVE_STRERROR        1
# define HAVE_VSPRINTF        1
# define HAVE_GETPID
/* # define TIME_WITH_SYS_TIME   1 */
#endif

/*
 * The following are for Epoc32 platform
 */
#if defined(__VC32__) && defined(__WINS__)
# define HAVE_SYS_FCNTL_H
# define HAVE_LIMITS_H
# define HAVE_PROCESS_H
# define HAVE_SETJMP_H
# define HAVE_SIGNAL_H
# define HAVE_STDLIB_H
# define HAVE_STRING_H
/* # define HAVE__FULLPATH */
/* # define HAVE__SPLITPATH */
/* # define HAVE_FTRUNCATE */
/* # define HAVE_MY_WIN32_SETENV */
# define HAVE_MEMCPY
# define HAVE_MEMMOVE
# define HAVE_STRERROR
# define HAVE_VSPRINTF
# define HAVE_GETPID
# define HAVE_SYS_SOCKET_H
# define HAVE_NETINET_IN_H
# define HAVE_NETDB_H
# define HAVE_ARPA_INET_H
# define HAVE_UNISTD_H
# if defined(DYNAMIC)
#  define DYNAMIC_WIN32
# endif
#endif

#if defined(__GCC32__) && defined(__EPOC32__)
# define HAVE_SYS_FCNTL_H     1
/* # define HAVE_GRP_H           1 */
/* # define HAVE_PWD_H           1 */
# define HAVE_LIMITS_H        1
/*# define HAVE_MALLOC_H        1 */
# define HAVE_PROCESS_H       1
# define HAVE_SETJMP_H        1
# define HAVE_SIGNAL_H        1
# define HAVE_STDLIB_H        1
# define HAVE_STRING_H        1
# define HAVE_UNISTD_H        1
/* # define HAVE__FULLPATH        1 */
/* # define HAVE_PUTENV          1 */
# define HAVE_GETTIMEOFDAY    1
/*# define HAVE_FTRUNCATE       1 */
# define HAVE_MEMCPY          1
# define HAVE_MEMMOVE         1
# define HAVE_STRERROR        1
# define HAVE_VSPRINTF        1
# define HAVE_GETPID          1
# define TIME_WITH_SYS_TIME   1
# define HAVE_SYS_SOCKET_H    1
# define HAVE_NETINET_IN_H    1
# define HAVE_NETDB_H         1
# define HAVE_ARPA_INET_H     1
# if defined(DYNAMIC)
#  define DYNAMIC_WIN32
# endif
#endif

#if defined(SKYOS)
# include <skyos/libskyos.h>
# define HAVE_SYS_FCNTL_H     1
# define HAVE_GRP_H           1
# define HAVE_PWD_H           1
# define HAVE_LIMITS_H        1
/*# define HAVE_MALLOC_H        1 */
# define HAVE_PROCESS_H       1
# define HAVE_SETJMP_H        1
# define HAVE_SIGNAL_H        1
# define HAVE_STDLIB_H        1
# define HAVE_STRING_H        1
# define HAVE_UNISTD_H        1
/* # define HAVE__FULLPATH        1 */
/* # define HAVE_PUTENV          1 */
# define HAVE_GETTIMEOFDAY    1
/*# define HAVE_FTRUNCATE       1 */
# define HAVE_MEMCPY          1
# define HAVE_MEMMOVE         1
# define HAVE_STRERROR        1
# define HAVE_VSPRINTF        1
# define HAVE_GETPID          1
/*# define TIME_WITH_SYS_TIME   1*/
# define HAVE_SYS_SOCKET_H    1
# define HAVE_NETINET_IN_H    1
# define HAVE_NETDB_H         1
# define HAVE_ARPA_INET_H     1
# if defined(DYNAMIC)
#  define DYNAMIC_SKYOS
# endif
#endif

#if defined(VMS)
# include "vms.h"
#endif

/* Configurable values */


/* The macro MAXLEVELS is the maximum number of levels that the
 *   interpreter shall handle. One level is used for functioncalls and
 *   the commands CALL, IF, DO and SELECT
 */
#define MAXLEVELS        1024

/* The macro HASHTABLENGTH is the number of sloths in the hash table
 *   containing the values of the rexx variables, must be a power of 2.
 */
#define HASHTABLENGTH     256

/* The macro MAX_INDEX_LENGTH defines the maximum length that the name
 *   of an compund variable might expand to.
 */
#define MAX_INDEX_LENGTH  256

/*
 * The macro DEFAULT_FLUSH_STACK can be defined to either 1 or 0,
 * depending on whether you want the stack to be flushed during a
 * command reading input from or writing output to the stack. If
 * defined, a line written will be physically in the stack at once,
 * while if not defined, all output lines will be temporarily stacked
 * until the command has terminated, then they are all simultaneously
 * flushed to the stack. The default default value is 0, it can be
 * changed through OPTIONS.
 */
#ifndef DEFAULT_FLUSHSTACK
# define DEFAULT_FLUSHSTACK 0
#endif

/*
 * The macro DEFAULT_LINEOUTTRUNC can be set to 1 or 0, whether you want
 * the default behavior of lineout() to truncate the file immediately
 * after the end of each new file written out. When set to 1, the file
 * will be truncated. Also note, that if HAVE_FTRUNCATE isn't set later
 * in this script, the DEFAULT_LINEOUTTRUNC will be forced to 0, just
 * for consistency (then, setting it to 1 will have no practical effect.
 */
#ifndef DEFAULT_LINEOUTTRUNC
# define DEFAULT_LINEOUTTRUNC 1
#endif

#define DEFAULT_MAKEBUF_BIF 1
#define DEFAULT_DROPBUF_BIF 1
#define DEFAULT_BUFTYPE_BIF 1
#define DEFAULT_DESBUF_BIF 1

#define DEFAULT_CACHEEXT 0
#define DEFAULT_PRUNE_TRACE 1

/*
 * Indicates that Regina treats external commands as functions by default
 */
#define DEFAULT_EXT_COMMANDS_AS_FUNCS  1
/*
 * Indicates that Regina does not send output that normally goes to stderr, to stdout
 */
#define DEFAULT_STDOUT_FOR_STDERR      0
/*
 * Indicates that Regina allows external queues (and internal queues) by default
 */
#define DEFAULT_INTERNAL_QUEUES        0
/*
 * Indicates that Regina does not wrap trace output in HTML code by default
 */
#define DEFAULT_TRACE_HTML             0
/*
 * Indicates that Regina returns 1 or 0 for when calling LINES BIF without optional 2nd argument by default
 */
#define DEFAULT_FAST_LINES_BIF_DEFAULT 1
/*
 * Indicates that Regina does not observe strict ANSI functionality by default
 */
#define DEFAULT_STRICT_ANSI            0
/*
 * Indicates that Regina-specific BUFs are available by default
 */
#define DEFAULT_REGINA_BIFS            1
/*
 * Indicates that Regina does not do strict white space comparison by default
 */
#define DEFAULT_STRICT_WHITE_SPACE_COMPARISONS 0
/*
 * Indicates if the ARexx BIFs (OPEN, CLOSE, EOF) use AREXX semantics or not
 * On Amiga and AROS, they are on by default.
 */
#if defined(_AMIGA) || defined(__AROS__)
# define DEFAULT_AREXX_SEMANTICS        1
#else
# define DEFAULT_AREXX_SEMANTICS        0
#endif
/*
 * Indicates that AREXX BIFs are available by default on Amiga and AROS, but
 * OFF on other platforms
 */
#if defined(_AMIGA) || defined(__AROS__)
# define DEFAULT_AREXX_BIFS             1
#else
# define DEFAULT_AREXX_BIFS             0
#endif
/*
 * Indicates if the user want the "broken" semantics of ADDRESS COMMAND
 */
#define DEFAULT_BROKEN_ADDRESS_COMMAND 0
/*
 * Indicates if the user wants outer parentheses when using CALL subroutine.
 */
#define DEFAULT_CALLS_AS_FUNCS          0
/*
 * Indicates if the user wants the broken queue naming conventions.
 */
#define DEFAULT_QUEUES_301              0

/*
 * The FILE_SEPARATOR is one character, and defines the char that separates
 * directories, and filename from directories in a file's path.
 * The PATH_SEPARATOR is one character, and defines the char that separates
 * directories, from one another in a PATH environment variable.
 */

#if defined(MSDOS) || ( defined(__WATCOMC__) && !defined(__QNX__) ) || defined(_MSC_VER) || defined(DOS) || defined(OS2) || defined(__WINS__) || defined(__EPOC32__) || defined(__LCC__)
# define FILE_SEPARATORS     "\\/:"
# define FILE_SEPARATOR      '\\'
# define FILE_SEPARATOR_STR  "\\"
# define PATH_SEPARATOR      ';'
# define PATH_SEPARATOR_STR  ";"
#elif defined(VMS)
# define FILE_SEPARATORS    "]"
# define FILE_SEPARATOR     ']'
# define FILE_SEPARATOR_STR "]"
# define PATH_SEPARATOR     '?'
# define PATH_SEPARATOR_STR "?"
#elif defined(MAC)
# define FILE_SEPARATOR     "]"
# define FILE_SEPARATOR     ']'
# define FILE_SEPARATOR_STR "]"
# define PATH_SEPARATOR     '?'
# define PATH_SEPARATOR_STR "?"
#else
# define FILE_SEPARATORS    "/"
# define FILE_SEPARATOR     '/'
# define FILE_SEPARATOR_STR "/"
# define PATH_SEPARATOR     ':'
# define PATH_SEPARATOR_STR ":"
#endif


#define FIX_PROTOS
#define FIX_ALL_PROTOS


#if defined(HPUX) || defined(__hpux)
# define YY_CHAR_TYPE unsigned char
#endif

#if !defined(HAVE_MEMCPY)
# define memcpy(a,b,c)  bcopy((b),(a),(c))
#endif

#if !defined(HAVE_MEMMOVE)
# define memmove(a,b,c) bcopy((b),(a),(c))
#endif

#if !defined(HAVE_STRERROR)
  const char *get_sys_errlist( int num );
# define strerror(a)    get_sys_errlist(a)
#endif


#if defined(sgi) || defined(__sgi)
# define SGI 1
#endif

#if defined(__osf__)
# define OSF 1
# define YY_CHAR_TYPE unsigned char
#endif

/*
 * Define HAVE_USLEEP if you have the usleep() function available. It will
 *    take the number of micro-seconds to sleep. If this is not defined,
 *    the 'normal' sleep() will be used.
 * Handled by autoconf
 */

/*
 * Define HAVE_RANDOM if your machine has the routines random() and
 *    srandom(). If it is not defined, rand() and srand() are used
 *    instead. There are several reason why you might want to use
 *    random() instead of rand()
 * Handled by autoconf
 */


#define DEFAULT_NUMERIC_FUZZ 0
#define DEFAULT_NUMERIC_SIZE 9
#define DEFAULT_MATH_TYPE 0


/*
 * If you use gcc on a machine that does not have proper ANSI C
 * libraries and the function div() is not defined, then you can
 * define the symbol HAVE_NO_DIV, which will try to kludge it.
 *
 * This is necessary on Suns, and some other machines.
 *
 * Not used anymore MH 10-06-97
 */


#ifndef YY_CHAR_TYPE
# ifdef _AIX
#  define YY_CHAR_TYPE unsigned char
# else
#  define YY_CHAR_TYPE char
# endif
#endif


/* Unfortunately, ftruncate() is not POSIX, so if you don't have it,
 * just ignore it, the effect is that lines written to the middle of a
 * file will not cause the rest of the file (after the linefeed
 * terminating the line written), also to truncate the file at that
 * point. If you wonder whether you have ftruncate(), the bsd portions
 * of you system (if it exist) is a good place to start looking. You
 * may have to link in a specific library too, maybe libbsd.a.
 */
/*#define HAVE_FTRUNCATE*/    /* handled in makefile - TBD in autoconf */



#ifdef VMS
# ifdef HAVE_GETTIMEOFDAY
#  undef HAVE_GETTIMEOFDAY
# endif
# ifdef HAVE_PUTENV
#  undef HAVE_PUTENV
# endif
# ifdef HAVE_FTRUNCATE
#  undef HAVE_FTRUNCATE
# endif
#endif


#if defined(__GNUC__) && defined(VMS)
# ifdef HAVE_GETTIMEOFODAY
#  undef HAVE_GETTIMEOFDAY
# endif
#endif

/*
 * DLOPEN   - dlopen()/dlsym() under SunOS and SysV4
 * HPSHLOAD - shl_load()/shl_findsym() under HP-UX
 * AIXLOAD  - load()/loadbind() under AIX - not supported
 * OS2      - DosLoadModule()/DosQueryProcAddr() under OS/2
 * WIN32    - LoadLibrary()/GetProcAddress() under Win32
 */

/*
 * QNX 4.2x does have a ftrunc() equivalent: ltrunc()
 */
#if defined(__WATCOMC__) && defined(__QNX__)
# define HAVE_FTRUNCATE
#endif
/*
 * If we don't have ftruncate() then we don't want the default setting
 * of LINEOUT() to be to truncate after each new line written out.
 */
#ifndef HAVE_FTRUNCATE
# undef DEFAULT_LINEOUTTRUNC                            /* MH 10-06-96 */
# define DEFAULT_LINEOUTTRUNC 0
#endif

#ifdef _MSC_VER
/* This picky compiler claims about unused formal parameters.
 * This is correct but hides (for human eyes) other errors since they
 * are many and we can't reduce them all.
 * Error 4100 is "unused formal parameter".
 */
# pragma warning(disable:4100)
#endif