/* WARNING: This file was generated by dkct. Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: test-bool.ctr */ /** @file test-bool.c The test-bool module. */ #line 1 "test-bool.ctr" #include "dk4conf.h" #include "dk4str8.h" #include #line 10 "test-bool.ctr" static const char * const teststr[] = { /* 0 */ "ja", /* 1 */ "nein", /* 2 */ "yes", /* 3 */ "no", /* 4 */ "y", /* 5 */ "n", /* 6 */ "on", /* 7 */ "off", /* 8 */ "o", /* 9 */ "of", /* 10 */ "true", /* 11 */ "tru", /* 12 */ "tr", /* 13 */ "t", /* 14 */ "false", /* 15 */ "fals", /* 16 */ "fal", /* 17 */ "fa", /* 18 */ "f", /* 19 */ "0", /* 20 */ "1", /* 21 */ "2", /* 22 */ "+", /* 23 */ "-", /* 24 */ "*", /* 25 */ "/", /* 26 */ "JA", /* 27 */ "J", /* 28 */ "NEIN", /* 29 */ "N", /* 30 */ "YES", /* 31 */ "NO", /* 32 */ "YE", /* 33 */ "N", /* 34 */ "Y", /* 35 */ "OFF", /* 36 */ "OF", /* 37 */ "O", /* 38 */ "OfF", /* 39 */ "TRUE", /* 40 */ "TRU", /* 41 */ "TR", /* 42 */ "T", /* 43 */ "B", /* 44 */ "FALSE", /* 45 */ "FALSCH", /* 46 */ "FAL", /* 47 */ "FA", /* 48 */ "F", /* 49 */ "0815", NULL #line 66 "test-bool.ctr" }; int main(void) { const char * const *ptr; #line 72 "test-bool.ctr" #line 73 "test-bool.ctr" ptr = teststr; while (NULL != *ptr) { printf("%d %d \"%s\"\n", dk4str8_is_bool(*ptr), dk4str8_is_on(*ptr), *ptr ); ptr++; } #line 83 "test-bool.ctr" #line 84 "test-bool.ctr" return 0; }