X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/fed6418a32d3b0fd6036d169bd325c1172b391b5..refs/heads/master:/t/scantest.c diff --git a/t/scantest.c b/t/scantest.c index 093c6ca..c8576b1 100644 --- a/t/scantest.c +++ b/t/scantest.c @@ -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 */ @@ -36,7 +38,7 @@ void cdecl__errmsg(unsigned msg) { } -void cdecl__err(unsigned code, const char *fmt, const char *arg) +void cdecl__err(const char *fmt, const char *arg) { } @@ -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' },