Skip to content

Commit

Permalink
removed embedded tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed Apr 23, 2011
1 parent ee53d0b commit 56ed657
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions runtime/parrot/library/NCI/Utils.pir
Expand Up @@ -12,11 +12,11 @@ NCI/Utils.pir - Utility functions to make Parrot NCI work easier
use FooTK:from<parrot>; use FooTK:from<parrot>;


sub MAIN(*@ARGS is rw) { sub MAIN(*@ARGS is rw) {
# Call toolkit's init function, overwriting @ARGS with mangled copy # Call toolkit's init function, overwriting @ARGS with mangled copy
@ARGS = call_toolkit_init(&fooInit, @ARGS, $*PROGRAM_NAME); @ARGS = call_toolkit_init(&fooInit, @ARGS, $*PROGRAM_NAME);


# Alternately, you can save both the original @ARGS and mangled copy # Alternately, you can save both the original @ARGS and mangled copy
my @mangled_args = call_toolkit_init(&fooInit, @ARGS); my @mangled_args = call_toolkit_init(&fooInit, @ARGS);


# ... # ...
} }
Expand All @@ -26,20 +26,20 @@ NCI/Utils.pir - Utility functions to make Parrot NCI work easier
.param pmc argv .param pmc argv


# Load this library and the NCI wrapper for a framework/toolkit # Load this library and the NCI wrapper for a framework/toolkit
load_bytecode 'NCI/Utils.pbc' load_bytecode 'NCI/Utils.pbc'
load_bytecode 'FooTK.pbc' load_bytecode 'FooTK.pbc'


# Find Subs for call_toolkit_init() and the toolkit's init function # Find Subs for call_toolkit_init() and the toolkit's init function
.local pmc call_toolkit_init, fooInit .local pmc call_toolkit_init, fooInit
call_toolkit_init = get_global ['NCI';'Utils'], 'call_toolkit_init' call_toolkit_init = get_global ['NCI';'Utils'], 'call_toolkit_init'
fooInit = get_global ['FooTK'], 'fooInit' fooInit = get_global ['FooTK'], 'fooInit'


# Call toolkit's init function, overwriting argv with mangled copy # Call toolkit's init function, overwriting argv with mangled copy
argv = call_toolkit_init(fooInit, argv) argv = call_toolkit_init(fooInit, argv)


# Alternately, you can save both the original argv and mangled copy # Alternately, you can save both the original argv and mangled copy
.local pmc mangled_argv .local pmc mangled_argv
mangled_argv = call_toolkit_init(fooInit, argv) mangled_argv = call_toolkit_init(fooInit, argv)


# ... # ...
.end .end
Expand Down

0 comments on commit 56ed657

Please sign in to comment.