diff options
-rw-r--r-- | src/library.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js index 97f7f61e..c346dd41 100644 --- a/src/library.js +++ b/src/library.js @@ -466,6 +466,7 @@ var Library = { STDIO.write(stream, Module._fputc_ptr, 1); }, + getc__deps: ['$STDIO'], getc: function(file) { if (!Module._getc_ptr) Module._getc_ptr = _malloc(1); var ret = STDIO.read(file, Module._getc_ptr, 1); @@ -475,6 +476,11 @@ var Library = { getc_unlocked: 'getc', _IO_getc: 'getc', + getchar__deps: ['getc'], + getchar: function() { + return _getc(_stdin); + }, + ungetc: function(chr, stream) { return chr; }, |