diff options
author | inoguchi <> | 2021-05-14 10:50:55 +0000 |
---|---|---|
committer | inoguchi <> | 2021-05-14 10:50:55 +0000 |
commit | 2979016a711eb6b14fbb8d36ef422d4925ad4b5b (patch) | |
tree | e8849c4a4ce0edd1329db14013e0ecdde01517ba /src | |
parent | cdc6778efe772b7cbe1a2e0c1bd1ba204df493fd (diff) | |
download | openbsd-2979016a711eb6b14fbb8d36ef422d4925ad4b5b.tar.gz openbsd-2979016a711eb6b14fbb8d36ef422d4925ad4b5b.tar.bz2 openbsd-2979016a711eb6b14fbb8d36ef422d4925ad4b5b.zip |
Improve libcrypto obj_xref.h generator
Modify objxref.pl to output $OpenBSD$ header and
__BEGIN_HIDDEN_DECLS / __END_HIDDEN_DECLS .
ok and comment from tb@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/objects/objxref.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/libcrypto/objects/objxref.pl b/src/lib/libcrypto/objects/objxref.pl index 731d3ae22c..8873c91ad9 100644 --- a/src/lib/libcrypto/objects/objxref.pl +++ b/src/lib/libcrypto/objects/objxref.pl | |||
@@ -60,8 +60,11 @@ my $pname = $0; | |||
60 | $pname =~ s|^.[^/]/||; | 60 | $pname =~ s|^.[^/]/||; |
61 | 61 | ||
62 | print <<EOF; | 62 | print <<EOF; |
63 | /* \$OpenBSD\$ */ | ||
63 | /* AUTOGENERATED BY $pname, DO NOT EDIT */ | 64 | /* AUTOGENERATED BY $pname, DO NOT EDIT */ |
64 | 65 | ||
66 | __BEGIN_HIDDEN_DECLS | ||
67 | |||
65 | typedef struct | 68 | typedef struct |
66 | { | 69 | { |
67 | int sign_id; | 70 | int sign_id; |
@@ -95,6 +98,7 @@ foreach (@srt2) | |||
95 | } | 98 | } |
96 | 99 | ||
97 | print "\t};\n\n"; | 100 | print "\t};\n\n"; |
101 | print "__END_HIDDEN_DECLS\n"; | ||
98 | 102 | ||
99 | sub check_oid | 103 | sub check_oid |
100 | { | 104 | { |