From: Jim Meyering Date: Fri, 20 Nov 2009 12:24:24 +0000 (+0100) Subject: maint.mk: improve sc_prohibit_magic_number_exit X-Git-Tag: v0.1~5162 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=00b2f10b68593189be4eb1affd88de33a8e92fb3;p=gnulib.git maint.mk: improve sc_prohibit_magic_number_exit * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp so it does not match uses like System.exit(1). Add comments showing how to correct all offenders. --- diff --git a/ChangeLog b/ChangeLog index eacd8e055..51fe8ed2c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-11-20 Jim Meyering + + maint.mk: improve sc_prohibit_magic_number_exit + * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp + so it does not match uses like System.exit(1). + Add comments showing how to correct all offenders. + 2009-11-19 Eric Blake xalloc-die-tests: add missing library diff --git a/top/maint.mk b/top/maint.mk index 34d66e1d1..3452a1588 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -157,8 +157,17 @@ sc_prohibit_strcmp: 1>&2; exit 1; } || : # Pass EXIT_*, not number, to usage, exit, and error (when exiting) +# Convert all uses automatically, via these two commands: +# git grep -l '\