%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
#include "scan.h"
#include "cdecl.h"
#include "cdecl-internal.h"
+#include "errmsg.h"
#define FAIL(msg) do { \
yyerror(&yylloc, NULL, NULL, msg); \
#define ALLOC(ptr, size) do { \
(ptr) = malloc(size); \
if (!(ptr)) { \
- cdecl__err(CDECL_ENOMEM); \
+ cdecl__errmsg(CDECL__ENOMEM); \
YYERROR; \
} \
} while (0)