home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Programming / powerd / modules.lha / modules / dos / var.m < prev   
Encoding:
Text File  |  2000-06-04  |  1.4 KB  |  42 lines

  1. MODULE    'exec/nodes'
  2.  
  3. /* the structure in the pr_LocalVars list */
  4. /* Do NOT allocate yourself, use SetVar()!!! This structure may grow in */
  5. /* future releases!  The list should be left in alphabetical order, and */
  6. /* may have multiple entries with the same name but different types.    */
  7.  
  8. OBJECT LocalVar
  9.     Node:LN,
  10.     Flags:UWORD,
  11.     Value:PTR TO CHAR,
  12.     Len:ULONG
  13.  
  14. /*
  15.  * The lv_Flags bits are available to the application.    The unused
  16.  * lv_Node.ln_Pri bits are reserved for system use.
  17.  */
  18.  
  19. /* bit definitions for lv_Node.ln_Type: */
  20. #define LV_VAR            0    /* an variable */
  21. #define LV_ALIAS        1    /* an alias */
  22. /* to be or'ed into type: */
  23. #define LVB_IGNORE        7    /* ignore this entry on GetVar, etc */
  24. #define LVF_IGNORE        $80
  25.  
  26. /* definitions of flags passed to GetVar()/SetVar()/DeleteVar() */
  27. /* bit defs to be OR'ed with the type: */
  28. /* item will be treated as a single line of text unless BINARY_VAR is used */
  29. #define GVB_GLOBAL_ONLY        8
  30. #define GVF_GLOBAL_ONLY        $100
  31. #define GVB_LOCAL_ONLY        9
  32. #define GVF_LOCAL_ONLY        $200
  33. #define GVB_BINARY_VAR        10        /* treat variable as binary */
  34. #define GVF_BINARY_VAR        $400
  35. #define GVB_DONT_NULL_TERM    11    /* only with GVF_BINARY_VAR */
  36. #define GVF_DONT_NULL_TERM    $800
  37.  
  38. /* this is only supported in >= V39 dos.  V37 dos ignores this. */
  39. /* this causes SetVar to affect ENVARC: as well as ENV:.    */
  40. #define GVB_SAVE_VAR        12    /* only with GVF_GLOBAL_VAR */
  41. #define GVF_SAVE_VAR        $1000
  42.