home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Tex / Tex29 / StTeXsrc.zoo / src / tokenlists.h < prev    next >
Text File  |  1988-03-13  |  1KB  |  48 lines

  1.  
  2. /*
  3.  * @(#)tokenlists.h 2.5 EPA
  4.  *
  5.  * Copyright 1987,1988 Pat J Monardo
  6.  *
  7.  * Redistribution of this file is permitted through
  8.  * the specifications in the file COPYING.
  9.  *
  10.  * 
  11.  */
  12.  
  13. ptr     str_toks();
  14. ptr     the_toks();
  15. int     conv_toks();
  16.  
  17. #define NUMBER_CODE         0
  18. #define ROMAN_NUMERAL_CODE  1
  19. #define STRING_CODE         2
  20. #define MEANING_CODE        3
  21. #define FONT_NAME_CODE      4
  22. #define JOB_NAME_CODE       5
  23.  
  24. #define token_ref_count(T)  token(T)
  25.  
  26. ptr     scan_toks();
  27. int     read_toks();
  28. int     ins_the_toks();
  29. int     print_meaning();
  30.  
  31. int     flush_list();
  32.  
  33. #define add_token_ref(T) incr(token_ref_count(T))
  34.  
  35. #define delete_token_ref(T) \
  36.     {if (token_ref_count(T) == NULL) \
  37.         flush_list(T); \
  38.     else decr(token_ref_count(T));}
  39.  
  40. #define store_new_token(T) \
  41.     {q = new_token(); token_link(p) = q; token(q) = T; p = q;}
  42.  
  43. #define fast_store_new_token(T) \
  44.     {fast_new_token(q); token_link(p) = q; token(q) = T; p = q;}
  45.  
  46. int     show_token_list();
  47. int     token_show();
  48.