bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 10/11] Add -par to K&R style


From: Tim Hentenaar
Subject: [PATCH 10/11] Add -par to K&R style
Date: Mon, 15 Jun 2015 21:53:01 +0200

In The C Programming Lanugage, 2nd Ed. K&R certainly align the * to the
name of the pointer.
---
 ChangeLog       | 3 +++
 doc/indent.texi | 2 +-
 src/args.c      | 3 ++-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 015445a..3807fe2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2015-06-15 Tim Hentenaar <address@hidden>
+       * Added -par to -kr.
+
 2015-06-14 Tim Hentenaar <address@hidden>
        * Added an option (-as/--align-with-spaces) which if indenting with
          tabs will ident to the current indentation level, and then pad
diff --git a/doc/indent.texi b/doc/indent.texi
index 9ca295d..68ea82d 100644
--- a/doc/indent.texi
+++ b/doc/indent.texi
@@ -382,7 +382,7 @@ of options:
 @group
 -nbad -bap -bbo -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0
 -cp33 -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs
--nprs -npsl -saf -sai -saw -nsc -nsob -nss
+-nprs -npsl -saf -sai -saw -nsc -nsob -nss -par
 @end group
 @end example
 
diff --git a/src/args.c b/src/args.c
index c739f9f..baadefc 100644
--- a/src/args.c
+++ b/src/args.c
@@ -82,7 +82,8 @@ RCSTAG_CC ("$Id$");
 #define KR_SETTINGS_STRING (int *) \
      "-nbad\0-bap\0-nbc\0-bbo\0-hnl\0-br\0-brs\0-c33\0-cd33\0" \
      "-ncdb\0-ce\0-ci4\0-cli0\0-d0\0-di1\0-nfc1\0-i4\0-ip0\0-l75\0-lp\0" \
-     
"-npcs\0-nprs\0-npsl\0-sai\0-saf\0-saw\0-cs\0-nsc\0-nsob\0-nfca\0-cp33\0-nss\0"
+     "-npcs\0-nprs\0-npsl\0-sai\0-saf\0-saw\0-cs\0-nsc\0-nsob\0-nfca\0-cp33\0"\
+     "-nss\0-par\0"
 
 #define GNU_SETTINGS_STRING  (int *) \
      "-nbad\0-bap\0-bbo\0-hnl\0-nbc\0-bl\0-bls\0-ncdb\0-cs\0-nce\0" \
-- 
2.3.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]