summaryrefslogtreecommitdiffstats
path: root/libtommath/helper.pl
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-06 09:29:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-11-06 09:29:29 (GMT)
commitb556c1feccfb6f7985b80cc4fc906ab529ea6f01 (patch)
tree66db9ef38b76d1ece747c6aeb3a66f3cc14a2008 /libtommath/helper.pl
parent5de6de238c22b38eeb14f95962c4cccebe7f7a51 (diff)
downloadtcl-b556c1feccfb6f7985b80cc4fc906ab529ea6f01.zip
tcl-b556c1feccfb6f7985b80cc4fc906ab529ea6f01.tar.gz
tcl-b556c1feccfb6f7985b80cc4fc906ab529ea6f01.tar.bz2
A few post-1.2.0 commits, extracted from support/1.x branch
Diffstat (limited to 'libtommath/helper.pl')
-rwxr-xr-xlibtommath/helper.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtommath/helper.pl b/libtommath/helper.pl
index e60c1a7..c624b7c 100755
--- a/libtommath/helper.pl
+++ b/libtommath/helper.pl
@@ -51,7 +51,7 @@ sub check_source {
push @{$troubles->{tab}}, $lineno if $l =~ /\t/ && basename($file) !~ /^makefile/i;
push @{$troubles->{non_ascii_char}}, $lineno if $l =~ /[^[:ascii:]]/;
push @{$troubles->{cpp_comment}}, $lineno if $file =~ /\.(c|h)$/ && ($l =~ /\s\/\// || $l =~ /\/\/\s/);
- # we prefer using XMALLOC, XFREE, XREALLOC, XCALLOC ...
+ # we prefer using MP_MALLOC, MP_FREE, MP_REALLOC, MP_CALLOC ...
push @{$troubles->{unwanted_malloc}}, $lineno if $file =~ /^[^\/]+\.c$/ && $l =~ /\bmalloc\s*\(/;
push @{$troubles->{unwanted_realloc}}, $lineno if $file =~ /^[^\/]+\.c$/ && $l =~ /\brealloc\s*\(/;
push @{$troubles->{unwanted_calloc}}, $lineno if $file =~ /^[^\/]+\.c$/ && $l =~ /\bcalloc\s*\(/;