home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / xdme_1.84_src.lha / XDME / include / null.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-22  |  2.5 KB  |  78 lines

  1.  
  2. /*
  3. **  NULL.H
  4. **
  5. **  Definition file for changes
  6. **  which have been introduced
  7. **  by Bernd Noll
  8. */
  9.  
  10. #define SET_ABORTION(x) globalflags._Abortcommand = (x)
  11. #define IS_ABORTED()    globalflags._Abortcommand
  12.  
  13. #define abort(x)    do{ SET_ABORTION( 1 ); return(x); }while(0)
  14. #define abort2()    do{ SET_ABORTION( 1 ); return;    }while(0)
  15.  
  16. #define LINE_LENGTH MAXLINELEN
  17. #define BUFFERS     1                    /* # of linebuffers */
  18. #define NARGS        8                    /* # of arguments passed to a command (including name) */
  19.  
  20. #define simplehash(s0,s1) (((s0 & 15) << 4) + (s1 & 15))
  21.  
  22. #define VAR_NEX  0 /* not existing variable */
  23. #define VAR_SV     1 /* dme special vars scanf/filename/... */
  24. #define VAR_MF     2 /* dme macro   flag */
  25. #define VAR_TF     3 /* dme text      flag */
  26. #define VAR_GF     4 /* dme global  flag */
  27. #define VAR_TV     5 /* dme text      variable */
  28. #define VAR_MV     6 /* dme macro   variable */
  29. #define VAR_GV     7 /* dme global  variable */
  30. #define VAR_ENV  8 /* CBM env: variable */
  31. #define VAR_CLP  9 /* rexx cliplist - entry */
  32. #define VAR_RX    10 /* rexx variable via RVI */
  33. #define VAR_MAP 11 /* dme package key-mapping */
  34. #define VAR_MEN 12 /* dme package menu */
  35. #define VAR_TEST 13 /* Does a certain variable exist? (readonly) */
  36. #define VAR_LN    14 /* List access ... */
  37.  
  38. //#define VAR_FPK   /* explicite access to another ("foreign") package */
  39. //#define VAR_SF    /* dme special flags */
  40. //#define VAR_SI    /* dme special integer variable */
  41. //#define VAR_PF    /* dme package flag */
  42. //#define VAR_PV    /* dme package variable */
  43. //#define VAR_ARG   /* dme macro   parameter */
  44. //#define VAR_SH    /* CBM local shell-var          (FUTURE) */
  45. //#define VAR_RXF   /* rexx result of functioncall */
  46. //#define VAR_MNX   /* Arp shell-var              (FUTURE) */
  47.  
  48. #define VAR_DME VAR_GV /* alias */
  49.  
  50.  
  51. #define RET_SUCC    1
  52. #define RET_FAIL    0
  53.  
  54. #define  BP  D(bug("XDME: Line %4ld in File %s\n", __LINE__, __FILE__));
  55. #define DBP DD(bug("XDME: Line %4ld in File %s\n", __LINE__, __FILE__));
  56.  
  57. #define VarRoot     void*
  58. #define InitVars(x)     *(x) = NULL
  59. //#define GetVarFrom      GetVarFromTree
  60. //#define SetVarInto      SetVarIntoTree
  61. //#define DelAllVarsFrom  DelAllVarsFromTree
  62.  
  63.  
  64.  
  65. #define GETF_NOSCREENUPDATE(ed)     Nsu
  66. #define SETF_NOSCREENUPDATE(ed,f)   (Nsu = (f))
  67. // #define GETF_(ed)
  68. // #define SETF_(ed,f)         ( = (f))
  69.  
  70.  
  71. // BLOCK ...
  72. #define NO_CHANGE -2
  73. #define MOVE_BLOCKMARK(lines,cols) do{ Block block = ActualBlock; if (lines) { block.start_line += lines; block.end_line += lines; } if (cols) { block.start_column += cols; block.end_column += cols; } set_block(&block); }while(0)
  74.  
  75.  
  76. #include "Definitions.h"
  77.  
  78.