mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-02-17 15:10:02 +08:00
* HACKING: Updated: .in' files are now
.m4sh'; document some
more coding standards for these files.
This commit is contained in:
parent
6b55376125
commit
128f90e9ff
@ -1,5 +1,8 @@
|
||||
2004-10-22 Gary V. Vaughan <gary@gnu.org>
|
||||
|
||||
* HACKING: Updated: `.in' files are now `.m4sh'; document some
|
||||
more coding standards for these files.
|
||||
|
||||
* config/general.m4sh (sed_double_backslash): Undo an
|
||||
over-optimisation.
|
||||
|
||||
|
18
HACKING
18
HACKING
@ -93,13 +93,27 @@ and is not part of a release distribution.
|
||||
of the loop itself should print each "important" command it runs.
|
||||
|
||||
|
||||
5. Editing libtoolize.in and ltmain.in
|
||||
======================================
|
||||
5. Editing `.m4sh' Files
|
||||
========================
|
||||
|
||||
* Use shell functions, but be careful not to assume local scope for
|
||||
variable names. Don't use `return', instead echo the result of a
|
||||
function and call it from within backquotes.
|
||||
|
||||
* Function names should be prefixed `func_'.
|
||||
|
||||
* For functions that are called frequently, if you need to return a
|
||||
value, don't cause unneccessary forking of the shell using echo as
|
||||
described above; instead set the return value in a variable named
|
||||
after the called function with a suffix of `_result'. For example
|
||||
the function `func_quote_for_eval' stores its return value in the
|
||||
variable `$func_quote_for_eval_result'.
|
||||
|
||||
* Although sh-indentation is set to 2 (by the `Local Variables:' block
|
||||
at the end of .m4sh files), the left margin of the body of shell
|
||||
functions should begin indented by 4 spaces.
|
||||
|
||||
|
||||
6. Abstraction layers in libltdl
|
||||
================================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user