]> git.draconx.ca Git - cdecl99.git/commit
Don't parse command-line options more than once.
authorNick Bowler <nbowler@draconx.ca>
Tue, 10 Jan 2023 01:20:19 +0000 (20:20 -0500)
committerNick Bowler <nbowler@draconx.ca>
Tue, 10 Jan 2023 01:22:42 +0000 (20:22 -0500)
commit4dd9ed36e29f68507bd1038752314165587a94dd
treede0871d115190c49a8e2ecebb802967d5f04eaa7
parent3c58d9ac7785977d21c60792371ee7b52f3819c8
Don't parse command-line options more than once.

Instead of parsing the options a second time to collect the --execute
option arguments, we can easily permute the argv array on the first
pass through, which simplifies the subsequent evaluation.
src/cdecl99.c
tests/general.at