Skip to content
Snippets Groups Projects
Commit 07c3ce02 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix build

parent af78f481
No related branches found
No related tags found
No related merge requests found
...@@ -73,7 +73,7 @@ pub extern "C" fn isblank(c: c_int) -> c_int { ...@@ -73,7 +73,7 @@ pub extern "C" fn isblank(c: c_int) -> c_int {
#[no_mangle] #[no_mangle]
/// The comment in musl: /// 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 { pub extern "C" fn toascii(c: c_int) -> c_int {
c & 0x7f c & 0x7f
} }
......
...@@ -26,8 +26,9 @@ size_t num_test_cases = sizeof(test_cases)/sizeof(struct test_case); ...@@ -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); \ printf("Unexpected result: " #fn "('%c') != %d\n", tc.c, tc.fn); \
} }
int main(int argc, char* argv[]) { int main(int argc, char* argv[]) {
int i;
int retval = 0; 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]; struct test_case tc = test_cases[i];
CHECK_TEST(tc, isalnum, retval); CHECK_TEST(tc, isalnum, retval);
CHECK_TEST(tc, isalpha, retval); CHECK_TEST(tc, isalpha, retval);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment