Commit Graph

301014 Commits

Author SHA1 Message Date
christos 3778483fd3 Ignore EOF from remote. 2023-05-16 18:52:09 +00:00
riastradh 4f2595521a openssl: Limit armv8 stuff to aarch64.
Strictly speaking there is armv8 aarch32, e.g. AES instructions are
exposed to 32-bit mode, but OpenSSL's `*_armv8.S' files are staunchly
aarch64 and don't work when built for aarch64 32-bit compat libraries
(which could take advantage of armv8 instructions, but only if the
code is actually aarch32, which it isn't).

The armv8 stuff is still included in aarch64 /usr/lib/libcrypto, just
not in the 32-bit compat libraries.

With any luck, this will fix the aarch64 clang build (again).
2023-05-16 18:25:54 +00:00
rillig 6c7dba2d21 indent: directly access the input buffer
No functional change.
2023-05-16 13:26:26 +00:00
christos ae5e80608e OpenSSL entries are handled by NetBSD.dist.compat 2023-05-16 13:20:38 +00:00
rillig 032a64ad39 indent: allow comments in column 1 to be formatted 2023-05-16 12:46:43 +00:00
rillig 81c7fd789d indent: remove support for form feed characters inside a line
Form feeds are occasionally used to split code into pages, and this use
is still supported.  Having a form feed in the middle of a line is
exotic.
2023-05-16 11:32:01 +00:00
martin 6b1434d492 Simplify previous, from Riastradh 2023-05-16 09:52:30 +00:00
rillig db245c79a9 indent: remove blank between comment and parentheses or brackets
Finally, indent formats its own source code without messing up the
layout.
2023-05-16 08:22:11 +00:00
rillig c5b428c7c1 indent: fix handling of INDENT OFF/ON comments
Previously, the 'INDENT OFF' comments were interpreted when the newline
token from the line above the comment was processed, which was earlier
than could be reasonably expected.

The 'INDENT ON' comments were interpreted equally early, which led to
the situation that the 'INDENT OFF' comments were preserved literally
but the 'INDENT ON' comments weren't.
2023-05-16 08:04:03 +00:00
lukem c5af9e9a2f doc: MAKEVERBOSE support 2023-05-16 07:48:50 +00:00
rillig c73b132b15 indent: move parsing of 'INDENT OFF/ON' comments to the lexer
No functional change.
2023-05-16 07:13:05 +00:00
rillig a0b2b7f9f6 indent: clean up detection of whether parentheses form a cast
No functional change.
2023-05-15 22:52:21 +00:00
rillig 62cf6a24f7 indent: fix cast detection
In process_lparen_or_lbracket, ps.paren[...].maybe_cast was not
initialized, which may have been the cause for seemingly random spacing
around binary operators.

While here, clean up the code by reducing the number of accesses to the
parser state.
2023-05-15 22:35:41 +00:00
christos f7df41b2a4 fix typo 2023-05-15 21:55:26 +00:00
rillig 70c3f641d2 indent: fix detection of casts
A word followed by a '(' does not start a cast expression.
2023-05-15 21:51:45 +00:00
lukem c2a5a723f0 tools: if MAKEVERBOSE >=2, noisy automake builds
Explicitly build with V=1 for MAKEVERBOSE >= 2
so that Makefile.gnuhost (automake) consumers
are more consistent with native builds.

(If the upstream is using AM_SILENT_RULES(yes)
then the default is V=0).
2023-05-15 21:24:56 +00:00
christos bd01b1e6b8 add more OpenSSL-3.x 2023-05-15 21:13:07 +00:00
christos 62bc4070d8 add compat files 2023-05-15 21:12:11 +00:00
christos 98943f2f8c add riskv64 from Robert Swindells 2023-05-15 21:09:10 +00:00
andvar 48564e1bf4 +LRO Large Receive Offload, +RSC Receive Segment Coalescing (win counterpart)
PR 57408
2023-05-15 20:54:53 +00:00
rillig 62d29170f1 indent: fix type cast in function definition 2023-05-15 20:50:37 +00:00
rillig 4ebb9a565a indent: clean up local indentation profile
The -eei option now works, the type hints are no longer necessary.
2023-05-15 20:35:56 +00:00
rillig a59ea3192b indent: fix duplicate space between comment and binary operator 2023-05-15 20:30:20 +00:00
rillig 9b57bdf0e0 indent: format its own code, extend some comments
With manual corrections, as there are still some bugs left.

No functional change.
2023-05-15 20:12:28 +00:00
rillig 2aaa93dadf indent: fix line wrapping of comments to the right of code 2023-05-15 19:55:51 +00:00
christos ad56910fbe Add openssl files 2023-05-15 19:03:23 +00:00
christos 4ee2c276d4 add openssl files 2023-05-15 19:02:34 +00:00
rillig 219ccf6233 indent: improve type guessing, fix formatting of declarations 2023-05-15 18:22:40 +00:00
rillig 3357d7dc84 tests/indent: test type detection 2023-05-15 17:51:49 +00:00
rillig 2e1f799d6b indent: remove accidental space before tab 2023-05-15 17:38:56 +00:00
rillig 3842fd14e5 indent: remove backslash line continuation outside preprocessing
The indenter did not handle these backslashes well, interpreting them as
unary operators, and they are an edge case anyway.  Line continuations
in string literals and character constants are kept.
2023-05-15 17:28:14 +00:00
martin 89bee5e893 32bit sparc needs the atomic hack too 2023-05-15 17:06:05 +00:00
christos 9acd1c4e9e switch everyone to OpenSSL-3.x 2023-05-15 16:12:39 +00:00
christos 91acd0302c fix ppc, sh3 2023-05-15 16:12:03 +00:00
rillig c3a01c7bfa tests/indent: demonstrate wrong spacing after function prototype 2023-05-15 15:04:48 +00:00
rillig 6c38484f82 indent: fix spacing between function prototype and attributes 2023-05-15 14:55:47 +00:00
martin 741d15f3ae armv4 also needs the atomic hack 2023-05-15 14:27:29 +00:00
rillig c74302075d indent: fix indentation of struct member names 2023-05-15 14:12:03 +00:00
martin d4e0b3912e Fix armv5 2023-05-15 14:08:17 +00:00
christos a15acc0ca9 fix build 2023-05-15 14:04:38 +00:00
christos dc2384b526 fix mips 2023-05-15 13:54:12 +00:00
rillig 415b6afa14 tests/indent: demonstrate wrong indentation of struct members 2023-05-15 13:53:32 +00:00
rillig 9a3c1ba4c8 indent: indent multi-line conditions
No functional change.
2023-05-15 13:37:16 +00:00
rillig b33d7ae266 indent: fix indentation of statements after controlling expression 2023-05-15 13:33:19 +00:00
rillig 60722870c9 tests/indent: add another test for -eei -nlp 2023-05-15 13:28:05 +00:00
rillig 8bbe0ac207 indent: fix indentation of expressions in -nlp -eei mode 2023-05-15 12:59:43 +00:00
rillig 3801fbef33 tests/indent: test extra indentation with fixed continuation indentation 2023-05-15 12:11:07 +00:00
rillig 09166ed3ac indent: fix indentation of multi-line '?:' expressions in functions 2023-05-15 10:13:40 +00:00
rillig 0aeec855d0 indent: group parser state by topic
No functional change.
2023-05-15 09:53:32 +00:00
rillig c5f73abc75 indent: let indent format its own code
With manual corrections, as indent does not properly indent multi-line
'?:' expressions nor multi-line controlling expressions.
2023-05-15 09:22:53 +00:00