Commits
- Commit:
fafc6849577c9374ee6acb8ae7f30104464bb08e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
trailing whitespaces
- Commit:
8235a81c8f7f58eaa08655147963936a2290f691
- From:
- Omar Polo <op@omarpolo.com>
- Date:
give a name to the anonymous union
- Commit:
0be2a537e6e2b336a6e46cd1f5a13663ea939ea4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync the usage; while there also change order and capitalize
- Commit:
ba65dcc8fabd45f65cc56f691ee1770ad67b2d9b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
mention -V/--version and --help in the manpage
- Commit:
fdb43a4c0e347c20c0f13c3145165393c6c10883
- From:
- Omar Polo <op@omarpolo.com>
- Date:
define GMID_STRING and reuse-it
GMID_VERSION follows the CGI/FastCGI style, i.e. project_name/version.
Define GMID_STRING with a more "human" variant "project_name version",
and reuse that in the --help and --version codepath.
- Commit:
0233b0f6b9fcbbca701d245e82fbddca20862eeb
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add version in usage
- Commit:
9327bc045a93253310a3b6933e8bd96d27298185
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use getprogname() in usage()
- Commit:
5777923bb08a51b04537a127c8514186cd276a70
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use getopt_long, add --help as synonym of -h and -V/--version
- Commit:
2c43dcceb6f462a46da93b6e9a6b3c4617e70823
- From:
- Omar Polo <op@omarpolo.com>
- Date:
document `log' option
- Commit:
1b78bd563a8779c8be71c0489abb92a61e21f8f1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
strncpy -> strlcpy
quoting strncpy(3)
strncpy() only NUL terminates the destination string when the
length of the source string is less than the length parameter.
strlcpy is more intuitive.
this is another warning gcc 8 found that clang didn't.
- Commit:
80fbf1e934ed1e2dafea65e88bb91a501f175a3b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make sure l is always initialized
I can't think of cases where we reach serialize_iri and path is NULL,
but let's keep the safe side and initialize l. gcc 8 found this,
clang didn't.
- Commit:
2d383cbd5f19052f4f4d154e0d5e4ec387b12690
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove last occurrences of lex
- Commit:
9e659275b0fa7f5972215b979ba95a21571d9b1d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove now unused lex.l
- Commit:
ef129b08ef85ad6d034548fa1fbe71570a61e75a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move lineno/colno into the token struct
- Commit:
74f0778b9ae93a700d8b0f759b05f24e69f54921
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop the dependency on lex by implementing yylex by ourselves
The actual implementation is based off doas' parse.y. This gave us
various benefits, like cleaner code, \ to break long lines, better
handling of quotes etc...