mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
gst/Makefile.am: Cast values when making gstenumtypes.h. This pacifies Forte so it doesn't warn about the ~0 as GST_...
Original commit message from CVS: 2006-10-10 Zaheer Abbas Merali <zaheerabbas at merali dot org> Patch by: Josep Torre Valles <josep@fluendo.com> * gst/Makefile.am: Cast values when making gstenumtypes.h. This pacifies Forte so it doesn't warn about the ~0 as GST_MESSAGE_ANY not fitting in the enumeration.
This commit is contained in:
parent
0a53651b1f
commit
8c9c6d060c
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,12 @@
|
|||
2006-10-10 Zaheer Abbas Merali <zaheerabbas at merali dot org>
|
||||
|
||||
Patch by: Josep Torre Valles <josep@fluendo.com>
|
||||
|
||||
* gst/Makefile.am:
|
||||
Cast values when making gstenumtypes.h. This pacifies Forte
|
||||
so it doesn't warn about the ~0 as GST_MESSAGE_ANY not fitting
|
||||
in the enumeration.
|
||||
|
||||
2006-10-09 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/gstevent.c: (gst_event_new_seek), (gst_event_parse_seek):
|
||||
|
|
|
@ -233,10 +233,10 @@ gstenumtypes.h: $(gst_headers)
|
|||
|
||||
gstenumtypes.c: $(gst_headers)
|
||||
glib-mkenums \
|
||||
--fhead "#include \"gst_private.h\"\n#include <gst/gst.h>" \
|
||||
--fhead "#include \"gst_private.h\"\n#include <gst/gst.h>\n#define C_ENUM(v) ((gint) v)\n#define C_FLAGS(v) ((guint) v)\n " \
|
||||
--fprod "\n/* enumerations from \"@filename@\" */" \
|
||||
--vhead "static void\nregister_@enum_name@ (GType* id)\n{\n static const G@Type@Value values[] = {" \
|
||||
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||
--vprod " { C_@TYPE@(@VALUENAME@), \"@VALUENAME@\", \"@valuenick@\" }," \
|
||||
--vtail " { 0, NULL, NULL }\n };\n *id = g_@type@_register_static (\"@EnumName@\", values);\n}\nGType\n@enum_name@_get_type (void)\n{\n static GType id;\n static GOnce once = G_ONCE_INIT;\n\n g_once (&once, (GThreadFunc)register_@enum_name@, &id);\n return id;\n}\n" \
|
||||
$^ > gstenumtypes.c
|
||||
|
||||
|
|
Loading…
Reference in a new issue