diff src/gearsTools/generate_stub.pl @ 290:63a65e3a5340

tweak_regex...
author anatofuz
date Tue, 04 Feb 2020 11:57:39 +0900
parents 9471a8635489
children 96fd8e1db32f
line wrap: on
line diff
--- a/src/gearsTools/generate_stub.pl	Tue Feb 04 11:35:37 2020 +0900
+++ b/src/gearsTools/generate_stub.pl	Tue Feb 04 11:57:39 2020 +0900
@@ -141,7 +141,7 @@
         }
         if (/__code (\w+)/) {
             my $args = $';
-            while ($args =~ /(struct|union|const)?\s*([\w\[\]_]+)\*?\s*(\w+),?/g) {
+            while ($args =~ /\s*(struct|union|const)?\s*([\w\[\]_]+)\*?\s*(\w+),?/g) {
               #$args eq  (Impl* vm, pde_t* pgdir, char* init, uint sz, __code next(...));
               my $const_type = $1;
               my $ttype = $2;