mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-12 22:19:10 +00:00
Make unbing() not need initialization
This commit is contained in:
parent
7d6835c0dd
commit
29d695f4c9
3 changed files with 222 additions and 48 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue