summaryrefslogtreecommitdiff
path: root/nqdasm.c
diff options
context:
space:
mode:
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;