diff options
| author | inoguchi <> | 2021-05-14 10:50:55 +0000 |
|---|---|---|
| committer | inoguchi <> | 2021-05-14 10:50:55 +0000 |
| commit | d3d3fbcdba5ed79744bf21d05ef7c18014c3b4ac (patch) | |
| tree | e8849c4a4ce0edd1329db14013e0ecdde01517ba /src | |
| parent | d785caaf83045ce40b8c18ddc01062d221476174 (diff) | |
| download | openbsd-d3d3fbcdba5ed79744bf21d05ef7c18014c3b4ac.tar.gz openbsd-d3d3fbcdba5ed79744bf21d05ef7c18014c3b4ac.tar.bz2 openbsd-d3d3fbcdba5ed79744bf21d05ef7c18014c3b4ac.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 | { |
