/* * 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 */ void compile_builtins(); LIST *compile_append( PARSE *parse, LOL *args ); LIST *compile_foreach( PARSE *parse, LOL *args ); LIST *compile_if( PARSE *parse, LOL *args ); LIST *compile_eval( PARSE *parse, LOL *args ); LIST *compile_include( PARSE *parse, LOL *args ); LIST *compile_list( PARSE *parse, LOL *args ); LIST *compile_local( PARSE *parse, LOL *args ); LIST *compile_null( PARSE *parse, LOL *args ); LIST *compile_on( PARSE *parse, LOL *args ); LIST *compile_rule( PARSE *parse, LOL *args ); LIST *compile_rules( PARSE *parse, LOL *args ); LIST *compile_set( PARSE *parse, LOL *args ); LIST *compile_setcomp( PARSE *parse, LOL *args ); LIST *compile_setexec( PARSE *parse, LOL *args ); LIST *compile_settings( PARSE *parse, LOL *args ); LIST *compile_switch( PARSE *parse, LOL *args ); LIST *compile_while( PARSE *parse, LOL *args ); LIST *evaluate_rule( char *rulename, LOL *args, LIST *result ); /* 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 */ /* 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 */
Jam -dr now reports file/line numbers, at no small effort.
New functionality documented in RELNOTES.
p4transfer.py: Transferred from production
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
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
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
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
Support for invoking rules via variable expansion, i.e.
"$(rule) targets : sources ;".
Not yet documented.
Documented in Jam.html (rmg change 1536)
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.
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
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
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|