Replace the non-portable PATH_MAX constant with a new WREN_PATH_MAX define set to 4096 in os.h, and correct the void function processCwd to use bare return instead of return wrenAbortFiber(vm, 0) which was causing a broken build on platforms without PATH_MAX defined.
This contains the Wren source code. It is organized like so:
-
cli: the source code for the command line interface. This is a custom executable that embeds the VM in itself. Code here handles reading command-line, running the REPL, loading modules from disc, etc. -
module: the source code for the built-in modules that come with the CLI. These modules are written in a mixture of C and Wren and generally use libuv to implement their underlying functionality.