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
|
/*
* 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.5 1999/12/24 04:57:35 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
#if defined(DOS) && defined(EMX)
# 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__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 TIME_WITH_SYS_TIME 1
#endif
#if defined(OS2) && defined(EMX)
# 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__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 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 TIME_WITH_SYS_TIME
#endif
#if defined(OS2) && defined(__WATCOMC__)
# define HAVE_MALLOC_H
# define HAVE_SETJMP_H
# define HAVE_UNISTD_H
# define HAVE__FULLPATH
# define HAVE_PUTENV
# define HAVE_MEMCPY
# define HAVE_MEMMOVE
# define HAVE_STRERROR
# define HAVE_VSPRINTF
# if defined(DYNAMIC)
# define DYNAMIC_OS2
# endif
#endif
#if defined(WIN32) && defined(__WATCOMC__)
# define HAVE_MALLOC_H
# define HAVE_SETJMP_H
# define HAVE_UNISTD_H
# define HAVE_FTIME
# define HAVE__FULLPATH
# define HAVE__SPLITPATH2
/* # define HAVE_FTRUNCATE */
# define HAVE_MEMCPY
# define HAVE_MEMMOVE
# define HAVE_SETENV
# define HAVE_STRERROR
# define HAVE_VSPRINTF
# if defined(DYNAMIC)
# define DYNAMIC_WIN32
# endif
#endif
#if defined(WIN32) && defined(_MSC_VER)
# define HAVE_LIMITS_H
# define HAVE_MALLOC_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
# 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 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 TIME_WITH_SYS_TIME 1
# if defined(DYNAMIC)
# define DYNAMIC_WIN32
# endif
#endif
#if defined(DOS) && defined(DJGPP)
# 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_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
# ifndef _MAX_PATH
# define _MAX_PATH PATH_MAX
# endif
#endif
#if defined(_AMIGA)
# 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(__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
*/
#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
/*
* Whether the OPEN() and CLOSE() bifs are available by default
*/
#define DEFAULT_OPEN_BIF 1
#define DEFAULT_CLOSE_BIF 1
#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
#define DEFAULT_FIND_BIF 1
#define DEFAULT_EXT_COMMANDS_AS_FUNCS 1
#define DEFAULT_STDOUT_FOR_STDERR 0
#define DEFAULT_TRACE_HTML 0
#define DEFAULT_FAST_LINES_BIF_DEFAULT 1
#define DEFAULT_ANSI 1
/*
* Define the following if your machine has putenv(), unfortunately,
* Standard C does not include a way to set environmentvariables, just
* to read them. But most machines have the putenv() function.
* If it is not defined, you will not be able to set the environment
* variables throught the VALUE() builtin function.
*/
/* #define HAVE_PUTENV */ /* handled in makefile - TBD in autoconf */
/*
* 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(_MSC_VER) || defined(DOS) || defined(OS2)
# define FILE_SEPARATOR '\\'
# define FILE_SEPARATOR_STR "\\"
# define PATH_SEPARATOR ';'
# define PATH_SEPARATOR_STR ";"
#else
# if defined(VMS)
# define FILE_SEPARATOR ']'
# define FILE_SEPARATOR_STR "]"
# define PATH_SEPARATOR '?'
# define PATH_SEPARATOR_STR "?"
# else
# define FILE_SEPARATOR '/'
# define FILE_SEPARATOR_STR "/"
# define PATH_SEPARATOR ':'
# define PATH_SEPARATOR_STR ":"
# endif
#endif
#define FIX_PROTOS
#define FIX_ALL_PROTOS
extern unsigned char u_to_l[] ;
#define RXTOLOW(a) (u_to_l[(unsigned char)(a)])
#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)
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
#define OLD_REGINA_FEATURES
/*
* 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
*/
/*
* 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
|