diff -r f597c8f0bcc9 -r a034888a2227 tester2.c --- a/tester2.c Sat Jul 01 14:18:56 2000 +0200 +++ b/tester2.c Fri Jul 21 21:19:31 2000 +0200 @@ -32,7 +32,7 @@ static bool test2_fn(Tokenizer *tokz, int n, Token *toks) { - printf("test2_fn() %d %ld %f\n", n, TOK_LONG_VAL(toks+1), TOK_DOUBLE_VAL(toks+2)); + printf("test2_fn() %d %s %f\n", n, TOK_BOOL_VAL(toks+1) ? "TRUE" : "FALSE", TOK_DOUBLE_VAL(toks+2)); return TRUE; } @@ -50,7 +50,7 @@ static ConfOpt opts[]={ {"test", NULL, test_fn, NULL}, - {"t2", "ld", test2_fn, NULL}, + {"t2", "bd", test2_fn, NULL}, {"foo", "s?l", test3_fn, NULL}, {"sect", "s", sect_fn, opts}, {NULL, NULL, NULL, NULL} @@ -59,7 +59,7 @@ int main(int argc, char *argv[]) { - libtu_init_argv0(argv[0], NULL); + libtu_init(argv[0]); parse_config_file(stdin, opts, TOKZ_ERROR_TOLERANT); return EXIT_SUCCESS;