home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 4
/
FreshFish_May-June1994.bin
/
bbs
/
cbm
/
nduk-v39.lha
/
V39
/
include
/
dos
/
var.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-24
|
2KB
|
62 lines
#ifndef DOS_VAR_H
#define DOS_VAR_H
/*
**
** $VER: var.h 36.11 (02.06.92)
** Includes Release 39.108
**
** include file for dos local and environment variables
**
** (C) Copyright 1989-1992 Commodore-Amiga, Inc.
** All Rights Reserved
**
*/
#ifndef EXEC_NODES_H
#include "exec/nodes.h"
#endif
/* the structure in the pr_LocalVars list */
/* Do NOT allocate yourself, use SetVar()!!! This structure may grow in */
/* future releases! The list should be left in alphabetical order, and */
/* may have multiple entries with the same name but different types. */
struct LocalVar {
struct Node lv_Node;
UWORD lv_Flags;
UBYTE *lv_Value;
ULONG lv_Len;
};
/*
* The lv_Flags bits are available to the application. The unused
* lv_Node.ln_Pri bits are reserved for system use.
*/
/* bit definitions for lv_Node.ln_Type: */
#define LV_VAR 0 /* an variable */
#define LV_ALIAS 1 /* an alias */
/* to be or'ed into type: */
#define LVB_IGNORE 7 /* ignore this entry on GetVar, etc */
#define LVF_IGNORE 0x80
/* definitions of flags passed to GetVar()/SetVar()/DeleteVar() */
/* bit defs to be OR'ed with the type: */
/* item will be treated as a single line of text unless BINARY_VAR is used */
#define GVB_GLOBAL_ONLY 8
#define GVF_GLOBAL_ONLY 0x100
#define GVB_LOCAL_ONLY 9
#define GVF_LOCAL_ONLY 0x200
#define GVB_BINARY_VAR 10 /* treat variable as binary */
#define GVF_BINARY_VAR 0x400
#define GVB_DONT_NULL_TERM 11 /* only with GVF_BINARY_VAR */
#define GVF_DONT_NULL_TERM 0x800
/* this is only supported in >= V39 dos. V37 dos ignores this. */
/* this causes SetVar to affect ENVARC: as well as ENV:. */
#define GVB_SAVE_VAR 12 /* only with GVF_GLOBAL_VAR */
#define GVF_SAVE_VAR 0x1000
#endif /* DOS_VAR_H */