diff options
Diffstat (limited to 'src/lib/libcrypto/util/mkerr.pl')
-rw-r--r-- | src/lib/libcrypto/util/mkerr.pl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libcrypto/util/mkerr.pl b/src/lib/libcrypto/util/mkerr.pl index 4105047b21..1b2915c767 100644 --- a/src/lib/libcrypto/util/mkerr.pl +++ b/src/lib/libcrypto/util/mkerr.pl | |||
@@ -132,16 +132,16 @@ while (($hdr, $lib) = each %libinc) | |||
132 | my $name = $1; | 132 | my $name = $1; |
133 | $name =~ tr/[a-z]/[A-Z]/; | 133 | $name =~ tr/[a-z]/[A-Z]/; |
134 | $ftrans{$name} = $1; | 134 | $ftrans{$name} = $1; |
135 | } elsif (/\w+\W+(\w+)\W*\(\s*\)$/s){ | 135 | } elsif (/\w+\W+(\w+)\W*\(\s*\)(\s*__attribute__\(.*\)\s*)?$/s){ |
136 | # K&R C | 136 | # K&R C |
137 | next ; | 137 | next ; |
138 | } elsif (/\w+\W+\w+\W*\(.*\)$/s) { | 138 | } elsif (/\w+\W+\w+\W*\(.*\)(\s*__attribute__\(.*\)\s*)?$/s) { |
139 | while (not /\(\)$/s) { | 139 | while (not /\(\)(\s*__attribute__\(.*\)\s*)?$/s) { |
140 | s/[^\(\)]*\)$/\)/s; | 140 | s/[^\(\)]*\)(\s*__attribute__\(.*\)\s*)?$/\)/s; |
141 | s/\([^\(\)]*\)\)$/\)/s; | 141 | s/\([^\(\)]*\)\)(\s*__attribute__\(.*\)\s*)?$/\)/s; |
142 | } | 142 | } |
143 | s/\(void\)//; | 143 | s/\(void\)//; |
144 | /(\w+)\W*\(\)/s; | 144 | /(\w+(\{[0-9]+\})?)\W*\(\)/s; |
145 | my $name = $1; | 145 | my $name = $1; |
146 | $name =~ tr/[a-z]/[A-Z]/; | 146 | $name =~ tr/[a-z]/[A-Z]/; |
147 | $ftrans{$name} = $1; | 147 | $ftrans{$name} = $1; |
@@ -262,7 +262,7 @@ foreach $lib (keys %csrc) | |||
262 | } else { | 262 | } else { |
263 | push @out, | 263 | push @out, |
264 | "/* ====================================================================\n", | 264 | "/* ====================================================================\n", |
265 | " * Copyright (c) 2001-2002 The OpenSSL Project. All rights reserved.\n", | 265 | " * Copyright (c) 2001-2003 The OpenSSL Project. All rights reserved.\n", |
266 | " *\n", | 266 | " *\n", |
267 | " * Redistribution and use in source and binary forms, with or without\n", | 267 | " * Redistribution and use in source and binary forms, with or without\n", |
268 | " * modification, are permitted provided that the following conditions\n", | 268 | " * modification, are permitted provided that the following conditions\n", |
@@ -404,7 +404,7 @@ EOF | |||
404 | print OUT <<"EOF"; | 404 | print OUT <<"EOF"; |
405 | /* $cfile */ | 405 | /* $cfile */ |
406 | /* ==================================================================== | 406 | /* ==================================================================== |
407 | * Copyright (c) 1999-2002 The OpenSSL Project. All rights reserved. | 407 | * Copyright (c) 1999-2003 The OpenSSL Project. All rights reserved. |
408 | * | 408 | * |
409 | * Redistribution and use in source and binary forms, with or without | 409 | * Redistribution and use in source and binary forms, with or without |
410 | * modification, are permitted provided that the following conditions | 410 | * modification, are permitted provided that the following conditions |