NullLogic

...

#!/usr/bin/nsp /* * create a list of all global functions */ local function dosub(dosub, p, o) { io.flush(); if (typeof(o)!='table') return; foreach (n,v in o) { if (n=='_GLOBALS') continue; if (typeof(v)=='table') { dosub(dosub, p+(p==""?"":".")+n, v); } else if (typeof(v)=='function') { list+=(p+(p==""?"":".")+n+'()\r\n'); } } } foreach (f in dirlist(dl.path[0])) { x=f.name.split("."); if (x[1]=='so') dl.load(x[0]); } global list=""; dosub(dosub, "", _GLOBALS); file.writeall("fnmap.txt", list);