1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
$ perl generate_stub.pl --debug examples/pop_and_push/StackTest2Impl.cbc
[getDataGear] match 175 : #interface "StackTest2.h"
[getDataGear] match 137 : typedef struct StackTest2 <> {
[getDataGear] match 327 : __code insertTest1(Impl* stackTest2, struct Stack* stack, union Data* data1, __code next(...));
[getDataGear] match 327 : __code gotoOtherInterface(Impl* stackTest2, struct Stack* stack, union Data* data1, struct StackTest* stackTest, __code next(...));
[getDataGear] match 327 : __code next(...);
[getDataGear] match 309 : } StackTest2;
[getDataGear] match 336 : } StackTest2;
[getCodeGear] match 381 : typedef struct StackTest2 <> {
[getCodeGear] match 386 : __code insertTest1(Impl* stackTest2, struct Stack* stack, union Data* data1, __code next(...));
[getCodeGear] match 386 : __code gotoOtherInterface(Impl* stackTest2, struct Stack* stack, union Data* data1, struct StackTest* stackTest, __code next(...));
[getCodeGear] match 386 : __code next(...);
[getDataGear] match 153 : StackTest2* createStackTest2Impl(struct Context* context) {
[getDataGear] match 206 : __code insertTest1_StackTest2Impl(struct StackTest2Impl* stackTest2, struct Stack* stack, union Data* data1, __code next(...)) {
[getDataGear] match 244 : goto stack->push(data1, next);
[AUTOINCLUDE] Forget #interface 'Stack' declaration in examples/pop_and_push/StackTest2Impl.cbc at generate_stub.pl line 265.
[getDataGear] match 137 : typedef struct Stack<>{
[getDataGear] match 327 : __code clear(Impl* stack,__code next(...));
[getDataGear] match 327 : __code push(Impl* stack,union Data* data, __code next(...));
[getDataGear] match 327 : __code pop(Impl* stack, __code next(union Data* data, ...));
[getDataGear] match 327 : __code pop2(Impl* stack, __code next(union Data* data, union Data* data1, ...));
[getDataGear] match 327 : __code isEmpty(Impl* stack, __code next(...), __code whenEmpty(...));
[getDataGear] match 327 : __code get(Impl* stack, __code next(union Data* data, ...));
[getDataGear] match 327 : __code get2(Impl* stack, __code next(union Data* data, union Data* data1, ...));
[getDataGear] match 327 : __code next(...);
[getDataGear] match 327 : __code whenEmpty(...);
[getDataGear] match 309 : } Stack;
[getDataGear] match 336 : } Stack;
[getCodeGear] match 381 : typedef struct Stack<>{
[getCodeGear] match 386 : __code clear(Impl* stack,__code next(...));
[getCodeGear] match 386 : __code push(Impl* stack,union Data* data, __code next(...));
[getCodeGear] match 386 : __code pop(Impl* stack, __code next(union Data* data, ...));
[getCodeGear] match 386 : __code pop2(Impl* stack, __code next(union Data* data, union Data* data1, ...));
[getCodeGear] match 386 : __code isEmpty(Impl* stack, __code next(...), __code whenEmpty(...));
[getCodeGear] match 386 : __code get(Impl* stack, __code next(union Data* data, ...));
[getCodeGear] match 386 : __code get2(Impl* stack, __code next(union Data* data, union Data* data1, ...));
[getCodeGear] match 386 : __code next(...);
[getCodeGear] match 386 : __code whenEmpty(...);
[getDataGear] match 206 : __code gotoOtherInterface(struct StackTest2Impl* stackTest2, struct Stack* stack, union Data* data1, struct StackTest* stackTest, __code next(...)) {
[getDataGear] match 244 : goto stack->push(data1, stackTest->pop2Test);
[generateDataGear] match 655 : #include "../../../context.h"
[generateDataGear] match 650 : #interface "StackTest2.h"
[generateDataGear] match 783 :
[generateDataGear] match 783 : // ----
[generateDataGear] match 783 : // typedef struct StackTest2Impl <Self, Isa> impl StackTest2 {
[generateDataGear] match 783 : // __code next(...);
[generateDataGear] match 783 : // } StackTest2Impl;
[generateDataGear] match 783 : // ----
[generateDataGear] match 783 :
[generateDataGear] match 783 : StackTest2* createStackTest2Impl(struct Context* context) {
[generateDataGear] match 783 : struct StackTest2* stackTest2 = new StackTest2();
[generateDataGear] match 783 : struct StackTest2Impl* stack_test2impl = new StackTest2Impl();
[generateDataGear] match 783 : stackTest2->stackTest2 = (union Data*)stack_test2impl;
[generateDataGear] match 783 : stackTest2->insertTest1 = C_insertTest1_StackTest2Impl;
[generateDataGear] match 783 : return stackTest2;
[generateDataGear] match 783 : }
[generateDataGear] match 783 :
[generateDataGear] match 674 : __code insertTest1_StackTest2Impl(struct StackTest2Impl* stackTest2, struct Stack* stack, union Data* data1, __code next(...)) {
[generateDataGear] match 788 : goto stack->push(data1, next);
[generateDataGear] match 1030 : }
[generateDataGear] match 1054 : }
[generateDataGear] match 783 :
[generateDataGear] match 674 : __code gotoOtherInterface(struct StackTest2Impl* stackTest2, struct Stack* stack, union Data* data1, struct StackTest* stackTest, __code next(...)) {
[generateDataGear] match 788 : goto stack->push(data1, stackTest->pop2Test);
[generateDataGear] match 1030 : }
[generateDataGear] match 1054 : }
[generateDataGear] match 783 :
[generateDataGear] match 783 :
|