home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / unix / tr2latex_2 / h / setups < prev    next >
Encoding:
Text File  |  1996-06-19  |  2.4 KB  |  106 lines

  1. /*
  2. ** tr2latex - troff to LaTeX converter
  3. ** $Id: setups.h,v 2.2 1992/04/27 15:13:26 Christian_Engel Dist krischan $
  4. ** COPYRIGHT (C) 1987 Kamal Al-Yahya, 1991,1992 Christian Engel
  5. **
  6. ** Module: setups.h
  7. **
  8. ** setup file
  9. */
  10.  
  11. #ifdef __TURBOC__
  12. #  ifndef __COMPACT__
  13. #    error "The COMPACT model is needed"
  14. #  endif
  15. #endif
  16.  
  17. #include    <stdio.h>
  18. #include    <ctype.h>
  19. #include    <errno.h>
  20. #include    <stdlib.h>
  21.  
  22. #include    <time.h>
  23.  
  24.  
  25. #if defined(__TURBOC__) | defined(MSC)
  26. #  include    <io.h>          /* for type declarations */
  27. #endif
  28.  
  29. #ifdef UCB
  30. #  include    <strings.h>
  31. #else
  32. #  include    <string.h>
  33. #endif
  34.  
  35. #ifdef VMS
  36. #  define GOOD 1
  37. #else
  38. #  define GOOD 0
  39. #endif
  40.  
  41. #if defined( __TURBOC__) | defined(ARCON)
  42. /*--- ONE MEGABYTE for EACH BUFFER? Really? - not for a brain-dead cpu
  43.       like the 8086 or 80286. Would my account on the VAX let me have
  44.       this much?
  45.       Maybe, one day when we all have an 80386+, or a SPARC, or a real
  46.       cpu....                                                           ---*/
  47. #define    MAXLEN    (0xfff0)        /* maximum length of document */
  48.                                 /* A segment is 64k bytes! */
  49. #else
  50. /* ... but no problem on virtual operating systems */
  51. #define    MAXLEN    (1024*1024)        /* maximum length of document */
  52. #endif
  53.  
  54. #define    MAXWORD    250                /* maximum word length */
  55. #define    MAXLINE    500                /* maximum line length */
  56. #define    MAXDEF    200                /* maximum number of defines */
  57. #define MAXARGS 128                /* maximal number of arguments */
  58.  
  59. #define EOS        '\0'            /* end of string */
  60.  
  61. #if defined(__TURBOC__) | defined (VAXC)
  62. #  define index strchr
  63. #endif
  64.  
  65. #ifdef MAIN                /* can only declare globals once */
  66. #  define GLOBAL
  67. #else
  68. #  define GLOBAL extern
  69. #endif
  70.  
  71. GLOBAL int math_mode,    /* math mode status */
  72.            de_arg,        /* .de argument */
  73.            IP_stat,        /* IP status */
  74.            QP_stat,        /* QP status */
  75.            TP_stat;        /* TP status */
  76.  
  77. #ifdef DEBUG
  78. GLOBAL int debug_o;
  79. GLOBAL int debug_v;
  80. #endif
  81.  
  82. GLOBAL struct defs {
  83.     char *def_macro;
  84.     char *replace;
  85.     int illegal;
  86. } def[MAXDEF];
  87.  
  88. GLOBAL struct mydefs {
  89.     char *def_macro;
  90.     char *replace;
  91.     int illegal;
  92.     int arg_no;
  93.     int par;        /* if it impiles (or contains) a par break */
  94. } mydef[MAXDEF];
  95.  
  96. GLOBAL struct measure {
  97.     char old_units[MAXWORD];    float old_value;
  98.     char units[MAXWORD];        float value;
  99.     char def_units[MAXWORD];    /* default units */
  100.     int def_value;            /* default value: 0 means take last one */
  101. } linespacing, indent, tmpind, space, vspace;
  102.  
  103. typedef unsigned char bool;
  104.  
  105. /*extern int errno;*/
  106.