home *** CD-ROM | disk | FTP | other *** search
- /***************************************************************/
- /* */
- /* CONFIG.H */
- /* */
- /* Contains various configuration parameters for Remind. */
- /* You may have to edit this file to tweak parameters or take */
- /* care of certain system dependencies. */
- /* */
- /* This file is part of REMIND. */
- /* Copyright (C) 1992, 1993 by David F. Skoll. */
- /* */
- /***************************************************************/
-
- /*---------------------------------------------------------------------*/
- /* LAT_DEG, LAT_MIN and LAT_SEC: Latitude of your location */
- /* LON_DEG, LON_MIN and LON_SEC: Longitude of your location */
- /* LOCATION: A string identifying your location. */
- /* For latitude, north is positive, south is negative. */
- /* For longitude, west is positive, east is negative. */
- /* NOTE: For negative numbers, all three of DEG, MIN, SEC should be */
- /* negative. To indicate -20deg22'33" use */
- /* DEG=-20, MIN=-22 and SEC=-33. */
- /* The default values are initially set to Ottawa, Ontario, Canada. */
- /*---------------------------------------------------------------------*/
- #define LAT_DEG 45
- #define LAT_MIN 24
- #define LAT_SEC 0
- #define LON_DEG 75
- #define LON_MIN 39
- #define LON_SEC 0
- #define LOCATION "Ottawa"
-
- /*---------------------------------------------------------------------*/
- /* HAVE_MKTIME: Define this if your C library includes the mktime() */
- /* function. Otherwise, will attempt to use the Unix */
- /* style time manipulations. */
- /*---------------------------------------------------------------------*/
- #define HAVE_MKTIME 1
-
- /*---------------------------------------------------------------------*/
- /* NEED_TIMEGM: If your C library does not have mktime() and it ALSO */
- /* does not have timelocal() or timegm(), uncomment the */
- /* next line. If HAVE_MKTIME is defined, NEED_TIMEGM is */
- /* ignored. Very few systems should require NEED_TIMEGM. */
- /*---------------------------------------------------------------------*/
- /* #define NEED_TIMEGM 1 */
-
- /*---------------------------------------------------------------------*/
- /* DEFAULT_PAGE: The default page size to use for Rem2PS. */
- /* The Letter version is appropriate for North America; the A4 version */
- /* is appropriate for Europe. */
- /*---------------------------------------------------------------------*/
- #define DEFAULT_PAGE {"Letter", 612, 792}
- /* #define DEFAULT_PAGE {"A4", 595, 842} */
-
- /*---------------------------------------------------------------------*/
- /* DATESEP: The default date separator. North American usage is '/'; */
- /* others may prefer '-'. */
- /*---------------------------------------------------------------------*/
- #define DATESEP '/'
- /* #define DATESEP '-' */
-
- /*---------------------------------------------------------------------*/
- /* TIMESEP: The default time separator. North American usage is ':'; */
- /* others may prefer '.'. */
- /*---------------------------------------------------------------------*/
- #define TIMESEP ':'
- /* #define TIMESEP '.' */
-
- /*---------------------------------------------------------------------*/
- /* ISOLATIN1: uncomment the following line if your system uses the */
- /* ISO 8859-1 character set instead of ASCII. */
- /*---------------------------------------------------------------------*/
- /* #define ISOLATIN1 1 */
-
- /*---------------------------------------------------------------------*/
- /* IBMEXTENDED: uncomment the following line if you want to use the */
- /* IBM extended character set. NOT ALL LANGUAGE MODULES SUPPORT THIS. */
- /* Note that at most one of ISOLATIN1 or IBMEXTENDED should be */
- /* defined; if both are defined, the results are unspecified. */
- /*---------------------------------------------------------------------*/
- /* #define IBMEXTENDED 1 */
-
- /*---------------------------------------------------------------------*/
- /* WANT_U_OPTION: Comment out the next define to permanently disable */
- /* the -u option. If you do this, however, remind-all.[c]sh will not */
- /* work. */
- /*---------------------------------------------------------------------*/
- #define WANT_U_OPTION 1
-
- /*---------------------------------------------------------------------*/
- /* STRSTR: If your system does not have the "strstr" function, */
- /* uncomment the following line. */
- /*---------------------------------------------------------------------*/
- /* #define NO_STRSTR 1 */
-
- /*---------------------------------------------------------------------*/
- /* STDLIB: If you don't have the <stdlib.h> header file, comment the */
- /* following line. */
- /*---------------------------------------------------------------------*/
- #define HAVE_STDLIB_H 1
-
- /*---------------------------------------------------------------------*/
- /* MALLOC: If you do not have the <malloc.h> header file, */
- /* comment out the next 3 lines. */
- /*---------------------------------------------------------------------*/
- #ifdef UNIX
- #define HAVE_MALLOC_H 1
- #endif
-
- /*---------------------------------------------------------------------*/
- /* BASE: The base year for date calculation. NOTE! January 1 of the */
- /* base year MUST be a Monday, else Remind will not work! */
- /* IMPORTANT NOTE: The Hebrew date routines depend on BASE */
- /* being set to 1990. If you change it, you'll have to add the */
- /* number of days between 1 Jan <NEWBASE> and 1 Jan 1990 to the */
- /* manifest constant CORRECTION in hbcal.c. Also, the year */
- /* folding mechanism in main.c depends on BASE<2001. */
- /*---------------------------------------------------------------------*/
- #define BASE 1990
-
- /*---------------------------------------------------------------------*/
- /* YR_RANGE: The range of years allowed. Computers with 16-bit */
- /* integers can handle about 89 years worth of reminders; if */
- /* you use 32-bit integers, you can handle over 5 867 000 */
- /* years. Note that YR_RANGE is set to 88 rather than 89 */
- /* because we can range up to the last day of the 88th year. */
- /*---------------------------------------------------------------------*/
- #define YR_RANGE 88
-
- /*---------------------------------------------------------------------*/
- /* VAR_NAME_LEN: The maximum length of variable names. Don't make it */
- /* any less than 12. */
- /*---------------------------------------------------------------------*/
- #define VAR_NAME_LEN 12
-
- /*---------------------------------------------------------------------*/
- /* MAX_PRT_LEN: The maximum number of characters to print when */
- /* displaying a string value for debugging purposes. */
- /*---------------------------------------------------------------------*/
- #define MAX_PRT_LEN 40
-
- /*---------------------------------------------------------------------*/
- /* LINELEN: The maximum length of an input line */
- /*---------------------------------------------------------------------*/
- #define LINELEN 512
-
- /*---------------------------------------------------------------------*/
- /* OP_STACK_SIZE: The size of the operator stack for expr. parsing */
- /*---------------------------------------------------------------------*/
- #define OP_STACK_SIZE 30
-
- /*---------------------------------------------------------------------*/
- /* VAL_STACK_SIZE: The size of the operand stack for expr. parsing */
- /*---------------------------------------------------------------------*/
- #define VAL_STACK_SIZE 30
-
- /*---------------------------------------------------------------------*/
- /* INCLUDE_NEST: How many nested INCLUDES do we handle? */
- /*---------------------------------------------------------------------*/
- #define INCLUDE_NEST 8
-
- /*---------------------------------------------------------------------*/
- /* IF_NEST: How many nested IFs do we handle? Maximum is the number */
- /* of bits in an int, divided by two. Beware! */
- /*---------------------------------------------------------------------*/
- #define IF_NEST (4*sizeof(unsigned int))
-
- /*---------------------------------------------------------------------*/
- /* Do we handle queued reminders? */
- /*---------------------------------------------------------------------*/
- #if defined(UNIX) || defined(__OS2__)
- #define HAVE_QUEUED 1
- #endif
-
- /*---------------------------------------------------------------------*/
- /* Does our C compiler have prototypes? Override this test if you */
- /* are using a non-ANSI compiler that nevertheless has prototypes. */
- /*---------------------------------------------------------------------*/
- #if defined(__STDC__) || defined(__TURBOC__) || defined(__BORLANDC__)
- #define HAVE_PROTOS 1
- #endif
-
- /*---------------------------------------------------------------------*/
- /* Do we use the <stdarg.h> scheme for functions with variable number */
- /* of parameters? If not, the <varargs.h> scheme is assumed. */
- /*---------------------------------------------------------------------*/
- #if defined(__STDC__) || defined(__TURBOC__) || defined(__BORLANDC__)
- #define HAVE_STDARG 1
- #endif
-
- /*---------------------------------------------------------------------*/
- /* Do we have the <unistd.h> header? If not, use sys/files.h */
- /*---------------------------------------------------------------------*/
- #ifdef UNIX
- #define HAVE_UNISTD 1
- #endif
-
- /*---------------------------------------------------------------------*/
- /* How many attempts to resolve a weird date spec? */
- /*---------------------------------------------------------------------*/
- #define TRIG_ATTEMPTS 25
-
- /*---------------------------------------------------------------------*/
- /* How many global omits of the form YYYY MM DD do we handle? */
- /*---------------------------------------------------------------------*/
- #define MAX_FULL_OMITS 75
-
- /*---------------------------------------------------------------------*/
- /* How many global omits of the form MM DD do we handle? */
- /*---------------------------------------------------------------------*/
- #define MAX_PARTIAL_OMITS 75
-
- /*---------------------------------------------------------------------*/
- /* The size of statically-allocated buffers for tokens. */
- /*---------------------------------------------------------------------*/
- #define TOKSIZE 128
-
- /*---------------------------------------------------------------------*/
- /* The size of the buffer for the shell() function. */
- /*---------------------------------------------------------------------*/
- #define SHELLSIZE 512
-
- /*---------------------------------------------------------------------*/
- /* A newline - some systems need "\n\r" */
- /*---------------------------------------------------------------------*/
- #define NL "\n"
-
- /*---------------------------------------------------------------------*/
- /* Minimum number of linefeeds in each calendar "box" */
- /*---------------------------------------------------------------------*/
- #define CAL_LINES 5
-
- /*---------------------------------------------------------------------*/
- /* Don't change the next definitions */
- /*---------------------------------------------------------------------*/
- #define PUBLIC
- #define PRIVATE static
-
- #ifdef UNIX
- #define _POSIX_SOURCE
- #endif
-
- #define PSBEGIN "# rem2ps begin"
- #define PSEND "# rem2ps end"
-