rpg_source_decl.zig, rpg_source.zig: a long text start value of a character field is declared as text, with $ and # kept (lane Lgd3; changes rpg_source.zig) #776
Loading…
Reference in a new issue
No description provided.
Delete branch "lgd3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
rpg_source_decl.zig, rpg_source.zig: a long text start value of a character field is declared as text, with
$and#kept (lane Lgd3; changes rpg_source.zig)Cause (public battery lgd2-long-start, v0.1.490 Debug build with the refusal tracer)
lgd2-c-text-1000/-1500/-3000(checkNames s04): the start value needs 13, 17 and 34 lines;declLinekept a declaration of at most twelve lines (max_decl_lines, the guard that keeps thewhole image of an array out of a scalar declaration), so the declaration became
"longer than 100 bytes" and every statement that names the field failed.
lgd2-c-var-1500,lgd2-b-var-50/-90/-150: the text holds$and#;characterLiteralwrote thewhole value as hexadecimal, twice its length. c-var-1500 passed the line cap; b-var-* did not fit the
source lines ("declarations do not fit before source line N").
Rule
characterLiteral: the bytes 5B and 7B that read as$and#are text. The captureslgd2-b-var-* and lgd2-c-var-1500 (compiled under CCSID 273) store 5B and 7B for them, as the
text constants of the statements already assume. The other national characters stay hexadecimal.
declLineand the structure lines: the twelve-line limit applies where there is array evidence(
e.arrays,ds_arrays); a field without it may hold up to 64 lines.Measured
src/rpg_lgd3_test.zig(adopted captures lgd2-c-text-1000, lgd2-b-var-50, lgd2-c-var-1500): noSOURCERER-FAIL, the declared type and the start value equal those ofsource.rpgle, no line over 100 bytes.Red before the change (each had a failure line).
c-text-1000/-1500/-3000, c-var-1500, b-var-50/-90/-150. The first
p = %dec(...)statement is on theline of the source in all seven.
src/testdata(emit text, v0.1.490 Debug against this build): only the threeadopted captures differ.
by the loop).
Gates (ship.sh):
82ba6731147247905b59