diff options
author | Richard Levitte <levitte@openssl.org> | 2016-08-18 13:24:27 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-08-18 14:40:37 +0200 |
commit | a3a0b4105709c1312d55906e5f3ee9b69d4af1d6 (patch) | |
tree | ed6a731f615bf5fcc6931709f8fe251702fe11a3 /util/openssl-format-source | |
parent | Indent ssl/ (diff) | |
download | openssl-a3a0b4105709c1312d55906e5f3ee9b69d4af1d6.tar.xz openssl-a3a0b4105709c1312d55906e5f3ee9b69d4af1d6.zip |
Simplify indentation of DECLARE_ and IMPLEMENT_ lines
There's no reason we should enumerate every type of IMPLEMENT_ and
DECLARE_ line (and forget the ones we add a little now and then).
They all start with the same first word, let's just take'm all.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'util/openssl-format-source')
-rwxr-xr-x | util/openssl-format-source | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/openssl-format-source b/util/openssl-format-source index 19f2b72e7c..3dcc128a9f 100755 --- a/util/openssl-format-source +++ b/util/openssl-format-source @@ -124,7 +124,7 @@ do perl -np \ -e 's/^([ \t]*)\/\*([ \t]+.*)\*\/[ \t]*$/my ($x1,$x2) = ($1, $2); if (length("$x1$x2")<75 && $x2 !~ m#^\s*\*INDENT-(ON|OFF)\*\s*$#) {$c="-"}else{$c=""}; "$x1\/*$c$x2*\/"/e;' \ -e 's/^\/\* ((Copyright|=|----).*)$/\/*-$1/;' \ - -e 's/^((DECLARE|IMPLEMENT)_(EXTERN_ASN1|STATIC_ASN1|ASN1|ADB|STACK_OF|PKCS12_STACK_OF|PEM|OBJ|LHASH|DEPRECATED).*)$/\/**INDENT-OFF**\/\n$1\n\/**INDENT-ON**\//;' \ + -e 's/^((DECLARE|IMPLEMENT)_.*)$/\/**INDENT-OFF**\/\n$1\n\/**INDENT-ON**\//;' \ -e 's/^([ \t]*(make_dh|make_dh_bn|make_rfc5114_td)\(.*\)[ \t,]*)$/\/**INDENT-OFF**\/\n$1\n\/**INDENT-ON**\//;' \ -e 's/^(ASN1_ADB_TEMPLATE\(.*)$/\/**INDENT-OFF**\/\n$1\n\/**INDENT-ON**\//;' \ -e 's/^((ASN1|ADB)_.*_(end|END)\(.*[\){=,;]+[ \t]*)$/$1\n\/**INDENT-ON**\//;' \ |