[Xfce4-commits] <midori:master> check-style should recommend use of g_slice

Christian Dywan noreply at xfce.org
Thu Oct 21 21:10:06 CEST 2010


Updating branch refs/heads/master
         to a908d8a9f161b3b1766517c7e4f7d65bd34af580 (commit)
       from 68c12e950ec45990698a6c10db9b5522d0923de6 (commit)

commit a908d8a9f161b3b1766517c7e4f7d65bd34af580
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Oct 21 21:06:54 2010 +0200

    check-style should recommend use of g_slice

 tools/check-style |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/check-style b/tools/check-style
index b6076d8..4af60c6 100755
--- a/tools/check-style
+++ b/tools/check-style
@@ -48,6 +48,7 @@ violations = [
      |getpwnam|getpwuid|gmtime|localtime \
      |rand|readdir|strtok|ttyname', 'Not thread-safe posix, use _r variant'],
     ['while.*g_list_nth', 'Use g_list_next() instead of g_list_nth'],
+    ['[^a-z]g_new.*1[^0-9]', 'Use g_slice_new() instead of g_new()'],
 ]
 # No validation for strings, comments, includes
 omissions = [



More information about the Xfce4-commits mailing list