dj(1): Refactor source a bit, remove -Adq #125
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "dj"
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?
dj -Ahas been replaced withdj -a "\0"or the more briefdj -a ''.dj -dwas mostly necessary for debugging number parsing and putting it in an option rather than a compilation flag, while seemingly sensible at the time, is something I now regret.dj -qcan be replaced with something likedj -o /dev/null 2>&1 | grep -ve '^\t' -e 'Partial'.These changes have also been made in the man page.
Additionally, I reworked the program to use more sensible scoping for variables (no more globals, except static allocations) and fixed some functions to make more sense in usage.
@ -104,3 +92,1 @@.B -qoption is specified, a diagnostic message is printed. Then, the program exitsunless theOn a partial or empty read a diagnostic message is printed. Then, the program@ -11,7 +11,7 @@ dj \(en disk jockey.SH SYNOPSISIf you update the manpage, update the date to the date when you updated it.
@ -81,4 +75,2 @@DIAGNOSTICS section. Each invocation increments the debug level of theprogram..IP \fB-H\fPPrints diagnostics messages in a human-readable manner as described in theThis isn’t a change made here but this should say “diagnostic message” because it is an adjective and because it would be in line with the rest of the manpage.
WIP: dj(1): Refactor source a bit, remove -adqto WIP: dj(1): Refactor source a bit, remove -AdqWIP: dj(1): Refactor source a bit, remove -Adqto dj(1): Refactor source a bit, remove -AdqJust making sure you’ve implemented #113 before this is merged in.
Pull request closed