From: Christian Dywan Date: Thu, 21 Oct 2010 19:06:54 +0000 (+0200) Subject: check-style should recommend use of g_slice X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a908d8a9f161b3b1766517c7e4f7d65bd34af580;p=midori check-style should recommend use of g_slice --- diff --git a/tools/check-style b/tools/check-style index b6076d82..4af60c65 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 = [