#include #include #include #define streq(a,b) (strcmp((a),(b))==0) static void usage(void) { printf(" Usage: scsh [meta-arg] [vm-option+] [end-option scheme-args] meta-arg: \\ switch: -e Specify top-level entry point. -o Open structure in current package. -m Switch to package. -n Switch to new package. -lm Load module into config package. -le Load file into exec package. -l Load file into current package. -ll As in -lm, but search the library path list. +lp Add to front of library path list. lp+ Add to end of library path list. +lpe +lp, with env var and ~user expansion. lpe+ lp+, with env var and ~user expansion. +lpsd Add script-file's dir to front of path list. lpsd+ Add script-file's dir to end of path list. -lp-clear Clear library path list to (). -lp-default Reset library path list to system default. -ds Do script. -dm Do script module. -de Do script exec. -h Set heap size. -i Specify image. -stacksize Set stack size end-option: -s