aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2011-02-21 18:46:19 -0800
committerAlon Zakai <azakai@mozilla.com>2011-02-21 18:46:19 -0800
commitcb0b00ff98ba99dd9661de4de89f3225caed766c (patch)
treed57d7b60c85c9e03a4d972d67ab574b673022cb7 /src
parentacbb1e6a0b49facc66e14891556e0859f9609868 (diff)
vfprintf
Diffstat (limited to 'src')
-rw-r--r--src/library.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js
index 7775c792..467b1dcc 100644
--- a/src/library.js
+++ b/src/library.js
@@ -248,6 +248,11 @@ var Library = {
return i; // Actually, should return how many *would* have been written, if the |num| had not stopped us.
},
+ vfprintf__deps: ['_formatString'],
+ vfprintf: function(stream, format, args) {
+ __print__(Pointer_stringify(__formatString(-format, args)));
+ },
+
fileno: function(file) {
return 1; // TODO
},