diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-22 13:26:30 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-22 13:26:30 (GMT) |
commit | 3a1186689ae598d16a020a42844658ff57f62ff0 (patch) | |
tree | 16f4ae8dea27397fe9464df3a351983e9af99833 /libtommath/helper.pl | |
parent | 9c4252f295a2a05838cd0549ba51150943fab3dd (diff) | |
parent | 44bc67ccd6e74dea369f724743f77f047fa12edb (diff) | |
download | tcl-3a1186689ae598d16a020a42844658ff57f62ff0.zip tcl-3a1186689ae598d16a020a42844658ff57f62ff0.tar.gz tcl-3a1186689ae598d16a020a42844658ff57f62ff0.tar.bz2 |
Merge 8.7, and update to latest libtommath (support/1.x branch)
Diffstat (limited to 'libtommath/helper.pl')
-rwxr-xr-x | libtommath/helper.pl | 2 |
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*\(/; |