X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/ba6e6b64033b1f9de49feccb5c9cd438354481f7..0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a:/gthingtab.c.in diff --git a/gthingtab.c.in b/gthingtab.c.in deleted file mode 100644 index 1c51520..0000000 --- a/gthingtab.c.in +++ /dev/null @@ -1,32 +0,0 @@ -%## -*-c-*- -%## -%## Skeleton source file for tables of crypto classes -%# -/* -*-c-*- GENERATED from gthingtab.c.in - * - * @{what}tab.c - */ - -#include - -#include "@what.h" - -%repeat -#include "@{thing:left}.h" -%end - -const @cls *const @{what}tab[] = { -%repeat - &@{thing:right:c}, -%end - 0 -}; - -const @cls *@{what}_byname(const char *p) -{ - const @cls *const *c; - - for (c = @{what}tab; *c; c++) - if (strcmp(p, (*c)->name) == 0) return (*c); - return (0); -}