X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/ad973d63e038f293f2b158f19b04c1582e616af0..c807d652225fe170ee442591bb2a0bfc91c8618c:/src/parse.y diff --git a/src/parse.y b/src/parse.y index bf2a596..6faf2d2 100644 --- a/src/parse.y +++ b/src/parse.y @@ -1,7 +1,7 @@ %code top { /* * Parser for C declarations. - * Copyright © 2011-2012, 2021 Nick Bowler + * Copyright © 2011-2012, 2021, 2023 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 @@ -34,6 +34,7 @@ #include "scan.h" #include "cdecl.h" #include "cdecl-internal.h" +#include "errmsg.h" #define FAIL(msg) do { \ yyerror(&yylloc, NULL, NULL, msg); \ @@ -43,7 +44,7 @@ #define ALLOC(ptr, size) do { \ (ptr) = malloc(size); \ if (!(ptr)) { \ - cdecl__err(CDECL_ENOMEM); \ + cdecl__errmsg(CDECL__ENOMEM); \ YYERROR; \ } \ } while (0)