Make unbing() not need initialization

This commit is contained in:
Justine Tunney 2022-10-07 14:36:44 -07:00
parent 7d6835c0dd
commit 29d695f4c9
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 222 additions and 48 deletions

View file

@ -18,7 +18,6 @@
*/
#include "libc/assert.h"
#include "libc/fmt/bing.internal.h"
#include "libc/str/str.h"
#include "libc/str/tab.internal.h"
/**
@ -56,6 +55,6 @@
* @see unbing() for inverse
*/
int bing(int b, int intent) {
assert(0 <= b && b < 256);
return kCp437[b & 0xff]; /* TODO(jart): multimappings */
_unassert(0 <= b && b < 256);
return kCp437[b & 0xff];
}