syntax-check: add syntactic rule to prohibit gs_unref_*
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
4282ef65bf
commit
f38ec6dfdf
5
maint.mk
5
maint.mk
|
|
@ -1032,6 +1032,11 @@ sc_const_long_option:
|
||||||
halt='add "const" to the above declarations' \
|
halt='add "const" to the above declarations' \
|
||||||
$(_sc_search_regexp)
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
|
sc_prohibit_gs_unref:
|
||||||
|
@prohibit='\bgs_unref_(keyfile|variant*|ptrarray|hashtable|bytes|object)\b' \
|
||||||
|
halt="do not use gs_unref_*; use g_autoptr instead" \
|
||||||
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
NEWS_hash = \
|
NEWS_hash = \
|
||||||
$$($(SED) -n '/^\*.* $(PREV_VERSION_REGEXP) ([0-9-]*)/,$$p' \
|
$$($(SED) -n '/^\*.* $(PREV_VERSION_REGEXP) ([0-9-]*)/,$$p' \
|
||||||
$(srcdir)/NEWS \
|
$(srcdir)/NEWS \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue