Software /
code /
verse
Comparison
buildscripts/squish @ 428:bde804b01f28
Fix typos (thanks Link Mauve and codespell)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 24 Dec 2018 17:35:07 +0100 |
parent | 370:75e7917761c0 |
child | 472:864c9dc27c60 |
comparison
equal
deleted
inserted
replaced
427:fafb3639d4aa | 428:bde804b01f28 |
---|---|
2195 }));\ | 2195 }));\ |
2196 Module['load'] = importScripts;\ | 2196 Module['load'] = importScripts;\ |
2197 }\ | 2197 }\ |
2198 }\ | 2198 }\ |
2199 else {\ | 2199 else {\ |
2200 // Unreachable because SHELL is dependant on the others\ | 2200 // Unreachable because SHELL is dependent on the others\ |
2201 throw 'Unknown runtime environment. Where are we?';\ | 2201 throw 'Unknown runtime environment. Where are we?';\ |
2202 }\ | 2202 }\ |
2203 function globalEval(x) {\ | 2203 function globalEval(x) {\ |
2204 eval.call(null, x);\ | 2204 eval.call(null, x);\ |
2205 }\ | 2205 }\ |
2560 // -s EXPORTED_FUNCTIONS='[\"_main\", \"_myfunc\"]'\ | 2560 // -s EXPORTED_FUNCTIONS='[\"_main\", \"_myfunc\"]'\ |
2561 //\ | 2561 //\ |
2562 // @param ident The name of the C function (note that C++ functions will be name-mangled - use extern \"C\")\ | 2562 // @param ident The name of the C function (note that C++ functions will be name-mangled - use extern \"C\")\ |
2563 // @param returnType The return type of the function, one of the JS types 'number', 'string' or 'array' (use 'number' for any C pointer, and\ | 2563 // @param returnType The return type of the function, one of the JS types 'number', 'string' or 'array' (use 'number' for any C pointer, and\ |
2564 // 'array' for JavaScript arrays and typed arrays; note that arrays are 8-bit).\ | 2564 // 'array' for JavaScript arrays and typed arrays; note that arrays are 8-bit).\ |
2565 // @param argTypes An array of the types of arguments for the function (if there are no arguments, this can be ommitted). Types are as in returnType,\ | 2565 // @param argTypes An array of the types of arguments for the function (if there are no arguments, this can be omitted). Types are as in returnType,\ |
2566 // except that 'array' is not possible (there is no way for us to know the length of the array)\ | 2566 // except that 'array' is not possible (there is no way for us to know the length of the array)\ |
2567 // @param args An array of the arguments to the function, as native JS values (as in returnType)\ | 2567 // @param args An array of the arguments to the function, as native JS values (as in returnType)\ |
2568 // Note that string arguments will be stored on the stack (the JS string will become a C string on the stack).\ | 2568 // Note that string arguments will be stored on the stack (the JS string will become a C string on the stack).\ |
2569 // @return The return value, as a native JS value (as in returnType)\ | 2569 // @return The return value, as a native JS value (as in returnType)\ |
2570 function ccall(ident, returnType, argTypes, args) {\ | 2570 function ccall(ident, returnType, argTypes, args) {\ |