Pwd built-in added
[k8jam.git] / variable.h
blob0230b4c15b5380fbc8204cecc64fc1ab626f6859
1 /*
2 * Copyright 1993, 2000 Christopher Seiwald.
4 * This file is part of Jam - see jam.c for Copyright information.
5 */
7 /*
8 * variable.h - handle jam multi-element variables
10 * 11/04/02 (seiwald) - const-ing for string literals
13 void var_defines( const char **e );
14 int var_string( const char *in, char *out, int outsize, LOL *lol );
15 LIST * var_get( const char *symbol );
16 void var_set( const char *symbol, LIST *value, int flag );
17 LIST * var_swap( const char *symbol, LIST *value );
18 void var_done();
21 * Defines for var_set().
24 # define VAR_SET 0 /* override previous value */
25 # define VAR_APPEND 1 /* append to previous value */
26 # define VAR_DEFAULT 2 /* set only if no previous value */