/* * Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc. * * This file is part of Jam - see jam.c for Copyright information. */ /* * compile.h - compile parsed jam statements * * 01/22/01 (seiwald) - replace evaluate_if() with compile_eval() * 01/24/01 (seiwald) - 'while' statement * 03/02/02 (seiwald) - rules can be invoked via variable names * 02/28/02 (seiwald) - merge EXEC_xxx flags in with RULE_xxx * 10/22/02 (seiwald) - working return/break/continue statements * 11/04/02 (seiwald) - const-ing for string literals */ void compile_builtins(); LIST *compile_append( PARSE *parse, LOL *args, int *jmp ); LIST *compile_break( PARSE *parse, LOL *args, int *jmp ); LIST *compile_foreach( PARSE *parse, LOL *args, int *jmp ); LIST *compile_if( PARSE *parse, LOL *args, int *jmp ); LIST *compile_eval( PARSE *parse, LOL *args, int *jmp ); LIST *compile_include( PARSE *parse, LOL *args, int *jmp ); LIST *compile_list( PARSE *parse, LOL *args, int *jmp ); LIST *compile_local( PARSE *parse, LOL *args, int *jmp ); LIST *compile_null( PARSE *parse, LOL *args, int *jmp ); LIST *compile_on( PARSE *parse, LOL *args, int *jmp ); LIST *compile_rule( PARSE *parse, LOL *args, int *jmp ); LIST *compile_rules( PARSE *parse, LOL *args, int *jmp ); LIST *compile_set( PARSE *parse, LOL *args, int *jmp ); LIST *compile_setcomp( PARSE *parse, LOL *args, int *jmp ); LIST *compile_setexec( PARSE *parse, LOL *args, int *jmp ); LIST *compile_settings( PARSE *parse, LOL *args, int *jmp ); LIST *compile_switch( PARSE *parse, LOL *args, int *jmp ); LIST *compile_while( PARSE *parse, LOL *args, int *jmp ); LIST *evaluate_rule( const char *rulename, LOL *args, LIST *result ); /* 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 */ /* Flags for compile_return */ # define JMP_NONE 0 /* flow continues */ # define JMP_BREAK 1 /* break out of loop */ # define JMP_CONTINUE 2 /* step to end of loop */ # define JMP_RETURN 3 /* return from rule */
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 4340 | Christoph Schulte Moenting |
Created branch //guest/christoph_schulte_moenting/jam/... from //public/jam/... @ changelist 3174 |
||
//guest/perforce_software/jam/src/compile.h | |||||
#9 | 2559 | rmg |
Fix 'var on target ?= value' so that var is only set if it did not have a target-specific value. Previously, it would just overwrite the var's value. Bug fix documented in RELNOTES. === computer:1666: Change 39566 by seiwald@play-seiwald on 2002/12/27 14:44:01 |
||
#8 | 2493 | rmg |
Rewrite the past: update all jam's source with comments to reflect changes since about 2.3, very early 2001. Whitespace only change. === computer:1666: Change 37660 by seiwald@play-seiwald on 2002/11/06 22:41:35 Note: I regenerated jamgram.c on my linux 7.3 system prior to the submit, since patch was so unhappy trying to lay down the changes from Christopher's change. Presumably this is just due to different yacc/bison/whatever particulars on the system where Christopher made the changes originally. - rmg |
||
#7 | 2491 | rmg |
Some consting in jam to make it more compilable by C++ compilers. No functional change. === computer:1666: Change 37433 by perforce@perforce on 2002/10/30 16:08:51 Recreational const-ing of jam, for compilers that don't allow "string" to be passed as a non-const char *. This included a few places where we were modifying what could possibly have been read-only storage, oddly enough. No functional change. === computer:1666: Change 37602 by seiwald@play-seiwald on 2002/11/04 17:25:40 |
||
#6 | 2490 | rmg |
Jam langauge work: make 'return' actually return from the rule, rather than just setting the return value. Introduce new break/continue statements for managing loops. User visible change to be documented in Jam.html. === computer:1666: Change 37200 by seiwald@play-seiwald on 2002/10/22 15:41:28 Gross rework of Jam.html documentation, including: - the description of parameters for rules - description of -g flag - a new description of targets - more about rules and their return values - better separation of rules and updating actions - putting borders around the tables (Undocumented) change to documentation. === computer:1666: Change 37551 by seiwald@waffle-cyg-seiwald on 2002/11/03 23:17:12 Document jam's new and working break/continue/return statements. === computer:1666: Change 37574 by seiwald@play-seiwald on 2002/11/04 13:13:01 |
||
#5 | 1497 | Perforce staff |
Support for invoking rules via variable expansion, i.e. "$(rule) targets : sources ;". Not yet documented. Documented in Jam.html (rmg change 1536) |
||
#4 | 1492 | Perforce staff |
Replace action modifiers EXEC_* from compile.h with RULE_* flags from rules.h. They've always been the same quantity defined in two places. Note that RULE_NEWSRCS is now RULE_UPDATED, to be consistent with 'actions updated'. No functional change. |
||
#3 | 1319 | rmg |
Jam 2.3 + Perforce's internal changes. This change is a drop of the Perforce internal Jam changes since the 2.3 public release. The individual changes represented herein are preserved in the //guest/richard_geiger/intjam/ branch. The intent of this drop is to provide a base, from which other contributors' Jam branches may be integrated into. It is not intended to become a packaged release in this state. We will be integrating changes from other users prior to creating the next packaged release. Please refer to the src/RELNOTES file for an overview of the changes present in this integration. - Richard Geiger Open Source Engineer at Perforce |
||
#2 | 486 | Perforce staff |
Jam 2.3. See RELNOTES for a list of changes from 2.2.x. Just about every source file was touched when jam got ANSI-fied. |
||
#1 | 2 | laura | Add Jam/MR 2.2 source |