diff options
author | Omar Polo <op@omarpolo.com> | 2021-06-29 12:17:40 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-06-29 12:17:40 +0000 |
commit | 3b21cca385c403247960cfe9385dda1d56f28670 (patch) | |
tree | 341ea2e3cad32b3853c9fa182d0cdfd68404d583 /gmid.h | |
parent | fafc6849577c9374ee6acb8ae7f30104464bb08e (diff) |
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
}
Diffstat (limited to 'gmid.h')
-rw-r--r-- | gmid.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -314,6 +314,7 @@ void drop_priv(void); void yyerror(const char*, ...); int parse_portno(const char*); void parse_conf(const char*); +int cmdline_symset(char *); /* log.c */ void fatal(const char*, ...) |