diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 22:58:32 +0100 |
| commit | e0737c56c1e384e05064a0c6e1ac46979371041b (patch) | |
| tree | a0123d694a2d36c43dabdf0a3907392fce11d457 /boost/tools/build/src/engine/compile.h | |
| parent | b4aebf2d137b892f53503b13785ecae900062ff7 (diff) | |
New upstream version 2.0.0+repackupstream/2.0.0+repack
Diffstat (limited to 'boost/tools/build/src/engine/compile.h')
| -rw-r--r-- | boost/tools/build/src/engine/compile.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/boost/tools/build/src/engine/compile.h b/boost/tools/build/src/engine/compile.h new file mode 100644 index 00000000..c70f98b9 --- /dev/null +++ b/boost/tools/build/src/engine/compile.h @@ -0,0 +1,59 @@ +/* + * Copyright 1993, 2000 Christopher Seiwald. + * + * This file is part of Jam - see jam.c for Copyright information. + */ + +/* This file is ALSO: + * Copyright 2001-2004 David Abrahams. + * Distributed under the Boost Software License, Version 1.0. + * (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) + */ + +/* + * compile.h - compile parsed jam statements + */ + +#ifndef COMPILE_DWA20011022_H +#define COMPILE_DWA20011022_H + +#include "frames.h" +#include "lists.h" +#include "object.h" +#include "rules.h" + +void compile_builtins(); + +LIST * evaluate_rule( RULE * rule, OBJECT * rulename, FRAME * ); +LIST * call_rule( OBJECT * rulename, FRAME * caller_frame, ... ); + +/* Flags for compile_set(), etc */ + +#define ASSIGN_SET 0x00 /* = assign variable */ +#define ASSIGN_APPEND 0x01 /* += append variable */ +#define ASSIGN_DEFAULT 0x02 /* set only if unset */ + +/* Flags for compile_setexec() */ + +#define EXEC_UPDATED 0x01 /* executes updated */ +#define EXEC_TOGETHER 0x02 /* executes together */ +#define EXEC_IGNORE 0x04 /* executes ignore */ +#define EXEC_QUIETLY 0x08 /* executes quietly */ +#define EXEC_PIECEMEAL 0x10 /* executes piecemeal */ +#define EXEC_EXISTING 0x20 /* executes existing */ + +/* Conditions for compile_if() */ + +#define EXPR_NOT 0 /* ! cond */ +#define EXPR_AND 1 /* cond && cond */ +#define EXPR_OR 2 /* cond || cond */ +#define EXPR_EXISTS 3 /* arg */ +#define EXPR_EQUALS 4 /* arg = arg */ +#define EXPR_NOTEQ 5 /* arg != arg */ +#define EXPR_LESS 6 /* arg < arg */ +#define EXPR_LESSEQ 7 /* arg <= arg */ +#define EXPR_MORE 8 /* arg > arg */ +#define EXPR_MOREEQ 9 /* arg >= arg */ +#define EXPR_IN 10 /* arg in arg */ + +#endif |
