home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / cug / softt-3.lbr / LIBDEF.QQQ / LIBDEF.
Text File  |  1984-07-05  |  2KB  |  63 lines

  1. #-h-  libdef         1912  local  09/22/80  15:38:29
  2.  # Symbol definitions for the portable primitives
  3.  
  4.  
  5.  # You might need to adjust these for your system:
  6.  
  7.    define (STDINUNIT,5)    # Unit number for standard input
  8.    define (STDOUTUNIT,6)   # Unit number for standard output
  9.    define (ERROUTUNIT,6)   # Unit number for error output
  10.    define (UNITA,1)        # First available unit (other than
  11.                            # standard ones)
  12.    define (UNITB,2)        # Next available unit
  13.    define (UNITC,3)        # Third available unit
  14.  
  15.  
  16.  # These definitions shouldn't have to be changed:
  17.  
  18.    define (DISK,1)         # Flag for disk files (UNITA, UNITB, UNITC)
  19.    define (TERMINAL,0)     # Flag for terminal files (standard input,
  20.                            # output, error output)
  21.    define (MAXARGS,32)     # Max nbr command line arguments allowed
  22.    define (ARGBUFSIZE,MAXLINE) # Size of buffer to hold command line args
  23.  
  24.  
  25.  
  26. # Defines for support library routines
  27.  
  28. # Defines for memory management routines:
  29. define(DS_MEMEND,1)     # pointer to end of memory
  30. define(DS_AVAIL,2)      # start of available space list
  31. define(DS_CLOSE,8)      # threshhold for close-fitting blocks
  32. define(DS_LINK,1)       # link field of storage block
  33. define(DS_SIZE,0)       # size field of storage block
  34. define(DS_OHEAD,2)      # total words of overhead per block
  35.  
  36. # Defines for symbol table routines:
  37. define(ST_LINK,0)       # offset of link field in symbol table node
  38. define(ST_DATA,1)       # offset of data field in symbol table node
  39. define(ST_HTABSIZE,43)  # should be a prime number
  40.  
  41. # Definitions used only for pattern matching
  42. define(AND,AMPER)
  43. define(ANY,QMARK)
  44. define(BOL,PERCENT)
  45. define(CCL,LBRACK)
  46. define(CCLEND,RBRACK)
  47. define(CHAR,LETA)
  48. define(CLOSIZE,4)
  49. define(CLOSURE,STAR)
  50. define(COUNT,1)
  51. define(DASH,MINUS)
  52. define(DITTO,-3)
  53. define(EOL,DOLLAR)
  54. define(NCCL,LETN)
  55. define(NOT,TILDE)
  56. define(PREVCL,2)
  57. define(START,3)
  58. define(START_TAG,LBRACE)
  59. define(STOP_TAG,RBRACE)
  60. #-t-  libdef         1912  local  09/22/80  15:38:29
  61. END,1)     # pointer to end of memory
  62. define(DS_AVAIL,2)      # start of available space list
  63. d