The Great Renaming
A simple execution of tmp/invoke-rename.pl
diff --git a/scripts/malloc-init.pl b/scripts/malloc-init.pl
index 1fa1cf3..b7d6fcf 100755
--- a/scripts/malloc-init.pl
+++ b/scripts/malloc-init.pl
@@ -48,13 +48,13 @@
open my $fh, "<", $file or die "read $file failed: $!\n";
while (<$fh>)
{
- if( /polarssl_malloc\(/ ) {
- if( /$id\s*=.*polarssl_malloc\(/ ) {
+ if( /mbedtls_malloc\(/ ) {
+ if( /$id\s*=.*mbedtls_malloc\(/ ) {
push @bad, "$file:$line:$name" if $name;
$name = $1;
$line = $.;
} else {
- push @bad, "$file:$.:???" unless /return polarssl_malloc/;
+ push @bad, "$file:$.:???" unless /return mbedtls_malloc/;
}
} elsif( $name && /(?:$inits)\($prefix\Q$name\E\b/ ) {
undef $name;