[ostree] syntax-check: add syntactic rule to prohibit gs_unref_*
- From: Giuseppe Scrivano <gscrivano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] syntax-check: add syntactic rule to prohibit gs_unref_*
- Date: Wed, 13 May 2015 08:05:15 +0000 (UTC)
commit f38ec6dfdf0c564ab87f5aa809ad9785bc7e3bcc
Author: Giuseppe Scrivano <gscrivan redhat com>
Date: Tue May 12 09:39:13 2015 +0200
syntax-check: add syntactic rule to prohibit gs_unref_*
Signed-off-by: Giuseppe Scrivano <gscrivan redhat com>
maint.mk | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/maint.mk b/maint.mk
index ff5400f..9b77357 100644
--- a/maint.mk
+++ b/maint.mk
@@ -1032,6 +1032,11 @@ sc_const_long_option:
halt='add "const" to the above declarations' \
$(_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 = \
$$($(SED) -n '/^\*.* $(PREV_VERSION_REGEXP) ([0-9-]*)/,$$p' \
$(srcdir)/NEWS \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]