]> spindle.queued.net Git - midori/commitdiff
check-style should recommend use of g_slice
authorChristian Dywan <christian@twotoasts.de>
Thu, 21 Oct 2010 19:06:54 +0000 (21:06 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 21 Oct 2010 19:09:01 +0000 (21:09 +0200)
tools/check-style

index b6076d82da99a4b56ee57d780f05619bcd5bbb9e..4af60c6547f88027dd17d02e5b97b596db99600c 100755 (executable)
@@ -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 = [