"Fossies" - the Fresh Open Source Software Archive

Member "remind-03.03.09/src/custom.h" (15 Oct 2021, 12071 Bytes) of package /linux/misc/remind-03.03.09.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "custom.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 03.03.06_vs_03.03.07.

    1 /***************************************************************/
    2 /*                                                             */
    3 /*  CUSTOM.H.IN                                                */
    4 /*                                                             */
    5 /*  Contains various configuration parameters for Remind       */
    6 /*  which you can customize.                                   */
    7 /*                                                             */
    8 /*  This file is part of REMIND.                               */
    9 /*  Copyright (C) 1992-2021 by Dianne Skoll                    */
   10 /*                                                             */
   11 /***************************************************************/
   12 
   13 /*---------------------------------------------------------------------*/
   14 /* LAT_DEG, LAT_MIN and LAT_SEC: Latitude of your location             */
   15 /* LON_DEG, LON_MIN and LON_SEC: Longitude of your location            */
   16 /* LOCATION: A string identifying your location.                       */
   17 /* All latitude and longitude numbers should be positive for the       */
   18 /* northern and western hemisphere.  If you live in the southern       */
   19 /* hemisphere, ALL latitude values should be negative.  If you live    */
   20 /* in the eastern hemisphere, ALL longitude values should be negative. */
   21 /*                                                                     */
   22 /* The default values are initially set to Ottawa, Ontario, Canada.    */
   23 /*---------------------------------------------------------------------*/
   24 #define LAT_DEG 45
   25 #define LAT_MIN 24
   26 #define LAT_SEC  0
   27 #define LON_DEG 75
   28 #define LON_MIN 39
   29 #define LON_SEC  0
   30 #define LOCATION "Ottawa"
   31 
   32 /*---------------------------------------------------------------------*/
   33 /* DEFAULT_PAGE:  The default page size to use for Rem2PS.             */
   34 /* The Letter version is appropriate for North America; the A4 version */
   35 /* is appropriate for Europe.                                          */
   36 /*---------------------------------------------------------------------*/
   37 #define DEFAULT_PAGE {"Letter", 612, 792}
   38 /* #define DEFAULT_PAGE {"A4", 595, 842} */
   39 
   40 /*---------------------------------------------------------------------*/
   41 /* DATESEP:  The default date separator.  Standard usage is '-';       */
   42 /* others may prefer '/'.                                              */
   43 /*---------------------------------------------------------------------*/
   44 #define DATESEP '-'
   45 /* #define DATESEP '/' */
   46 
   47 /*---------------------------------------------------------------------*/
   48 /* TIMESEP:  The default time separator.  North American usage is ':'; */
   49 /* others may prefer '.'.                                              */
   50 /*---------------------------------------------------------------------*/
   51 #define TIMESEP ':'
   52 /* #define TIMESEP '.' */
   53 
   54 /*---------------------------------------------------------------------*/
   55 /* DATETIMESEP:  The default datetime separator.  Default is '@';      */
   56 /* others may prefer 'T'.                                              */
   57 /*---------------------------------------------------------------------*/
   58 #define DATETIMESEP '@'
   59 /* #define DATETIMESEP '/' */
   60 
   61 /*---------------------------------------------------------------------*/
   62 /* ISOLATIN1: define it to 1 if you use the                            */
   63 /* ISO 8859-1 character set instead of ASCII.                          */
   64 /*---------------------------------------------------------------------*/
   65 #define ISOLATIN1 1
   66 
   67 /*---------------------------------------------------------------------*/
   68 /* ISOLATIN2: define it to 1 if you use the                            */
   69 /* ISO 8859-2 character set instead of ASCII.                          */
   70 /* NOT ALL LANGUAGE MODULES SUPPORT THIS.  Note that at most one of    */
   71 /* ISOLATIN1, ISOLATIN2, IBMEXTENDED and IBM852 should be 1; if more   */
   72 /* then one are defined as 1, the results are unspecified.             */
   73 /*---------------------------------------------------------------------*/
   74 #define ISOLATIN2 0
   75 
   76 /*---------------------------------------------------------------------*/
   77 /* IBMEXTENDED: define as 1 if your system uses the  IBM extended      */
   78 /* character set.                                                      */
   79 /* NOT ALL LANGUAGE MODULES SUPPORT THIS.  Note that at most one of    */
   80 /* ISOLATIN1, ISOLATIN2, IBMEXTENDED and IBM852 should be 1; if more   */
   81 /* then one are defined as 1, the results are unspecified.             */
   82 /*---------------------------------------------------------------------*/
   83 #define IBMEXTENDED 0
   84 
   85 /*---------------------------------------------------------------------*/
   86 /* IBM852: define as 1 if your system uses the IBM CPI-852 extended    */
   87 /* character set.                                                      */
   88 /* NOT ALL LANGUAGE MODULES SUPPORT THIS.  Note that at most one of    */
   89 /* ISOLATIN1, ISOLATIN2, IBMEXTENDED and IBM852 should be 1; if more   */
   90 /* then one are defined as 1, the results are unspecified.             */
   91 /*---------------------------------------------------------------------*/
   92 #define IBM852 0
   93 
   94 /*---------------------------------------------------------------------*/
   95 /* WANT_U_OPTION: Comment out the next define to permanently disable   */
   96 /* the -u option.                                                      */
   97 /*---------------------------------------------------------------------*/
   98 #define WANT_U_OPTION 1
   99 
  100 /**********************************************************************/
  101 /**********************************************************************/
  102 /**********************************************************************/
  103 /**********************************************************************/
  104 /**********************************************************************/
  105 /* You most likely do NOT have to tweak anything after this!          */
  106 /**********************************************************************/
  107 /**********************************************************************/
  108 /**********************************************************************/
  109 /**********************************************************************/
  110 /**********************************************************************/
  111 /**********************************************************************/
  112 
  113 /*---------------------------------------------------------------------*/
  114 /* WANT_SHELL_ESCAPING:  Define this if you want special shell         */
  115 /* characters to be escaped with a backslash for the -k option.        */
  116 /*---------------------------------------------------------------------*/
  117 #if defined(UNIX)
  118 #define WANT_SHELL_ESCAPING 1
  119 #endif
  120 
  121 /*---------------------------------------------------------------------*/
  122 /* Some implementations have a broken 'putc' and 'putchar'.            */
  123 /*---------------------------------------------------------------------*/
  124 #ifdef __SASC_60
  125 #define BROKEN_PUTC
  126 #endif
  127 
  128 /*---------------------------------------------------------------------*/
  129 /* BASE: The base year for date calculation.  NOTE!  January 1 of the  */
  130 /*       base year MUST be a Monday, else Remind will not work!        */
  131 /*       IMPORTANT NOTE:  The Hebrew date routines depend on BASE      */
  132 /*       being set to 1990.  If you change it, you'll have to add the  */
  133 /*       number of days between 1 Jan <NEWBASE> and 1 Jan 1990 to the  */
  134 /*       manifest constant CORRECTION in hbcal.c.  Also, the year      */
  135 /*       folding mechanism in main.c depends on BASE<2001.             */
  136 /*---------------------------------------------------------------------*/
  137 #define BASE 1990
  138 
  139 /*---------------------------------------------------------------------*/
  140 /* YR_RANGE: The range of years allowed.  With 32-bit signed integers, */
  141 /* the DATETIME type can store 2^31 minutes or about 4074 years.       */
  142 /*---------------------------------------------------------------------*/
  143 #define YR_RANGE 4000
  144 
  145 /*---------------------------------------------------------------------*/
  146 /* VAR_NAME_LEN: The maximum length of variable names.  Don't make it  */
  147 /*               any less than 12.                                     */
  148 /*---------------------------------------------------------------------*/
  149 #define VAR_NAME_LEN 64
  150 
  151 /*---------------------------------------------------------------------*/
  152 /* MAX_PRT_LEN: The maximum number of characters to print when         */
  153 /* displaying a string value for debugging purposes.                   */
  154 /*---------------------------------------------------------------------*/
  155 #define MAX_PRT_LEN 40
  156 
  157 /*---------------------------------------------------------------------*/
  158 /* MAX_STR_LEN: If non-zero, Remind will limit the maximum length      */
  159 /* of string values to avoid eating up all of memory...                */
  160 /*---------------------------------------------------------------------*/
  161 #define MAX_STR_LEN 65535
  162 
  163 /*---------------------------------------------------------------------*/
  164 /* OP_STACK_SIZE: The size of the operator stack for expr. parsing     */
  165 /*---------------------------------------------------------------------*/
  166 #define OP_STACK_SIZE 100
  167 
  168 /*---------------------------------------------------------------------*/
  169 /* VAL_STACK_SIZE: The size of the operand stack for expr. parsing     */
  170 /*---------------------------------------------------------------------*/
  171 #define VAL_STACK_SIZE 500
  172 
  173 /*---------------------------------------------------------------------*/
  174 /* INCLUDE_NEST: How many nested INCLUDES do we handle?                */
  175 /*---------------------------------------------------------------------*/
  176 #define INCLUDE_NEST 9
  177 
  178 /*---------------------------------------------------------------------*/
  179 /* IF_NEST: How many nested IFs do we handle?  Maximum is the number   */
  180 /* of bits in an int, divided by two.  Beware!                         */
  181 /*---------------------------------------------------------------------*/
  182 #define IF_NEST (4*sizeof(unsigned int))
  183 
  184 /*---------------------------------------------------------------------*/
  185 /* How many attempts to resolve a weird date spec?                     */
  186 /*---------------------------------------------------------------------*/
  187 #define TRIG_ATTEMPTS 500
  188 
  189 /*---------------------------------------------------------------------*/
  190 /* How many global omits of the form YYYY MM DD do we handle?          */
  191 /*---------------------------------------------------------------------*/
  192 #define MAX_FULL_OMITS 500
  193 
  194 /*---------------------------------------------------------------------*/
  195 /* How many global omits of the form MM DD do we handle?               */
  196 /*---------------------------------------------------------------------*/
  197 #define MAX_PARTIAL_OMITS 366
  198 
  199 /*---------------------------------------------------------------------*/
  200 /* A newline - some systems need "\n\r"                                */
  201 /*---------------------------------------------------------------------*/
  202 #define NL "\n"
  203 
  204 /*---------------------------------------------------------------------*/
  205 /* Minimum number of linefeeds in each calendar "box"                  */
  206 /*---------------------------------------------------------------------*/
  207 #define CAL_LINES 5
  208 
  209 /*---------------------------------------------------------------------*/
  210 /* Don't change the next definitions                                   */
  211 /*---------------------------------------------------------------------*/
  212 
  213 /*---------------------------------------------------------------------*/
  214 /* TAG_LEN: The maximum length of tags.  Don't change it               */
  215 /*---------------------------------------------------------------------*/
  216 #define TAG_LEN 48
  217 
  218 #define PASSTHRU_LEN 32
  219 
  220 #define PSBEGIN "# rem2ps begin"
  221 #define PSEND   "# rem2ps end"
  222 
  223 #define PSBEGIN2 "# rem2ps2 begin"
  224 #define PSEND2   "# rem2ps2 end"
  225 
  226 #ifdef BROKEN_PUTC
  227 #define Putc SafePutc
  228 #define PutChar SafePutChar
  229 #else
  230 #define Putc putc
  231 #define PutChar putchar
  232 #endif
  233 
  234 #if defined(HAVE_MBSTOWCS) && defined(HAVE_WCTYPE_H)
  235 #define REM_USE_WCHAR 1
  236 #else
  237 #undef REM_USE_WCHAR
  238 #endif