Imported Upstream version 1.57.0
[platform/upstream/boost.git] / tools / build / src / engine / variable.h
1 /*
2  * Copyright 1993, 2000 Christopher Seiwald.
3  *
4  * This file is part of Jam - see jam.c for Copyright information.
5  */
6
7 /*
8  * variable.h - handle jam multi-element variables
9  */
10
11 #ifndef VARIABLE_SW20111119_H
12 #define VARIABLE_SW20111119_H
13
14 #include "lists.h"
15 #include "object.h"
16
17
18 struct module_t;
19
20 void   var_defines( struct module_t *, char * const * e, int preprocess );
21 LIST * var_get( struct module_t *, OBJECT * symbol );
22 void   var_set( struct module_t *, OBJECT * symbol, LIST * value, int flag );
23 LIST * var_swap( struct module_t *, OBJECT * symbol, LIST * value );
24 void   var_done( struct module_t * );
25
26 /*
27  * Defines for var_set().
28  */
29
30 #define VAR_SET      0   /* override previous value */
31 #define VAR_APPEND   1   /* append to previous value */
32 #define VAR_DEFAULT  2   /* set only if no previous value */
33
34 #endif