summaryrefslogtreecommitdiff
path: root/nqdasm.c
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2017-01-19 19:11:54 -0600
committerBobby Bingham <koorogi@koorogi.info>2017-01-19 19:11:54 -0600
commitf07d5cdbaf5d906b145b152d549915271d355798 (patch)
tree74ca01e5ccf06c67ac25e769f5c4a3f71aa7bbe6 /nqdasm.c
parent7561230a9dda9728b93306c0bd398c5b1cc1ce4d (diff)
nqasm: add command line processing
Diffstat (limited to 'nqdasm.c')
-rw-r--r--nqdasm.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/nqdasm.c b/nqdasm.c
index f918136..bb26d81 100644
--- a/nqdasm.c
+++ b/nqdasm.c
@@ -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;