tldm-universe/Ardent/UV/gcidir/include/param.h

114 lines
3.9 KiB
C
Raw Permalink Normal View History

2024-09-09 21:51:08 +00:00
#ifndef h_param
#define h_param
/******************************************************************************
*
* UniVerse global & tunable paramaters
*
* Module %M% Version %I% Date %H%
*
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
* This is unpublished proprietary source code of Ardent Software Inc.
* The copyright notice above does not evidence any actual or intented
* publication of such source code.
*
*******************************************************************************
*
* Maintenence log - insert most recent change descriptions at top
*
* Date.... GTAR# WHO Description.........................................
* 10/14/98 23801 SAP Change copyrights.
* 28/10/94 15736 EAP Added SHMNLS key for NLS Shared Memory Segment
* 10/21/94 15166 GMM Added an undef around PATH_MAX due to redefinitions
* 09/13/94 14644 LPC Increase max num of cmd line args from 512 to 2048
* 07/16/93 12406 GMCCLEAN Put in change to allow multi uniVerses
* 08/18/92 7885 JWT Increase gosub stack depth to 256 (ssptrmax)
* 08/14/92 6573 JWT Increase MAX_INPUT_SZ to 4K
* 02/27/92 9244 MAA Changed MAX_INPUT to MAX_INPUT_SZ.
* 03/31/90 6929 JWT add checksum opcode
* 11/14/89 6183 JWT Longer variable name support
*
*****************************************************************************/
/******************************************************************************
MAX_ARG The maximum number of arguments the UniVerse command language
can parse on a single command line.
MAX_LONGNAME Maximum length of a type 1 item name before a call to
"eftoif". This number is a KLUDGE to guessitimate the
maximum lentgth allowed by UNIX. It is approximately
1/2 of the limit allowed by UNIX.
MAX_PATH Maximum length of a UNIX pathname.
MAX_INPUT_SZ Maximum number of characters returned by the input() function.
SIZEOF_SCRATCH The size that newly created scratch buffers Are to be created.
Since the input() function makes frequent requests for scratch
buffers of size MAX_INPUT_SZ, SCRATCHSIZ should be greater then
or equal to MAX_INPUT_SZ for maximum efficiency.
*******************************************************************************/
#define MAX_ARG 2048 /* Number of CL arguments */
#define MAX_INPUT_SZ 4096 /* Length returned by input() */
#define MAX_LONGNAME 41 /* Length of a type 1 file name */
#ifndef MAX_PATH
#define MAX_PATH (MAX_2NAME > 128 ? MAX_2NAME : 128)
/* Length of a UNIX pathname */
#endif
#define MAX_SCRATCH (DBshmseg->tune_vals.maxscr) /* Number of rotating scratch buffers */
#define MIN_SCRATCH (DBshmseg->tune_vals.minscr) /* Number of rotating scratch buffers */
#define NUM_SELECT 11 /* Numbered SELECT lists */
#define SIZEOF_SCRATCH (DBshmseg->tune_vals.sizescr) /* Size new scratch buffers are created */
#ifdef NBASIC
# define SIZEOF_SYMBOL 64 /* UniVerse/BASIC variable names*/
#else
# define SIZEOF_SYMBOL 32 /* UniVerse/BASIC variable names*/
#endif
/* Compiler version flags */
#define BASmain 0xACE0
#define BASsubr 0xACE1
#define BASityp 0xACE2
#define SWPmain 0xE0AC
#define SWPsubr 0xE1AC
#define SWPityp 0xE2AC
#define COMver UVREV
#define COMok 0x051a
#define COMiok 0x051a
#define COMobj 5
#if defined(UV_MULTI_INSTALL)
extern int p_home_inode();
/* Shared Memory IDs */
#define SHMCAT (0xACED0000 | p_home_inode())
#define SHMNLS (0xACEE0000 | p_home_inode())
#else
/* Shared Memory IDs */
#define SHMCAT (0xACED0000 | UVREV)
#define SHMNLS (0xACEE0000 | UVREV)
#endif
#define PAloop 16
#define MAX_TAB 128
#define ssptrmax 256 /* depth of runtime stack */
#if RND_int
#define rndmax 0x7fffffff /* normalizing constant used for RND */
#else
#define rndmax 0x7fff /* normalizing constant used for RND */
#endif
/* Name changes go here... */
#define NSELECT NUM_SELECT
#define MAXARG MAX_ARG
#define SYMsiz SIZEOF_SYMBOL
#endif /* end of param.h */