home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / CMDSRC.ZIP / COMMON.INC < prev    next >
Text File  |  1990-06-24  |  1KB  |  41 lines

  1. ; COMMON.INC
  2. ; (c) 1989, 1990 Ashok P. Nadkarni
  3. ;
  4. ; Common definitions for CMDEDIT
  5.  
  6.     IFNDEF    TSR
  7. TSR        equ    1        ;1 if we should TSR. If 0,
  8. ;                     used for debugging without TSRing
  9.     ENDIF
  10.  
  11. STACK_SIZE     equ    768        ;Stack size after TSR'ing
  12.  
  13. LINEBUF_SIZE    equ    256        ;Max size of line storage
  14. ;                     buffer. Do NOT change this
  15. ;                     since applications can specify
  16. ;                     buffers upto this size.
  17.  
  18. ; Min size for various string stack buffers
  19. DOSSIZE_MIN    equ    4        ;DOS history, 2 for sentinel +
  20. ;                     2 for top of history sentinel
  21. MACROSIZE_MIN    equ    5        ;Macro buffer, 2 for sentinel +
  22. ;                     3 for separator
  23. SYMSIZE_MIN    equ    5        ;Symbol buffer, same as MACROSIZE_MIN
  24. DIRSIZE_MIN    equ    2        ;Directory stack, 2 for sentinel
  25.  
  26. TOGGLE_CURSOR    equ    1        ;toggle cursor between 
  27. ;                     overwrite and insert modes
  28.  
  29. ; Error codes for routine abort_processing. These codes must be in the
  30. ; same order as the error messages in table abort_msg_table in cmdedit.asm
  31. E_TRUNCATE    equ    0        ;Line too long
  32. E_SIGNAL    equ    1        ;User signal received
  33. E_DIRSTK_EMPTY    equ    2        ;Empty directory stack
  34. E_DIRSTK    equ    3        ;Other dir stack error
  35. E_DIRSTK_DOS    equ    4        ;Directory stack only for DOS
  36. E_NESTED_MACRO    equ    5        ;Nested macro def
  37. E_NESTED_DELM    equ    6        ;delm inside a macro
  38. E_CTRL_BREAK    equ    7        ;Ctrl-Break received
  39.  
  40. VAR_MARKER    equ    '%'
  41.