summaryrefslogtreecommitdiff
path: root/logger
diff options
context:
space:
mode:
authorCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2011-11-18 12:48:23 +0000
committerCosimo Alfarano <cosimo.alfarano@collabora.co.uk>2011-11-18 14:27:27 +0000
commitb7eb2624480b9e54dc5c89545775f5de7d771f45 (patch)
tree8d64745606b99a977a083e2d5af183f19cfc6237 /logger
parent8cd968f8f3563c79619b3e02f6d3d4a28d3fb49c (diff)
Update check-c-style.sh from telepathy-glib
Diffstat (limited to 'logger')
-rw-r--r--logger/tools/check-c-style.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/logger/tools/check-c-style.sh b/logger/tools/check-c-style.sh
index dd62fb7ba..4330b1479 100644
--- a/logger/tools/check-c-style.sh
+++ b/logger/tools/check-c-style.sh
@@ -44,6 +44,19 @@ if grep -En '^ *(static |const |)* *[[:alnum:]_]+\*+([[:alnum:]_]|;|$)' \
fail=1
fi
+if grep -n 'g_hash_table_destroy' "$@"; then
+ echo "^^^ Our coding style is to use g_hash_table_unref"
+ fail=1
+fi
+
+for p in "" "ptr_" "byte_"; do
+ if grep -En "g_${p}array_free \(([^ ,]+), TRUE\)" "$@"; then
+ echo "^^^ Our coding style is to use g_${p}array_unref in the case "
+ echo " the underlying C array is not used"
+ fail=1
+ fi
+done
+
if test -n "$CHECK_FOR_LONG_LINES"
then
if egrep -n '.{80,}' "$@"