]> git.draconx.ca Git - cdecl99.git/blobdiff - src/cdecl.h
libcdecl: Sidestep some possible snprintf issues.
[cdecl99.git] / src / cdecl.h
index 11e0099ee28f5c47c3905a9413043b95e50116f3..20a94f2b2c4bb4a2305a1952045e57d877b51204 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright © 2011 Nick Bowler
+ *  Copyright © 2011, 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
@@ -117,8 +117,20 @@ static inline _Bool cdecl_is_abstract(const struct cdecl_declarator *d)
 
 /* Error handling. */
 enum {
-       CDECL_ENOMEM,
+       CDECL_ENOMEM = 1,
        CDECL_ENOPARSE,
+
+       /* Obsolete error codes (no longer returned by the library) */
+       CDECL_EBADARRAY,
+       CDECL_EBADDECL,
+       CDECL_EBADPARAMS,
+       CDECL_EBADPOINTER,
+       CDECL_EBADQUAL,
+       CDECL_EBADRETURN,
+       CDECL_EBADSTOR,
+       CDECL_EBADTYPE,
+       CDECL_ENOTFUNC,
+       CDECL_EVOIDPARAM
 };
 
 struct cdecl_error {