Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
0f65b676
Commit
0f65b676
authored
10 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Fix test for internal functions in F2003 interface generator.
* This addresses a change in Ruby from 1.8 to 1.9.
parent
9d15cca0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
interfaces/f2003/bindGen.rb
+2
-2
2 additions, 2 deletions
interfaces/f2003/bindGen.rb
with
2 additions
and
2 deletions
interfaces/f2003/bindGen.rb
+
2
−
2
View file @
0f65b676
...
...
@@ -67,7 +67,7 @@ def getFuncInfo(filename)
md
=
/(\w+)+ +(\**)(\w+)\s*\((.*)\)/
.
match
(
line
)
returnType
,
returnPointer
,
funcName
,
paramList
=
md
[
1
,
4
]
paramList
=
paramList
.
split
(
','
).
collect
{
|
p
|
p
.
split
(
' '
).
each
{
|
_p
|
_p
.
strip
}}
[
funcName
,
returnType
,
returnPointer
,
paramList
]
[
funcName
,
returnType
,
returnPointer
,
paramList
]
}
funclist
end
...
...
@@ -226,7 +226,7 @@ def genInterface(cFuncname, returnType, returnPointer, paramList)
warn
"parameterlist of '
#{
cFuncname
}
' is not supported -> function ignored."
return
[
''
,
''
]
end
return
[
''
,
''
]
if
(
cFuncname
[
0
]
==
'_'
)
return
[
''
,
''
]
if
(
cFuncname
[
0
,
1
]
==
'_'
)
# the void argument type can be left out: if 'void' occures in the
# parameterlist (which is only the case, if it is the only parameter
# information), it is simply removed and a empty paramter list is left.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment