1 |
|
2005-05-13 Paul D. Smith <psmith@gnu.org> |
2 |
|
|
3 |
|
Implement "if... else if... endif" syntax. |
4 |
|
|
5 |
|
* read.c (eval): Push all checks for conditional words ("ifeq", |
6 |
|
"else", etc.) down into the conditional_line() function. |
7 |
|
(conditional_line): Rework to allow "else if..." clause. New |
8 |
|
return value -2 for lines which are not conditionals. The |
9 |
|
ignoring flag can now also be 2, which means "already parsed a |
10 |
|
true branch". If that value is seen no other branch of this |
11 |
|
conditional can be considered true. In the else parsing if there |
12 |
|
is extra text after the else, invoke conditional_line() |
13 |
|
recursively to see if it's another conditional. If not, it's an |
14 |
|
error. If so, raise the conditional value to this level instead |
15 |
|
of creating a new conditional nesting level. Special check for |
16 |
|
"else" and "endif", which aren't allowed on the "else" line. |
17 |
|
* doc/make.texi (Conditional Syntax): Document the new syntax. |
18 |
|
|
19 |
2005-05-09 Paul D. Smith <psmith@gnu.org> |
2005-05-09 Paul D. Smith <psmith@gnu.org> |
20 |
|
|
21 |
* Makefile.am (EXTRA_make_SOURCES): Add vmsjobs.c |
* Makefile.am (EXTRA_make_SOURCES): Add vmsjobs.c |