]> git.draconx.ca Git - cdecl99.git/blobdiff - src/typemap.c
Add a function to turn a typemap into a string.
[cdecl99.git] / src / typemap.c
index 61456dd4a31a644393731af2afa3aed9273926bd..599d2cab2331bcb575c7fdf499a994dcd7c7b7ea 100644 (file)
@@ -60,3 +60,13 @@ unsigned long cdecl__build_typemap(struct cdecl_declspec *s)
                return -1;
        }
 }
+
+const char *cdecl__explain_typemap(unsigned long map)
+{
+       switch (map) {
+#      include "typenames.h"
+       default:
+               fprintf(stderr, "invalid type specifiers\n");
+               return NULL;
+       }
+}