Two minor tweaks that are useful for processing bio.h, among other headers:
authorschwarze <schwarze@openbsd.org>
Fri, 7 Apr 2023 15:39:18 +0000 (15:39 +0000)
committerschwarze <schwarze@openbsd.org>
Fri, 7 Apr 2023 15:39:18 +0000 (15:39 +0000)
* ignore lines defining "__bounded__()"
* ignore whitespace between "#" and "include"

regress/lib/libcrypto/man/check_complete.pl

index 26fb565..af99d2d 100755 (executable)
@@ -217,11 +217,12 @@ try_again:
        if (/^\s*$/ ||
            /^DECLARE_STACK_OF\(\w+\)$/ ||
            /^TYPEDEF_D2I2D_OF\(\w+\);$/ ||
+           /^#define __bounded__\(\w+, \w+, \w+\)$/ ||
            /^#define HEADER_\w+_H$/ ||
            /^#endif$/ ||
            /^#else$/ ||
            /^extern\s+const\s+ASN1_ITEM\s+\w+_it;$/ ||
-           /^#include\s/ ||
+           /^#\s*include\s/ ||
            /^#ifn?def\s/ ||
            /^#if !?defined/ ||
            /^#undef\s+BN_LLONG$/) {