224eb510f9
1) fix 'indent -npro -nip' when compiled with BERKELEY_DEFAULTS symptom: command line: unknown option "nhnl" Note that the "nhnl" above is just luck due to layout by the compiler. It could be random garbage. explanation: PRO_SETTINGS lists need to be terminated with two nulls. 2) fix error message for args prefixed with '--', like 'indent -npro --no-such-arg' symptom: command line: unknown option "-no-such-arg" explanation: the error message uses 'option - 1' instead of 'option - option_length' and -- options have option_length == 2. Note that the update looks more complicated than just this patch, because the original port patches were re-aligned as well. John has submitted his patches upstream as well. Submitted by: John Hein <jhein@symmetricom.com> Feature safe: yes
14 lines
346 B
C
14 lines
346 B
C
--- src/indent.h.orig 2008-03-11 19:50:42.000000000 +0100
|
|
+++ src/indent.h 2010-06-27 16:29:17.000000000 +0200
|
|
@@ -135,9 +135,9 @@
|
|
bb_cast
|
|
} bb_code_ty;
|
|
|
|
-#define DEFAULT_RIGHT_MARGIN 78
|
|
+#define DEFAULT_RIGHT_MARGIN 79
|
|
|
|
-#define DEFAULT_RIGHT_COMMENT_MARGIN 78
|
|
+#define DEFAULT_RIGHT_COMMENT_MARGIN 79
|
|
|
|
#define DEFAULT_LABEL_INDENT -2
|
|
|