quickjs: add repl + qjscalc (#251)

- Compile repl.js & qjscalc.js and include them in qjs.com zip
- Change quickjs-libc.c / js_os_poll to handle Windows console

This last change is needed because poll and select on Windows forbid
non-socket handles and Cosmopolitan Libc hasn't polyfilled that yet.
This commit is contained in:
agreppin 2021-09-12 01:52:49 +02:00 committed by GitHub
parent 1b93066883
commit 6ad0602392
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 30 deletions

View file

@ -632,9 +632,11 @@ int main(int argc, char **argv)
"\n"
);
} else {
#ifndef COSMO
fprintf(fo, "#include <inttypes.h>\n"
"\n"
);
#endif
}
for(i = optind; i < argc; i++) {
const char *filename = argv[i];