Commits


revert 2c16dbd5486 -- macro names can't be reserved words While one can define a macro using a reserved word as name using -Dname=val, inside the configuration file it'll fail.


macro names can be reserved words


fix macro example


document the c-like handling of strings


don't expand macros inside the quotes Now that we have this auto concat string thingy, macros can simply expand to standalone strings in place, as single words. Forgot to point it out in previous commits, but now we can cert = "/etc/keys" server "foo" { cert $cert "/foo.crt" ... }


align


[config] concat two or more strings next to each others


document macros: both -D and syntax


don't require the strict order macro > options > servers


add -D to define macros from the cmd line


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 }


trailing whitespaces


give a name to the anonymous union


sync the usage; while there also change order and capitalize


mention -V/--version and --help in the manpage