artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e55139
)
Improve libcrypto obj_xref.h generator
author
inoguchi
<inoguchi@openbsd.org>
Fri, 14 May 2021 10:50:55 +0000
(10:50 +0000)
committer
inoguchi
<inoguchi@openbsd.org>
Fri, 14 May 2021 10:50:55 +0000
(10:50 +0000)
Modify objxref.pl to output $OpenBSD$ header and
__BEGIN_HIDDEN_DECLS / __END_HIDDEN_DECLS .
ok and comment from tb@
lib/libcrypto/objects/objxref.pl
patch
|
blob
|
history
diff --git
a/lib/libcrypto/objects/objxref.pl
b/lib/libcrypto/objects/objxref.pl
index
731d3ae
..
8873c91
100644
(file)
--- a/
lib/libcrypto/objects/objxref.pl
+++ b/
lib/libcrypto/objects/objxref.pl
@@
-60,8
+60,11
@@
my $pname = $0;
$pname =~ s|^.[^/]/||;
print <<EOF;
+/* \$OpenBSD\$ */
/* AUTOGENERATED BY $pname, DO NOT EDIT */
+__BEGIN_HIDDEN_DECLS
+
typedef struct
{
int sign_id;
@@
-95,6
+98,7
@@
foreach (@srt2)
}
print "\t};\n\n";
+print "__END_HIDDEN_DECLS\n";
sub check_oid
{