changeset 291:96fd8e1db32f

fix_gen_stub.pl
author anatofuz
date Tue, 04 Feb 2020 12:08:33 +0900
parents 63a65e3a5340
children 42a37a8a02c9
files src/gearsTools/generate_stub.pl src/interface/Stack.h
diffstat 2 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/gearsTools/generate_stub.pl	Tue Feb 04 11:57:39 2020 +0900
+++ b/src/gearsTools/generate_stub.pl	Tue Feb 04 12:08:33 2020 +0900
@@ -147,7 +147,7 @@
               my $ttype = $2;
               my $tname = $3;
 
-              $ttype =~ s/Impl/struct $name/;
+              $ttype =~ s/(Impl|Isa|Type)/Data/;
               if ($const_type eq 'const') {
                 $ttype = "const $ttype";
               }
--- a/src/interface/Stack.h	Tue Feb 04 11:57:39 2020 +0900
+++ b/src/interface/Stack.h	Tue Feb 04 12:08:33 2020 +0900
@@ -1,10 +1,4 @@
 typedef struct Stack<Type, Impl>{
-        union Data* stack;
-        union Data* data;
-        union Data* data1;
-        /* Type* stack; */
-        /* Type* data; */
-        /* Type* data1; */
         __code whenEmpty(...);
         __code clear(Impl* stack,__code next(...));
         __code push(Impl* stack,Type* data, __code next(...));