changeset 288:9471a8635489

fix regex at collection for data gears at generate_stub
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Tue, 04 Feb 2020 09:22:07 +0900
parents f0821818e3ed
children 7e4e7f864970
files src/gearsTools/generate_stub.pl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gearsTools/generate_stub.pl	Mon Feb 03 17:13:55 2020 +0900
+++ b/src/gearsTools/generate_stub.pl	Tue Feb 04 09:22:07 2020 +0900
@@ -141,7 +141,7 @@
         }
         if (/__code (\w+)/) {
             my $args = $';
-            while ($args =~ /((?:struct|union|const)\s+)?([\w\[\]_]+)\*?\s*(\w+),?/g) {
+            while ($args =~ /(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;