aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-09-10 20:48:38 -0700
committeralon@honor <none@none>2010-09-10 20:48:38 -0700
commitbcb46261d622c6e6919bab5ccc6506913d5da57a (patch)
tree6897f9c2a5f89d2c923ae7198b448c49d06df25b /src
parent325fa82fa01f388ed894a90ffb61da80ba71c379 (diff)
tweaks to sauer, and strtol
Diffstat (limited to 'src')
-rw-r--r--src/snippets.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/snippets.js b/src/snippets.js
index 39160b78..96420990 100644
--- a/src/snippets.js
+++ b/src/snippets.js
@@ -63,6 +63,11 @@ var Snippets = {
} while (HEAP[psrc+i-1] != 0);
},
+ strtol: function(ptr) {
+ // XXX: We ignore the other two params!
+ return parseInt(Pointer_stringify(ptr));
+ },
+
strcmp: function(px, py) {
var i = 0;
while (true) {