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
ad9f35e4
Commit
ad9f35e4
authored
May 27, 2010
by
David Gobbi
Committed by
Marcus D. Hanwell
Jun 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG: wrapper generators were failing if hints file was not set
parent
d0712231
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
7 deletions
+19
-7
CMake/vtkWrapPython.cmake
CMake/vtkWrapPython.cmake
+7
-1
Wrapping/vtkParse.tab.c
Wrapping/vtkParse.tab.c
+6
-3
Wrapping/vtkParse.y
Wrapping/vtkParse.y
+6
-3
No files found.
CMake/vtkWrapPython.cmake
View file @
ad9f35e4
...
...
@@ -72,6 +72,12 @@ MACRO(VTK_WRAP_PYTHON3 TARGET SRC_LIST_NAME SOURCES)
SET
(
TMP_SPECIAL
"--vtkobject"
)
ENDIF
(
TMP_WRAP_SPECIAL
)
IF
(
VTK_WRAP_HINTS
)
SET
(
TMP_HINTS
"--hints"
"
${
quote
}${
VTK_WRAP_HINTS
}${
quote
}
"
)
ELSE
(
VTK_WRAP_HINTS
)
SET
(
TMP_HINTS
)
ENDIF
(
VTK_WRAP_HINTS
)
# add the info to the init file
SET
(
VTK_WRAPPER_INIT_DATA
"
${
VTK_WRAPPER_INIT_DATA
}
\n
${
TMP_FILENAME
}
"
)
...
...
@@ -88,7 +94,7 @@ MACRO(VTK_WRAP_PYTHON3 TARGET SRC_LIST_NAME SOURCES)
ARGS
${
TMP_CONCRETE
}
${
TMP_SPECIAL
}
"--hints"
"
${
quote
}${
VTK_WRAP_HINTS
}${
quote
}
"
${
TMP_HINTS
}
"
${
quote
}${
TMP_INPUT
}${
quote
}
"
"
${
quote
}${
CMAKE_CURRENT_BINARY_DIR
}
/
${
TMP_FILENAME
}
Python.cxx
${
quote
}
"
COMMENT
"Python Wrapping - generating
${
TMP_FILENAME
}
Python.cxx"
...
...
Wrapping/vtkParse.tab.c
View file @
ad9f35e4
...
...
@@ -5999,10 +5999,13 @@ int main(int argc, char *argv[])
data
.
IsConcrete
=
atoi
(
argv
[
argi
++
]);
}
if
(
!
(
f
hint
=
fopen
(
hintFileName
,
"r"
))
)
if
(
hint
FileName
&&
hintFileName
[
0
]
!=
'\0'
)
{
fprintf
(
stderr
,
"Error opening hint file %s
\n
"
,
hintFileName
);
exit
(
1
);
if
(
!
(
fhint
=
fopen
(
hintFileName
,
"r"
)))
{
fprintf
(
stderr
,
"Error opening hint file %s
\n
"
,
hintFileName
);
exit
(
1
);
}
}
yyin
=
fin
;
...
...
Wrapping/vtkParse.y
View file @
ad9f35e4
...
...
@@ -2075,10 +2075,13 @@ int main(int argc, char *argv[])
data.IsConcrete = atoi(argv[argi++]);
}
if (
!(f
hint
= fopen(
hintFileName
, "r"))
)
if (hint
FileName &&
hintFileName
[0] != '\0'
)
{
fprintf(stderr, "Error opening hint file %s\n", hintFileName);
exit(1);
if (!(fhint = fopen(hintFileName, "r")))
{
fprintf(stderr, "Error opening hint file %s\n", hintFileName);
exit(1);
}
}
yyin = fin;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment