mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
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:
parent
1b93066883
commit
6ad0602392
4 changed files with 27 additions and 30 deletions
2
third_party/quickjs/qjsc.c
vendored
2
third_party/quickjs/qjsc.c
vendored
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue