Ticket #2180: 2180.patch
| File 2180.patch, 0.6 KB (added by bubaflub, 22 months ago) |
|---|
-
examples/nci/ls.pir
diff --git a/examples/nci/ls.pir b/examples/nci/ls.pir index 182e5be..10ca98b 100644
a b 20 20 .local pmc opendir 21 21 .local pmc readdir 22 22 .local pmc closedir 23 24 load_bytecode 'NCI/Utils.pbc' 25 $P1 = get_root_global ['parrot';'NCI';'Utils'], 'dlfancy' 26 23 27 libc = loadlib 'libc' 24 dlfunc opendir, libc, 'opendir', 'pt'28 opendir = $P1(libc, 'opendir', 'pt') 25 29 dlfunc readdir, libc, 'readdir', 'pp' 26 30 dlfunc closedir, libc, 'closedir', 'ip' 27 31 .local pmc curdir
