diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2017-01-19 19:11:54 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2017-01-19 19:11:54 -0600 |
commit | f07d5cdbaf5d906b145b152d549915271d355798 (patch) | |
tree | 74ca01e5ccf06c67ac25e769f5c4a3f71aa7bbe6 /nqdasm.c | |
parent | 7561230a9dda9728b93306c0bd398c5b1cc1ce4d (diff) |
nqasm: add command line processing
Diffstat (limited to 'nqdasm.c')
-rw-r--r-- | nqdasm.c | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -5,25 +5,11 @@ #include <string.h> #include <unistd.h> +#include "common.h" #include "mnemonics.h" const char *progname; -#define ERROR(...) \ - do { \ - fprintf(stderr, "%s: ", progname); \ - fprintf(stderr, __VA_ARGS__); \ - fprintf(stderr, "\n"); \ - } while (0) - -#define PERROR(str) \ - do { \ - int err = errno; \ - fprintf(stderr, "%s: ", progname); \ - errno = err; \ - perror(str); \ - } while (0) - static struct line { int label; uint16_t value; |