Updating branch refs/heads/master to 86780866a76a1257b02fc92b6a6c2bcc0789c7c1 (commit) from 9cc511ea5ce1e7ce8695dbaa3e53525730b63894 (commit)
commit 86780866a76a1257b02fc92b6a6c2bcc0789c7c1 Author: Christian Dywan <christ...@twotoasts.de> Date: Sun Nov 18 16:47:12 2012 +0100 check-style thread-safe check should match whole words tools/check-style | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/check-style b/tools/check-style index 4af60c6..12a284e 100755 --- a/tools/check-style +++ b/tools/check-style @@ -44,9 +44,9 @@ violations = [ # ['(if)( \([^ ].*[^ ]\))$', 'Good if style'], ['^#\s+(if(n?def)?|define|else|elif)[ ].*$', 'Space between # and cpp'], [r'^\s*\*\w+(\+\+|--);', 'Invalid increment, use (*i)++ or *i += 1'], - ['asctime|ctime|getgrgid|getprgnam|getlogin \ + ['[^a-z](asctime|ctime|getgrgid|getprgnam|getlogin \ |getpwnam|getpwuid|gmtime|localtime \ - |rand|readdir|strtok|ttyname', 'Not thread-safe posix, use _r variant'], + |rand|readdir|strtok|ttyname)[^a-z]', '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()'], ] _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits