Nicer enums file
This commit is contained in:
parent
96c03baba7
commit
b6eb52e600
@ -191,7 +191,7 @@ stamp-mooedit-enums.c: $(mooedit_enums_headers) Makefile
|
||||
( cd $(srcdir) && glib-mkenums \
|
||||
--fhead "#include \"mooedit/mooedit-enums.h\"\n\n" \
|
||||
--fprod "#include \"mooedit/@filename@\"\n\n" \
|
||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0)\n {\n static const G@Type@Value values[] = {" \
|
||||
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype;\n if (G_UNLIKELY (!etype))\n {\n static const G@Type@Value values[] = {" \
|
||||
--vprod " { @VALUENAME@, (char*) \"@VALUENAME@\", (char*) \"@valuenick@\" }," \
|
||||
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n\n" \
|
||||
$(mooedit_enums_headers) ) > xgen-gtbc \
|
||||
|
Loading…
x
Reference in New Issue
Block a user