diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-24 20:26:17 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-24 20:26:17 -0700 |
commit | 690f8c8f80661b0c6f9e731a3ff9da31fecfa7fa (patch) | |
tree | f919b358c6e36f1f821968c94bb1333b6e6d07a6 | |
parent | 454b9e41525e40780e80288a83378d128f1cad02 (diff) | |
parent | 0183803efea3e68d4d3ed48fe1d837417527c070 (diff) |
Merge pull request #1642 from waywardmonkeys/newlocale-freelocale
newlocale and freelocale
-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; |