Skip to content
Browse files

t/pmc/nci.t func = cleanup

For the first dlfunc function calls use the more readable
assignment form. The other form is tested later also.
  • Loading branch information...
1 parent bce8cd3 commit e971bd4a4dded7a29babc7db0e711ea0c56ee363 @rurban rurban committed Sep 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 t/pmc/nci.t
View
4 t/pmc/nci.t
@@ -69,7 +69,7 @@ OUTPUT
.local pmc func
.local int func_defined
libnci_test = loadlib "no_such_library"
- dlfunc func, libnci_test, "no_such_function", "v"
+ func = dlfunc libnci_test, "no_such_function", "v"
func_defined = defined func
if func_defined goto FUNC_DEFINED
branch FUNC_UNDEFINED
@@ -96,7 +96,7 @@ OUTPUT
unless libnci_test goto NOT_LOADED
print "libnci_test was successfully loaded\n"
- dlfunc func, libnci_test, "no_such_function", "v"
+ func = dlfunc libnci_test, "no_such_function", "v"
func_defined = defined func
if func_defined goto FUNC_DEFINED
branch FUNC_UNDEFINED

0 comments on commit e971bd4

Please sign in to comment.
Something went wrong with that request. Please try again.