diff options
| author | la-ninpre <leobrekalini@gmail.com> | 2021-08-27 23:54:10 +0000 |
|---|---|---|
| committer | la-ninpre <leobrekalini@gmail.com> | 2021-08-27 23:54:10 +0000 |
| commit | a00752d9d68b00c319bea79afa43d4b118fc216e (patch) | |
| tree | fe5dfba02569a8bd17744163cb415497c221a54d /makenimitoki.c | |
| parent | 0846a40229ad8753419a0ab8a303d3a293df305e (diff) | |
| download | nimisewi_c-a00752d9d68b00c319bea79afa43d4b118fc216e.tar.gz nimisewi_c-a00752d9d68b00c319bea79afa43d4b118fc216e.zip | |
use gnu autotools build system for configuring.v0.1.0
this was kinda tough, but interesting.
FossilOrigin-Name: b881bb67b683313959c94ce172b9fb307400c0f43a262f82ab2d3b2c1a8cb557
Diffstat (limited to 'makenimitoki.c')
| -rw-r--r-- | makenimitoki.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/makenimitoki.c b/makenimitoki.c index 00d3e01..52c0988 100644 --- a/makenimitoki.c +++ b/makenimitoki.c @@ -26,6 +26,8 @@ * TODO: make use of templates, maybe? */ +#include <config.h> + #include <err.h> #include <stdio.h> #include <stdlib.h> @@ -42,7 +44,7 @@ make_header(FILE *nimitoki_h) "#ifndef NIMI_TOKI_H\n" "#define NIMI_TOKI_H\n\n" - "#include <stdlib.h>\n" + "#include <stdlib.h>\n\n" "extern const char *nimi_toki[]; /* list of words */\n" "extern const unsigned long suli_pi_nimi_toki /* length of word list */;\n\n" @@ -76,11 +78,11 @@ int main(int argc, char *argv[]) { char *nimitoki_txt_path; /* file path for wordlist file */ - FILE *nimitoki_txt; /* list of words */ - FILE *nimitoki_h; /* output header file */ - FILE *nimitoki_c; /* output code file */ + FILE *nimitoki_txt; /* list of words */ + FILE *nimitoki_h; /* output header file */ + FILE *nimitoki_c; /* output code file */ -#ifdef __OpenBSD__ +#ifdef HAVE_PLEDGE if (pledge("stdio rpath wpath cpath", NULL) == -1) { err(EXIT_FAILURE, "pledge"); } |
