Commits
- Commit:
8b743ddacb8cac52c0125917c80790073bffd343
- From:
- Omar Polo <op@omarpolo.com>
- Date:
document macros: both -D and syntax
- Commit:
6b86655a10753eae668e839207692d9d43138679
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't require the strict order macro > options > servers
- Commit:
f98e9045aef95fe28972d477ee549974c7cefb9f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add -D to define macros from the cmd line
- Commit:
3b21cca385c403247960cfe9385dda1d56f28670
- From:
- Omar Polo <op@omarpolo.com>
- Date:
allow to define macros in the config file
Macros can be defined at the top of the configuration file:
dir = "/var/gemini"
cert = "/etc/keys"
and re-used later, for example
server "foo" {
root "$dir/foo" # -> /var/gemini/foo
cert "$cert/foo.pem" # -> /etc/keys/foo.pem
}
- 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.