mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
giotypefuncs test: tweak _get_type() regexp
Make sure that we only match the _get_type() function name by restricting the regexp to matching [A-Za-z0-9_]. We were matching on .* before which means that if we had two _get_type() functions appearing on a single line then we would get everything in between them included (by the default rule of '*' being greedy). This affected G_DECLARE_*_TYPE which puts several uses of _get_type() into a single line.
This commit is contained in:
parent
b69beff426
commit
93982d4a16
@ -542,7 +542,7 @@ giotypefuncs.c: Makefile
|
||||
$(AM_V_GEN) echo '#include <gio/gio.h>' > xgen-giosrc.c && \
|
||||
echo "G_GNUC_BEGIN_IGNORE_DEPRECATIONS" > xgen-gio && \
|
||||
${CPP} $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) xgen-giosrc.c | \
|
||||
$(GREP) -o '\bg_.*_get_type\b' | \
|
||||
$(GREP) -o '\bg_[A-Za-z0-9_]*_get_type\b' | \
|
||||
$(GREP) -v 'g_io_extension_get_type\|g_variant_get_type' | \
|
||||
sort | uniq | \
|
||||
$(SED) -e 's/^/*tp++ = /' -e 's/$$/ ();/' >> xgen-gio && \
|
||||
|
Loading…
Reference in New Issue
Block a user