Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Christian Butz
VTK
Commits
ea154ba5
Commit
ea154ba5
authored
May 24, 2010
by
David Gobbi
Committed by
Marcus D. Hanwell
Jun 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: again, a bit of C++ code in a C file
parent
76aa80ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
103 additions
and
97 deletions
+103
-97
Wrapping/vtkParse.tab.c
Wrapping/vtkParse.tab.c
+97
-94
Wrapping/vtkParse.y
Wrapping/vtkParse.y
+6
-3
No files found.
Wrapping/vtkParse.tab.c
View file @
ea154ba5
...
...
@@ -1128,20 +1128,20 @@ static const yytype_uint16 yyrline[] =
1061
,
1060
,
1069
,
1070
,
1071
,
1072
,
1074
,
1075
,
1076
,
1078
,
1079
,
1081
,
1082
,
1083
,
1084
,
1085
,
1086
,
1089
,
1089
,
1100
,
1101
,
1101
,
1100
,
1110
,
1110
,
1121
,
1121
,
1131
,
1131
,
1131
,
116
5
,
116
4
,
117
6
,
117
7
,
117
7
,
117
6
,
118
6
,
120
4
,
120
4
,
120
9
,
120
9
,
121
4
,
121
4
,
12
19
,
12
19
,
122
4
,
122
4
,
12
29
,
12
29
,
123
4
,
123
4
,
12
39
,
12
39
,
124
4
,
124
4
,
126
0
,
126
0
,
127
6
,
132
6
,
138
0
,
143
1
,
14
8
9
,
149
0
,
149
1
,
149
2
,
149
3
,
149
5
,
149
6
,
149
6
,
1
497
,
1
497
,
1
498
,
1
498
,
1
499
,
1
499
,
150
0
,
150
0
,
150
1
,
150
1
,
150
2
,
1503
,
1504
,
1505
,
1506
,
1507
,
1508
,
1509
,
1510
,
1511
,
1512
,
1513
,
1514
,
1515
,
1516
,
1517
,
1518
,
1519
,
1520
,
1521
,
1522
,
152
3
,
152
4
,
152
5
,
152
6
,
15
27
,
15
28
,
153
4
,
15
39
,
15
39
,
154
0
,
154
0
,
154
1
,
154
1
,
154
3
,
154
3
,
154
3
,
154
5
,
154
5
,
154
5
,
15
47
,
15
47
,
15
47
,
15
47
,
15
48
,
15
48
,
15
48
,
15
48
,
15
48
,
15
49
,
15
49
,
15
49
,
15
49
,
155
0
,
155
0
,
155
0
,
155
0
,
155
0
,
155
1
,
155
1
,
155
1
,
155
1
,
155
1
,
155
1
,
155
1
,
155
2
,
155
2
,
155
2
,
155
2
,
155
2
,
155
2
,
155
3
,
155
3
,
155
3
,
155
5
,
155
6
,
15
57
,
15
58
,
15
59
,
156
0
,
156
2
,
156
2
,
156
3
116
6
,
116
5
,
117
7
,
117
8
,
117
8
,
117
7
,
118
7
,
120
5
,
120
5
,
12
1
0
,
12
1
0
,
121
5
,
121
5
,
12
20
,
12
20
,
122
5
,
122
5
,
12
30
,
12
30
,
123
5
,
123
5
,
12
40
,
12
40
,
124
5
,
124
5
,
126
2
,
126
2
,
127
9
,
132
9
,
138
3
,
143
4
,
149
2
,
149
3
,
149
4
,
149
5
,
149
6
,
149
8
,
149
9
,
149
9
,
1
500
,
1
500
,
1
501
,
1
501
,
1
502
,
1
502
,
150
3
,
150
3
,
150
4
,
150
4
,
150
5
,
1506
,
1507
,
1508
,
1509
,
1510
,
1511
,
1512
,
1513
,
1514
,
1515
,
1516
,
1517
,
1518
,
1519
,
1520
,
1521
,
1522
,
1523
,
1524
,
1525
,
152
6
,
152
7
,
152
8
,
152
9
,
15
30
,
15
31
,
153
7
,
15
42
,
15
42
,
154
3
,
154
3
,
154
4
,
154
4
,
154
6
,
154
6
,
154
6
,
154
8
,
154
8
,
154
8
,
15
50
,
15
50
,
15
50
,
15
50
,
15
51
,
15
51
,
15
51
,
15
51
,
15
51
,
15
52
,
15
52
,
15
52
,
15
52
,
155
3
,
155
3
,
155
3
,
155
3
,
155
3
,
155
4
,
155
4
,
155
4
,
155
4
,
155
4
,
155
4
,
155
4
,
155
5
,
155
5
,
155
5
,
155
5
,
155
5
,
155
5
,
155
6
,
155
6
,
155
6
,
155
8
,
155
9
,
15
60
,
15
61
,
15
62
,
156
3
,
156
5
,
156
5
,
156
6
};
#endif
...
...
@@ -4433,8 +4433,9 @@ yyreduce:
/* Line 1455 of yacc.c */
#line 1133 "vtkParse.y"
{
char
*
local
;
chopSig
();
char
*
local
=
vtkstrdup
(
copySig
());
local
=
vtkstrdup
(
copySig
());
sprintf
(
currentFunction
->
Signature
,
"void Set%s(%s);"
,(
yyvsp
[(
3
)
-
(
10
)].
str
),
local
);
sprintf
(
temps
,
"Set%s"
,(
yyvsp
[(
3
)
-
(
10
)].
str
));
currentFunction
->
Name
=
vtkstrdup
(
temps
);
...
...
@@ -4468,14 +4469,14 @@ yyreduce:
case
310
:
/* Line 1455 of yacc.c */
#line 116
5
"vtkParse.y"
#line 116
6
"vtkParse.y"
{
preSig
(
"void Set"
);
postSig
(
"("
);
}
break
;
case
311
:
/* Line 1455 of yacc.c */
#line 116
6
"vtkParse.y"
#line 116
7
"vtkParse.y"
{
postSig
(
"*);"
);
sprintf
(
temps
,
"Set%s"
,(
yyvsp
[(
3
)
-
(
7
)].
str
));
...
...
@@ -4491,28 +4492,28 @@ yyreduce:
case
312
:
/* Line 1455 of yacc.c */
#line 117
6
"vtkParse.y"
#line 117
7
"vtkParse.y"
{
postSig
(
"*Get"
);}
break
;
case
313
:
/* Line 1455 of yacc.c */
#line 117
7
"vtkParse.y"
#line 117
8
"vtkParse.y"
{
markSig
();}
break
;
case
314
:
/* Line 1455 of yacc.c */
#line 117
7
"vtkParse.y"
#line 117
8
"vtkParse.y"
{
swapSig
();}
break
;
case
315
:
/* Line 1455 of yacc.c */
#line 117
8
"vtkParse.y"
#line 117
9
"vtkParse.y"
{
postSig
(
"();"
);
sprintf
(
temps
,
"Get%s"
,(
yyvsp
[(
4
)
-
(
9
)].
str
));
...
...
@@ -4526,7 +4527,7 @@ yyreduce:
case
316
:
/* Line 1455 of yacc.c */
#line 118
7
"vtkParse.y"
#line 118
8
"vtkParse.y"
{
sprintf
(
temps
,
"%sOn"
,(
yyvsp
[(
3
)
-
(
6
)].
str
));
currentFunction
->
Name
=
vtkstrdup
(
temps
);
...
...
@@ -4549,14 +4550,14 @@ yyreduce:
case
317
:
/* Line 1455 of yacc.c */
#line 120
4
"vtkParse.y"
#line 120
5
"vtkParse.y"
{
delSig
();
markSig
();}
break
;
case
318
:
/* Line 1455 of yacc.c */
#line 120
5
"vtkParse.y"
#line 120
6
"vtkParse.y"
{
chopSig
();
outputSetVectorMacro
((
yyvsp
[(
3
)
-
(
7
)].
str
),
(
yyvsp
[(
6
)
-
(
7
)].
integer
),
copySig
(),
2
);
...
...
@@ -4566,14 +4567,14 @@ yyreduce:
case
319
:
/* Line 1455 of yacc.c */
#line 120
9
"vtkParse.y"
#line 12
1
0 "vtkParse.y"
{
delSig
();
markSig
();}
break
;
case
320
:
/* Line 1455 of yacc.c */
#line 121
0
"vtkParse.y"
#line 121
1
"vtkParse.y"
{
chopSig
();
outputGetVectorMacro
((
yyvsp
[(
3
)
-
(
7
)].
str
),
(
yyvsp
[(
6
)
-
(
7
)].
integer
),
copySig
(),
2
);
...
...
@@ -4583,14 +4584,14 @@ yyreduce:
case
321
:
/* Line 1455 of yacc.c */
#line 121
4
"vtkParse.y"
#line 121
5
"vtkParse.y"
{
delSig
();
markSig
();}
break
;
case
322
:
/* Line 1455 of yacc.c */
#line 121
5
"vtkParse.y"
#line 121
6
"vtkParse.y"
{
chopSig
();
outputSetVectorMacro
((
yyvsp
[(
3
)
-
(
7
)].
str
),
(
yyvsp
[(
6
)
-
(
7
)].
integer
),
copySig
(),
3
);
...
...
@@ -4600,14 +4601,14 @@ yyreduce:
case
323
:
/* Line 1455 of yacc.c */
#line 12
19
"vtkParse.y"
#line 12
20
"vtkParse.y"
{
delSig
();
markSig
();}
break
;
case
324
:
/* Line 1455 of yacc.c */
#line 122
0
"vtkParse.y"
#line 122
1
"vtkParse.y"
{
chopSig
();
outputGetVectorMacro
((
yyvsp
[(
3
)
-
(
7
)].
str
),
(
yyvsp
[(
6
)
-
(
7
)].
integer
),
copySig
(),
3
);
...
...
@@ -4617,14 +4618,14 @@ yyreduce:
case
325
:
/* Line 1455 of yacc.c */
#line 122
4
"vtkParse.y"
#line 122
5
"vtkParse.y"
{
delSig
();
markSig
();}
break
;
case
326
:
/* Line 1455 of yacc.c */
#line 122
5
"vtkParse.y"
#line 122
6
"vtkParse.y"
{
chopSig
();
outputSetVectorMacro
((
yyvsp
[(
3
)
-
(
7
)].
str
),
(
yyvsp
[(
6
)
-
(
7
)].
integer
),
copySig
(),
4
);
...
...
@@ -4634,14 +4635,14 @@ yyreduce:
case
327
:
/* Line 1455 of yacc.c */
#line 12
29
"vtkParse.y"
#line 12
30
"vtkParse.y"
{
delSig
();
markSig
();}
break
;
case
328
:
/* Line 1455 of yacc.c */
#line 123
0
"vtkParse.y"
#line 123
1
"vtkParse.y"
{
chopSig
();
outputGetVectorMacro
((
yyvsp
[(
3
)
-
(
7
)].
str
),
(
yyvsp
[(
6
)
-
(
7
)].
integer
),
copySig
(),
4
);
...
...
@@ -4651,14 +4652,14 @@ yyreduce:
case
329
:
/* Line 1455 of yacc.c */
#line 123
4
"vtkParse.y"
#line 123
5
"vtkParse.y"
{
delSig
();
markSig
();}
break
;
case
330
:
/* Line 1455 of yacc.c */
#line 123
5
"vtkParse.y"
#line 123
6
"vtkParse.y"
{
chopSig
();
outputSetVectorMacro
((
yyvsp
[(
3
)
-
(
7
)].
str
),
(
yyvsp
[(
6
)
-
(
7
)].
integer
),
copySig
(),
6
);
...
...
@@ -4668,14 +4669,14 @@ yyreduce:
case
331
:
/* Line 1455 of yacc.c */
#line 12
39
"vtkParse.y"
#line 12
40
"vtkParse.y"
{
delSig
();
markSig
();}
break
;
case
332
:
/* Line 1455 of yacc.c */
#line 124
0
"vtkParse.y"
#line 124
1
"vtkParse.y"
{
chopSig
();
outputGetVectorMacro
((
yyvsp
[(
3
)
-
(
7
)].
str
),
(
yyvsp
[(
6
)
-
(
7
)].
integer
),
copySig
(),
6
);
...
...
@@ -4685,17 +4686,18 @@ yyreduce:
case
333
:
/* Line 1455 of yacc.c */
#line 124
4
"vtkParse.y"
#line 124
5
"vtkParse.y"
{
delSig
();
markSig
();}
break
;
case
334
:
/* Line 1455 of yacc.c */
#line 124
6
"vtkParse.y"
#line 124
7
"vtkParse.y"
{
char
*
local
;
chopSig
();
char
*
local
=
vtkstrdup
(
copySig
());
local
=
vtkstrdup
(
copySig
());
sprintf
(
currentFunction
->
Signature
,
"void Set%s(%s a[%s]);"
,
(
yyvsp
[(
3
)
-
(
9
)].
str
),
local
,
(
yyvsp
[(
8
)
-
(
9
)].
str
));
sprintf
(
temps
,
"Set%s"
,(
yyvsp
[(
3
)
-
(
9
)].
str
));
...
...
@@ -4712,17 +4714,18 @@ yyreduce:
case
335
:
/* Line 1455 of yacc.c */
#line 126
0
"vtkParse.y"
#line 126
2
"vtkParse.y"
{
delSig
();
markSig
();}
break
;
case
336
:
/* Line 1455 of yacc.c */
#line 126
2
"vtkParse.y"
#line 126
4
"vtkParse.y"
{
char
*
local
;
chopSig
();
char
*
local
=
vtkstrdup
(
copySig
());
local
=
vtkstrdup
(
copySig
());
sprintf
(
currentFunction
->
Signature
,
"%s *Get%s();"
,
local
,
(
yyvsp
[(
3
)
-
(
9
)].
str
));
sprintf
(
temps
,
"Get%s"
,(
yyvsp
[(
3
)
-
(
9
)].
str
));
currentFunction
->
Name
=
vtkstrdup
(
temps
);
...
...
@@ -4739,7 +4742,7 @@ yyreduce:
case
337
:
/* Line 1455 of yacc.c */
#line 12
77
"vtkParse.y"
#line 12
80
"vtkParse.y"
{
sprintf
(
currentFunction
->
Signature
,
"vtkCoordinate *Get%sCoordinate();"
,
(
yyvsp
[(
3
)
-
(
4
)].
str
));
...
...
@@ -4794,7 +4797,7 @@ yyreduce:
case
338
:
/* Line 1455 of yacc.c */
#line 13
27
"vtkParse.y"
#line 13
30
"vtkParse.y"
{
sprintf
(
currentFunction
->
Signature
,
"vtkCoordinate *Get%sCoordinate();"
,
(
yyvsp
[(
3
)
-
(
4
)].
str
));
...
...
@@ -4853,7 +4856,7 @@ yyreduce:
case
339
:
/* Line 1455 of yacc.c */
#line 138
1
"vtkParse.y"
#line 138
4
"vtkParse.y"
{
currentFunction
->
Signature
=
(
char
*
)
malloc
(
2048
);
sigAllocatedLength
=
2048
;
...
...
@@ -4909,7 +4912,7 @@ yyreduce:
case
340
:
/* Line 1455 of yacc.c */
#line 143
2
"vtkParse.y"
#line 143
5
"vtkParse.y"
{
currentFunction
->
Signature
=
(
char
*
)
malloc
(
2048
);
sigAllocatedLength
=
2048
;
...
...
@@ -4966,315 +4969,315 @@ yyreduce:
case
341
:
/* Line 1455 of yacc.c */
#line 14
8
9 "vtkParse.y"
#line 149
2
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator()"
;
}
break
;
case
342
:
/* Line 1455 of yacc.c */
#line 149
0
"vtkParse.y"
#line 149
3
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator[]"
;
}
break
;
case
343
:
/* Line 1455 of yacc.c */
#line 149
1
"vtkParse.y"
#line 149
4
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator new[]"
;
}
break
;
case
344
:
/* Line 1455 of yacc.c */
#line 149
2
"vtkParse.y"
#line 149
5
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator delete[]"
;
}
break
;
case
346
:
/* Line 1455 of yacc.c */
#line 149
5
"vtkParse.y"
#line 149
8
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator="
;
}
break
;
case
347
:
/* Line 1455 of yacc.c */
#line 149
6
"vtkParse.y"
#line 149
9
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator*"
;
}
break
;
case
348
:
/* Line 1455 of yacc.c */
#line 149
6
"vtkParse.y"
#line 149
9
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator/"
;
}
break
;
case
349
:
/* Line 1455 of yacc.c */
#line 1
497
"vtkParse.y"
#line 1
500
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator-"
;
}
break
;
case
350
:
/* Line 1455 of yacc.c */
#line 1
497
"vtkParse.y"
#line 1
500
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator+"
;
}
break
;
case
351
:
/* Line 1455 of yacc.c */
#line 1
498
"vtkParse.y"
#line 1
501
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator!"
;
}
break
;
case
352
:
/* Line 1455 of yacc.c */
#line 1
498
"vtkParse.y"
#line 1
501
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator~"
;
}
break
;
case
353
:
/* Line 1455 of yacc.c */
#line 1
499
"vtkParse.y"
#line 1
502
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator,"
;
}
break
;
case
354
:
/* Line 1455 of yacc.c */
#line 1
499
"vtkParse.y"
#line 1
502
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator<"
;
}
break
;
case
355
:
/* Line 1455 of yacc.c */
#line 150
0
"vtkParse.y"
#line 150
3
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator>"
;
}
break
;
case
356
:
/* Line 1455 of yacc.c */
#line 150
0
"vtkParse.y"
#line 150
3
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator&"
;
}
break
;
case
357
:
/* Line 1455 of yacc.c */
#line 150
1
"vtkParse.y"
#line 150
4
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator|"
;
}
break
;
case
358
:
/* Line 1455 of yacc.c */
#line 150
1
"vtkParse.y"
#line 150
4
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator^"
;
}
break
;
case
359
:
/* Line 1455 of yacc.c */
#line 150
2
"vtkParse.y"
#line 150
5
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator%"
;
}
break
;
case
360
:
/* Line 1455 of yacc.c */
#line 150
3
"vtkParse.y"
#line 150
6
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator new"
;
}
break
;
case
361
:
/* Line 1455 of yacc.c */
#line 150
4
"vtkParse.y"
#line 150
7
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator delete"
;
}
break
;
case
362
:
/* Line 1455 of yacc.c */
#line 150
5
"vtkParse.y"
#line 150
8
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator<<="
;
}
break
;
case
363
:
/* Line 1455 of yacc.c */
#line 150
6
"vtkParse.y"
#line 150
9
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator>>="
;
}
break
;
case
364
:
/* Line 1455 of yacc.c */
#line 150
7
"vtkParse.y"
#line 15
1
0 "vtkParse.y"
{
(
yyval
.
str
)
=
"operator<<"
;
}
break
;
case
365
:
/* Line 1455 of yacc.c */
#line 15
08
"vtkParse.y"
#line 15
11
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator>>"
;
}
break
;
case
366
:
/* Line 1455 of yacc.c */
#line 15
09
"vtkParse.y"
#line 15
12
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator->*"
;
}
break
;
case
367
:
/* Line 1455 of yacc.c */
#line 151
0
"vtkParse.y"
#line 151
3
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator->"
;
}
break
;
case
368
:
/* Line 1455 of yacc.c */
#line 151
1
"vtkParse.y"
#line 151
4
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator+="
;
}
break
;
case
369
:
/* Line 1455 of yacc.c */
#line 151
2
"vtkParse.y"
#line 151
5
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator-="
;
}
break
;
case
370
:
/* Line 1455 of yacc.c */
#line 151
3
"vtkParse.y"
#line 151
6
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator*="
;
}
break
;
case
371
:
/* Line 1455 of yacc.c */
#line 151
4
"vtkParse.y"
#line 151
7
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator/="
;
}
break
;
case
372
:
/* Line 1455 of yacc.c */
#line 151
5
"vtkParse.y"
#line 151
8
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator%="
;
}
break
;
case
373
:
/* Line 1455 of yacc.c */
#line 151
6
"vtkParse.y"
#line 151
9
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator++"
;
}
break
;
case
374
:
/* Line 1455 of yacc.c */
#line 15
17
"vtkParse.y"
#line 15
20
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator--"
;
}
break
;
case
375
:
/* Line 1455 of yacc.c */
#line 151
8
"vtkParse.y"
#line 15
2
1 "vtkParse.y"
{
(
yyval
.
str
)
=
"operator&="
;
}
break
;
case
376
:
/* Line 1455 of yacc.c */
#line 15
19
"vtkParse.y"
#line 15
22
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator|="
;
}
break
;
case
377
:
/* Line 1455 of yacc.c */
#line 152
0
"vtkParse.y"
#line 152
3
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator^="
;
}
break
;
case
378
:
/* Line 1455 of yacc.c */
#line 152
1
"vtkParse.y"
#line 152
4
"vtkParse.y"
{(
yyval
.
str
)
=
"operator&&="
;}
break
;
case
379
:
/* Line 1455 of yacc.c */
#line 152
2
"vtkParse.y"
#line 152
5
"vtkParse.y"
{(
yyval
.
str
)
=
"operator||="
;}
break
;
case
380
:
/* Line 1455 of yacc.c */
#line 152
3
"vtkParse.y"
#line 152
6
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator&&"
;
}
break
;
case
381
:
/* Line 1455 of yacc.c */
#line 152
4
"vtkParse.y"
#line 152
7
"vtkParse.y"
{
(
yyval
.
str
)
=
"operator||"
;
}
break
;