Fix build
This commit is contained in:
@@ -73,7 +73,7 @@ pub extern "C" fn isblank(c: c_int) -> c_int {
|
||||
|
||||
#[no_mangle]
|
||||
/// The comment in musl:
|
||||
/// `/* nonsense function that should NEVER be used! */`
|
||||
/// /* nonsense function that should NEVER be used! */
|
||||
pub extern "C" fn toascii(c: c_int) -> c_int {
|
||||
c & 0x7f
|
||||
}
|
||||
|
||||
+2
-1
@@ -26,8 +26,9 @@ size_t num_test_cases = sizeof(test_cases)/sizeof(struct test_case);
|
||||
printf("Unexpected result: " #fn "('%c') != %d\n", tc.c, tc.fn); \
|
||||
}
|
||||
int main(int argc, char* argv[]) {
|
||||
int i;
|
||||
int retval = 0;
|
||||
for(int i = 0; i < num_test_cases; ++i) {
|
||||
for(i = 0; i < num_test_cases; ++i) {
|
||||
struct test_case tc = test_cases[i];
|
||||
CHECK_TEST(tc, isalnum, retval);
|
||||
CHECK_TEST(tc, isalpha, retval);
|
||||
|
||||
Reference in New Issue
Block a user