mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
Remove testonly
keyword
This commit is contained in:
parent
9be364d40a
commit
d721ff8938
31 changed files with 78 additions and 94 deletions
|
@ -19,11 +19,10 @@
|
|||
#include "libc/str/str.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
|
||||
testonly bool testlib_startswith(size_t cw, const void *s, const void *prefix) {
|
||||
bool testlib_startswith(size_t cw, const void *s, const void *prefix) {
|
||||
if (s == prefix) return true;
|
||||
if (!s || !prefix) return false;
|
||||
return cw == sizeof(wchar_t)
|
||||
? wcsstartswith(s, prefix)
|
||||
: cw == sizeof(char16_t) ? startswith16(s, prefix)
|
||||
: startswith(s, prefix);
|
||||
return cw == sizeof(wchar_t) ? wcsstartswith(s, prefix)
|
||||
: cw == sizeof(char16_t) ? startswith16(s, prefix)
|
||||
: startswith(s, prefix);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue