]> git.draconx.ca Git - cdecl99.git/blobdiff - t/scantest.c
tests: Consolidate error messaging a bit.
[cdecl99.git] / t / scantest.c
index 093c6ca9e3ce5853be4b5c2e3fc9e2b57a06f891..0a0be2234082349f97f9b5f306bfe36e8fc55485 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Helper to verify scanner output.
- * Copyright © 2023 Nick Bowler
+ * Copyright © 2023-2024 Nick Bowler
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -23,6 +23,8 @@
 
 #include "scan.h"
 #include "cdecl-internal.h"
+
+#define PROGNAME "scantest"
 #include "test.h"
 
 /* Stubs */
@@ -45,8 +47,6 @@ size_t cdecl__strlcpy(char *dst, const char *src, size_t len)
        abort();
 }
 
-#define PROGNAME "scantest"
-static const char *progname = PROGNAME;
 static const char sopts[] = "ECVH";
 static const struct option lopts[] = {
         { "cdecl",   0, NULL, 'C' },