Skip to content

Commit

Permalink
main.mk: remove sc_program_name
Browse files Browse the repository at this point in the history
There is no more need to use set_program_name in tools (getprogname
is enough for most of the cases).
* cfg.mk (local-checks-to-skip): Remove sc_program_name.
* top/maint.mk (sc_program_name): Remove.
  • Loading branch information
ptoscano authored and meyering committed Sep 5, 2016
1 parent f7bf2e4 commit 38c0fe5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2016-08-18 Pino Toscano <[email protected]>

main.mk: remove sc_program_name, since there is no more need to
use set_program_name in tools (getprogname is enough for most
of the cases).
* cfg.mk (local-checks-to-skip): Remove sc_program_name.
* top/maint.mk (sc_program_name): Remove.

2016-08-18 Pino Toscano <[email protected]>

Port tests away from progname, since modules that need the
Expand Down
1 change: 0 additions & 1 deletion cfg.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ local-checks-to-skip = \
sc_makefile_at_at_check \
sc_makefile_path_separator_check \
sc_obsolete_symbols \
sc_program_name \
sc_prohibit_HAVE_MBRTOWC \
sc_prohibit_S_IS_definition \
sc_prohibit_always_true_header_tests \
Expand Down
9 changes: 0 additions & 9 deletions top/maint.mk
Original file line number Diff line number Diff line change
Expand Up @@ -716,15 +716,6 @@ sc_changelog:
halt='found unexpected prefix in a ChangeLog' \
$(_sc_search_regexp)

# Ensure that each .c file containing a "main" function also
# calls set_program_name.
sc_program_name:
@require='set_program_name *\(.*\);' \
in_vc_files='\.c$$' \
containing='\<main *(' \
halt='the above files do not call set_program_name' \
$(_sc_search_regexp)

# Ensure that each .c file containing a "main" function also
# calls bindtextdomain.
sc_bindtextdomain:
Expand Down

0 comments on commit 38c0fe5

Please sign in to comment.