Commit 59ee1416a00db881cdd92755c6241170305e9ab6

Steffen Jaeckel 2019-10-27T15:48:38

fix `./helper.pl -d`

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/helper.pl b/helper.pl
index 134469d..cdab930 100755
--- a/helper.pl
+++ b/helper.pl
@@ -108,7 +108,7 @@ sub check_doc {
   my $fails = 0;
   my $tex = read_file('doc/bn.tex');
   my $tmh = read_file('tommath.h');
-  my @functions = $tmh =~ /\n\s*[a-zA-Z0-9_* ]+?(mp_[a-z0-9_]+)\s*\([^\)]+\)\s*;/sg;
+  my @functions = $tmh =~ /\n\s*[a-zA-Z0-9_* ]+?(mp_[a-z0-9_]+)\s*\([^\)]+\)\s*[MP_WUR]+?;/sg;
   my @macros    = $tmh =~ /\n\s*#define\s+([a-z0-9_]+)\s*\([^\)]+\)/sg;
   for my $n (sort @functions) {
     (my $nn = $n) =~ s/_/\\_/g; # mp_sub_d >> mp\_sub\_d