home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / os-include / dos / var.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  2KB  |  62 lines

  1. #ifndef DOS_VAR_H
  2. #define DOS_VAR_H
  3. /*
  4. **
  5. **    $VER: var.h 36.11 (2.6.92)
  6. **    Includes Release 40.15
  7. **
  8. **    include file for dos local and environment variables
  9. **
  10. **    (C) Copyright 1989-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. **
  13. */
  14.  
  15.  
  16. #ifndef EXEC_NODES_H
  17. #include "exec/nodes.h"
  18. #endif
  19.  
  20. /* the structure in the pr_LocalVars list */
  21. /* Do NOT allocate yourself, use SetVar()!!! This structure may grow in */
  22. /* future releases!  The list should be left in alphabetical order, and */
  23. /* may have multiple entries with the same name but different types.    */
  24.  
  25. struct LocalVar {
  26.     struct Node lv_Node;
  27.     UWORD    lv_Flags;
  28.     UBYTE    *lv_Value;
  29.     ULONG    lv_Len;
  30. };
  31.  
  32. /*
  33.  * The lv_Flags bits are available to the application.    The unused
  34.  * lv_Node.ln_Pri bits are reserved for system use.
  35.  */
  36.  
  37. /* bit definitions for lv_Node.ln_Type: */
  38. #define LV_VAR            0    /* an variable */
  39. #define LV_ALIAS        1    /* an alias */
  40. /* to be or'ed into type: */
  41. #define LVB_IGNORE        7    /* ignore this entry on GetVar, etc */
  42. #define LVF_IGNORE        0x80
  43.  
  44. /* definitions of flags passed to GetVar()/SetVar()/DeleteVar() */
  45. /* bit defs to be OR'ed with the type: */
  46. /* item will be treated as a single line of text unless BINARY_VAR is used */
  47. #define GVB_GLOBAL_ONLY        8
  48. #define GVF_GLOBAL_ONLY        0x100
  49. #define GVB_LOCAL_ONLY        9
  50. #define GVF_LOCAL_ONLY        0x200
  51. #define GVB_BINARY_VAR        10        /* treat variable as binary */
  52. #define GVF_BINARY_VAR        0x400
  53. #define GVB_DONT_NULL_TERM    11    /* only with GVF_BINARY_VAR */
  54. #define GVF_DONT_NULL_TERM    0x800
  55.  
  56. /* this is only supported in >= V39 dos.  V37 dos ignores this. */
  57. /* this causes SetVar to affect ENVARC: as well as ENV:.    */
  58. #define GVB_SAVE_VAR        12    /* only with GVF_GLOBAL_VAR */
  59. #define GVF_SAVE_VAR        0x1000
  60.  
  61. #endif /* DOS_VAR_H */
  62.