home *** CD-ROM | disk | FTP | other *** search
/ Dream 45 / Amiga_Dream_45.iso / Amiga / Magazine / Dossier-LaTeX / lgrind-amiga.lha / lgrind / src / lgrind.h < prev    next >
C/C++ Source or Header  |  1996-08-04  |  1KB  |  71 lines

  1. #ifndef LGRIND_H
  2. #define LGRIND_H
  3.  
  4. #ifndef vms
  5. #  include <sys/types.h>
  6. #  include <sys/stat.h>
  7. #  include <time.h>
  8. #else
  9. #  include <types.h>
  10. #  include <stat.h>
  11. #endif
  12.  
  13. #define TRUE  1
  14. #define FALSE 0
  15.  
  16. #define STANDARD 0
  17. #define ALTERNATE 1
  18.  
  19. #define NOTCODE 0        /* the three states of @incode@ */
  20. #define INITCODE 1
  21. #define OTHERCODE 2
  22.  
  23. #define PNAMELEN 80        /* length of a function/procedure name */
  24. #define PSMAX 20        /* size of procedure name stacking */
  25.  
  26. #define BUFFERSIZE    4096
  27.  
  28. #ifndef vms
  29. #  define OKEXIT    0
  30. #  define BADEXIT    1
  31. #  ifndef DEFSFILE
  32. #    define DEFSFILE    "/usr/lib/lgrindefs"
  33. #  endif
  34. #else
  35. #  define OKEXIT    1
  36. #  define BADEXIT    0
  37. #  define DEFSFILE    "TEX$INPUTS:lgrindefs.src"
  38. #endif
  39.  
  40. #include "regexp.h"
  41.  
  42. #ifndef TRUE
  43. #define TRUE    1
  44. #endif
  45.  
  46. #ifndef FALSE
  47. #define FALSE    0
  48. #endif
  49.  
  50. extern unsigned char *l_id;
  51.  
  52. void    Internal_Help(void);
  53. void    readfile(FILE *fp);
  54. void    setlang(void);
  55. void    putScp(unsigned char *os);
  56. void    putKcp(unsigned char *start, unsigned char *end, boolean nix);
  57. void    putVcp(unsigned char *start, unsigned char *end);
  58. int    width(register unsigned char *s, register unsigned char *os);
  59. void    putstr(register unsigned char *cp);
  60. void    outchar(int c);
  61. void    parsechartab(void);
  62. void    parsepreamble(unsigned char *destination);
  63. boolean    isprocNorm(unsigned char *s);
  64. boolean    isprocC(unsigned char *s);
  65. int    getid(unsigned char *s);
  66. int    getredirection(int argc, char *argv[]);
  67. void    setpreambles(void);
  68. void    printpreamble(unsigned char *string);
  69.  
  70. #endif
  71.