]> git.draconx.ca Git - cdecl99.git/commitdiff
Add missing errmsg.str source file.
authorNick Bowler <nbowler@draconx.ca>
Sat, 1 Jul 2023 14:27:17 +0000 (10:27 -0400)
committerNick Bowler <nbowler@draconx.ca>
Sat, 1 Jul 2023 14:32:06 +0000 (10:32 -0400)
Oops, forgot to commit this file.

src/.gitignore
src/errmsg.str [new file with mode: 0644]

index e1f0478cc8a6a550ba282d6ce4f9770421c8c9ae..3786172701ae5b360db3d757695858caf4e790de 100644 (file)
@@ -1,7 +1,7 @@
 /*.stamp
 /cmdlist.h
 /commands.h
-/errtab.h
+/errmsg.h
 /execute.c
 /options.h
 /parse.[ch]
diff --git a/src/errmsg.str b/src/errmsg.str
new file mode 100644 (file)
index 0000000..60a6500
--- /dev/null
@@ -0,0 +1,22 @@
+@macro
+&CDECL__ENOMEM        failed to allocate memory
+&CDECL__ETOOLONG      too many long specifiers
+&CDECL__EDUPTYPE      duplicate type specifier
+&CDECL__ENOTYPE       no type specified
+&CDECL__EBADTYPE      invalid type specified
+&CDECL__EBADVOID      invalid declaration of type void
+&CDECL__ETYPESTOR     type names cannot have storage-class specifiers
+&CDECL__EFUNCSTOR     function parameters may only have register storage
+&CDECL__EMANYSTOR     too many storage-class specifiers
+&CDECL__EBADQUAL      only pointer types can be restrict-qualified
+&CDECL__ENOTFUNC      only function declarations can have function specifiers
+&CDECL__EBADPARAM     invalid function parameter
+&CDECL__EMANYPAREN    too many parentheses
+&CDECL__EVOIDPARAM    void parameter must stand alone
+&CDECL__ERETFUNC      functions cannot return functions
+&CDECL__ERETARRAY     functions cannot return array
+&CDECL__EFUNCARRAY    array members cannot be functions
+&CDECL__ERESTRICTFUNC function pointers cannot be restrict-qualified
+&CDECL__EDECLTYPE     mixing type names and declarations is not allowed
+&CDECL__ERANGE        integer constant out of range
+&CDECL__EBADINT       invalid integer constant