Commit 5d3d3eea authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make vcc typenames available in lower-case as well

parent b2a86df6
......@@ -793,7 +793,7 @@ file_header(ft)
lint_start(ft)
for vcltype in sorted(vcltypes.keys()):
ft.write("VCC_TYPE(" + vcltype + ")\n")
ft.write("VCC_TYPE(" + vcltype + ", " + vcltype.lower() +")\n")
ft.write("#undef VCC_TYPE\n")
lint_end(ft)
ft.close()
......
......@@ -106,7 +106,7 @@ struct type {
int stringform;
};
#define VCC_TYPE(foo) extern const struct type foo[1];
#define VCC_TYPE(UC, lc) extern const struct type UC[1];
#include "tbl/vcc_types.h"
/*---------------------------------------------------------------------*/
......
......@@ -178,7 +178,7 @@ vcc_type_t
VCC_Type(const char *p)
{
#define VCC_TYPE(foo) if (!strcmp(p, #foo)) return (foo);
#define VCC_TYPE(UC, lc) if (!strcmp(p, #UC)) return (UC);
#include "tbl/vcc_types.h"
return (NULL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment