Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
43
Issues
43
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiago Peixoto
graph-tool
Commits
1d474dee
Commit
1d474dee
authored
Sep 10, 2008
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix problem with ugly type names in run_action
parent
98ee958f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/graph_tool/run_action/inline.py
src/graph_tool/run_action/inline.py
+3
-2
No files found.
src/graph_tool/run_action/inline.py
View file @
1d474dee
...
...
@@ -56,10 +56,11 @@ def inline(g, code, arg_names=[], local_dict=None,
props
=
""
for
d
in
[
"vertex"
,
"edge"
,
"graph"
]:
for
t
in
core
.
value_types
():
props
+=
(
"typedef typename %s_prop_t::template as<%s >::type"
+
\
props
+=
(
(
"typedef typename %s_prop_t::template as<%s >::type"
+
\
" %sprop_%s_t;
\n
"
)
%
\
(
d
,
t
,
d
[
0
],
t
.
replace
(
" "
,
"_"
).
replace
(
"::"
,
"_"
)
\
.
replace
(
"<"
,
"_"
).
replace
(
">"
,
"_"
))
.
replace
(
"<"
,
"_"
).
replace
(
">"
,
"_"
))).
\
replace
(
"__"
,
"_"
)
# each term on the expansion will properly unwrap a tuple pointer value
# to a reference with the appropriate name and type
...
...
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