home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume8 / textools2 / part01 / setups.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-02-12  |  1.6 KB  |  69 lines

  1. /* setup file */
  2.  
  3. #include        <stdio.h>
  4. #ifdef MSC
  5. #include        <string.h>
  6. #include    <stdlib.h>    /* for type declarations */
  7. #include    <io.h>        /* for type declarations */
  8. #else
  9. #include        <strings.h>
  10. #include        <sys/ioctl.h>
  11. #include        <sgtty.h>
  12. #endif
  13.  
  14. #define MAXLEN    65535        /* maximum number of chars in a document */
  15. #define     MAXWORD    100    /* maximum word length */
  16. #define     MAXLINE    250    /* maximum line length */
  17. #define     MAXENV    50    /* maximum number of environments */
  18.  
  19. extern char *malloc();
  20.  
  21. #ifdef IN_TM        /* can only declare globals once */
  22. #else
  23. extern
  24. #endif
  25. struct environment {
  26.     char *env_name;        /* name of environment */
  27.     int env_beg;        /* counter for \begin{environment} */
  28.     int env_end;        /* counter for \end{environment} */
  29.     int beg_line;        /* line number for \beging{environment} */
  30.     } env[MAXENV];
  31.  
  32. #ifdef ANSI
  33. int    begin_to_end(char*,char*);
  34. int    command(char*,char*);
  35. int    comm_file(FILE*,int*);
  36. int    comment(char*);
  37. int    def(char*,char*);
  38. int    def_file(FILE*,int*);
  39. int    display(char*);
  40. int    dollar(char*,FILE*);
  41. int    formula(char*);
  42. int    get_buf_word(char*,char*);
  43. int    getenv_file(FILE*,int*);
  44. int    get_file_word(FILE*,char*,int*,int*);
  45. int    is_new_env(char*,int);
  46. int    one_dollar(char*);
  47. void    scrbuf(FILE*,FILE*);
  48. void    tmpbuf(FILE*,char*);
  49. int    two_dollars(char*,FILE*);
  50. #else
  51. int    begin_to_end();
  52. int    command();
  53. int    comm_file();
  54. int    comment();
  55. int    def();
  56. int    def_file();
  57. int    display();
  58. int    dollar();
  59. int    formula();
  60. int    get_buf_word();
  61. int    getenv_file();
  62. int    get_file_word();
  63. int    is_new_env();
  64. int    one_dollar();
  65. void    scrbuf();
  66. void    tmpbuf();
  67. int    two_dollars();
  68. #endif
  69.