diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-09-20 14:44:52 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-09-25 09:33:02 +0700 |
commit | 0183803efea3e68d4d3ed48fe1d837417527c070 (patch) | |
tree | cc40e74ae8d401639cc99dc9fe12e538d989aaad | |
parent | 2ec8c7a23fbc1adee266a1e9bf8ac3f24daf3663 (diff) |
Simple implementation of newlocale / freelocale.
This removes a couple of errors from libcxx test suites.
-rw-r--r-- | src/library.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/library.js b/src/library.js index ca3175d1..49f8e453 100644 --- a/src/library.js +++ b/src/library.js @@ -6461,11 +6461,15 @@ LibraryManager.library = { // locale.h // ========================================================================== + newlocale__deps: ['malloc'], newlocale: function(mask, locale, base) { - return 0; + return _malloc({{{ QUANTUM_SIZE}}}); }, - freelocale: function(locale) {}, + freelocale__deps: ['free'], + freelocale: function(locale) { + _free(locale); + }, uselocale: function(locale) { return 0; |