[GRASS5] PATCH: asprintf.c
Hamish
hamish_nospam at yahoo.com
Thu Jun 9 00:50:20 EDT 2005
> It would be nice also to use indent according to the spec in the
> SUBMITTING document to format the file nicely, as I left it in a total
> mess when originally submitting it.
As far as I can see, there's nothing in SUBMITTING about indentation.
Here's what I have used:
$ indent -nbad -bap -bbb -nbbo -nbc -br -bli1 -bls -cbi0 -ncdb -nce \
-ci4 -cli0 -ncs -d0 -di0 -fc1 -nfca -hnl -i4 -ip4 -l80 -lc80 -lp -npcs \
-pi4 -nprs -npsl -sbi0 -sc -nsob -ss -ts8 main.c
Markus has used these rules more recently:
indent -i4 -npsl -di0 -br -nce -d0 -cli0 -npcs -nfc1 $1
We should pick one and add it to the SUBMITTING file, with a note that
doing so without due cause is not good, as it will destroy the
usefulness of diffs vs old versions of the code.
Also, can we change rule #26 to drop 'diff -c' and just prescribe
'diff -u' as the prefered method?
Hamish
More information about the grass-dev
mailing list