From f07d5cdbaf5d906b145b152d549915271d355798 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Thu, 19 Jan 2017 19:11:54 -0600 Subject: nqasm: add command line processing --- nqdasm.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'nqdasm.c') diff --git a/nqdasm.c b/nqdasm.c index f918136..bb26d81 100644 --- a/nqdasm.c +++ b/nqdasm.c @@ -5,25 +5,11 @@ #include #include +#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; -- cgit v1.2.3