]> git.ipfire.org Git - thirdparty/automake.git/commit
build: Inline perl prototypes in sources
authorMathieu Lirzin <mthl@gnu.org>
Sat, 8 Jul 2017 18:18:45 +0000 (20:18 +0200)
committerMathieu Lirzin <mthl@gnu.org>
Thu, 31 Aug 2017 09:55:02 +0000 (11:55 +0200)
commit574b20e518079db0f91720c0641e4222d9fda84f
tree68ea05618bf068d336d80aa85a0eed084347e35f
parent99cf7ca5ed35afa9552a3a2429963130700a0fde
build: Inline perl prototypes in sources

Prototypes allows us to avoid using the '&foo' invocation form when
invoking a subroutine before its definition.  Previously those
prototypes were generated to prevent them from falling out-of-sync
with actual definitions.  Now we provide a 'check-perl-protos' lint
script to ensure that this is not the case.  This has the same
benefits as generating prototypes while simplifying the
bootstrap/build process.

* bin/gen-perl-protos: Remove.
* bin/Makefile.inc: Adapt.
* bootstrap: Likewise.
* bin/aclocal.in: Inline prototypes.
* bin/automake.in: Likewise.
* maintainer/check-perl-protos: New lint script.
* maintainer/syntax-checks.mk (sc_perl_protos): New target.
(syntax_check_rules): Add it.
bin/Makefile.inc
bin/aclocal.in
bin/automake.in
bin/gen-perl-protos [deleted file]
bootstrap
maintainer/check-perl-protos [new file with mode: 0755]
maintainer/syntax-checks.mk