Commit cf28fda
Refactor output (err) functions.
+ Move to standard PP indents (incrementally).
+ better indenting of preprocessor directives in jam.h
+ print_source_line, backtrace_line, backtrace, and unknown_rule_error (formerly unknown_rule) function definitions moved from builtins.cpp to outerr.cpp
+ new rule_and_args_to_string and out_warning functions added
+ COMMAND builtin rule is now an alias for SHELL, to reflect the documentation and also because it is not used and one day might be discontinued
+ new function try_bind_module added to builtins.cpp, to check for modules before the binding and error/warning diagnostics; currently used by both IMPORT and EXPORT builtin rules [1]
+ new template function b2::find_hash added to simplify usage of hash_find, this is in builtins.cpp by now
+ use of "global module" instead of "root module" in messages
+ builtin_import (IMPORT) and builtin_native_rule (NATIVE_RULE) updated to use outerr functions to emit errors
+ call_member_rule in compile.cpp updated to emit a warning using out_warning
+ struct _stack::check::operator() and function_call_rule in function.cpp now emit a warning using out_warning
+ function_call_rule e function_call_member_rule in function.cpp now emit an error using out_error
+ restored "root module" in place of "global module" in messages and documentation, where appropriate
+ error issued by RULENAMES too on missing module,
+ get rid of add_rule_name function in builtins.cpp, duplicate of module_rules in modules.cpp.
[1] Requesting an import from a non-existent module produces a warning and the use of the global module by IMPORT; conversely requesting an export from a non-existent module produces an error by the EXPORT. See #565 for details about the rationale.
fixes #5811 parent 1d97d36 commit cf28fda
9 files changed
Lines changed: 546 additions & 492 deletions
File tree
- doc/src
- src/engine
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
0 commit comments