• Home
  • Raw
  • Download

Lines Matching full:indent

12 # - format source tree according to OpenSSL coding style using indent
17 # note: the indent options assume GNU indent v2.2.10 which was released
18 # Feb-2009 so if you have an older indent the options may not
22 # the reformatting has been completed as marking a block causes indent to
32 INDENT=indent
33 uname -s | grep BSD > /dev/null && type gindent > /dev/null 2>&1 && INDENT=gindent
48 # our own indent profile, which is at a well known location
49 INDENT_PROFILE="$HERE/indent.pro"
52 echo "$0: unable to locate the openssl indent.pro file" >&2
98 tmp=$(mktemp /tmp/indent.XXXXXX)
102 # the list of files that indent is unable to handle correctly
109 # we have to mark single line comments as /*- ...*/ to stop indent
110 # messing with them, run expand then indent as usual but with the
112 # finally re-run indent without process-comments so the marked-to-
114 # into the right position within the code as indent leaves marked
120 …\n#[ \t]*ifdef[ \t]+__cplusplus\n[^\n]*\n#[ \t]*endif\n)/\n\/**INDENT-OFF**\/$1\/**INDENT-ON**\/\n…
125 …\t]*$/my ($x1,$x2) = ($1, $2); if (length("$x1$x2")<75 && $x2 !~ m#^\s*\*INDENT-(ON|OFF)\*\s*$#) {…
127 -e 's/^((DECLARE|IMPLEMENT)_.*)$/\/**INDENT-OFF**\/\n$1\n\/**INDENT-ON**\//;' \
128 … \t]*(make_dh|make_dh_bn|make_rfc5114_td)\(.*\)[ \t,]*)$/\/**INDENT-OFF**\/\n$1\n\/**INDENT-ON**\/…
129 -e 's/^(ASN1_ADB_TEMPLATE\(.*)$/\/**INDENT-OFF**\/\n$1\n\/**INDENT-ON**\//;' \
130 -e 's/^((ASN1|ADB)_.*_(end|END)\(.*[\){=,;]+[ \t]*)$/$1\n\/**INDENT-ON**\//;' \
131 …M_ref|ITEM_ptr|ITEM_rptr|PCTX)/ || s/^((ASN1|ADB)_[^\*]*[){=,]+[ \t]*)$/\/**INDENT-OFF**\/\n$1/;' \
132 -e 's/^(} (ASN1|ADB)_[^\*]*[\){=,;]+)$/$1\n\/**INDENT-ON**\//;' \
134 $DEBUG $INDENT $INDENT_ARGS | \
138 | $INDENT | \
140 -e 's/\/\*\*INDENT-(ON|OFF)\*\*\/\n//g;' \
147 expand "$j" | $INDENT $INDENT_ARGS > "$tmp"