home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume3 / texchk / part1 / cmds.h next >
Encoding:
C/C++ Source or Header  |  1986-11-30  |  803 b   |  39 lines

  1. typedef struct {
  2.  
  3.    int cmdlength;
  4.    char *cmd;
  5.    char is_math_mode_only;
  6.    unsigned flags;
  7.  
  8.  } Latex_Command, *Ptr_Latex_Command;
  9.  
  10.  
  11. extern Latex_Command Command_Table[]; 
  12.  
  13. extern char *Math_Environments[];
  14.  
  15. #define COMMAND_TABLE_SIZE (sizeof(Command_Table)/sizeof(Latex_Command))
  16.  
  17. #define IS_MATH_MODE(i) (Command_Table[(i)].is_math_mode_only)
  18.  
  19. #define NOT_FOUND -1 
  20.  
  21. extern int command_lookup ();
  22.  
  23.   /* ARGUMENTS:
  24.      char *command;
  25.   */
  26.  
  27.   /* 'command' is the name of a presumed latex command, including the */
  28.   /* initial backslash.   Returns NOT_FOUND if command is not in the command */
  29.   /* table, otherwise the index into the command table of the entry for */
  30.   /* the input command. */
  31.  
  32. extern int is_math_environment();
  33.  
  34.   /* ARGUMENTS:
  35.      char *keyword;
  36.   */
  37.  
  38.   /* Returns 1 or 0 */
  39.