Skip to content

Commit ed0a4f8

Browse files
authored
refactor: parseCommandLine (#60)
* move comment * use const char* instead of vstring for immutable strings * move down integer defs * use const char* for immutable data * Add #defines for MODE_* constants * use an enum instead of #define * replace break with goto This skips over an if statement, but the goto is only taken when the if statement will be skipped anyway. * remove superfluous continues `continue` at the end of a loop is a no op. Use `else if` to put it at the end of the block if necessary. * add switch statement The earlier goto replacement was to avoid the change to break here. * combine common code * formatting
1 parent bf16e55 commit ed0a4f8

File tree

1 file changed

+161
-189
lines changed

1 file changed

+161
-189
lines changed

0 commit comments

Comments
 (0)