| verzia 1.28, 2002/04/07 12:47:08 |
verzia 1.29, 2002/04/08 20:57:35 |
| Riadok 396 main(argc, argv) |
|
| Riadok 396 main(argc, argv) |
|
| if (i == 0) { |
if (i == 0) { |
| cfg_set_cmdline_context(con, argc, argv); |
cfg_set_cmdline_context(con, argc, argv); |
| cfg_set_context_flag(con, CFG_ADVANCED_LEFTOVERS); |
cfg_set_context_flag(con, CFG_ADVANCED_LEFTOVERS); |
| |
cfg_set_context_flag(con, CFG_FILE_LINE_USAGE); |
| } |
} |
| else { |
else { |
| cfg_set_cfgfile_context(con, 0, 0, o_cfgfile); |
cfg_set_cfgfile_context(con, 1, 0, o_cfgfile); |
| cfg_remove_cfgfile_comment_prefix(con, "//"); |
cfg_remove_cfgfile_comment_prefix(con, "//"); |
| cfg_add_cfgfile_comment_prefix(con, "//"); |
cfg_add_cfgfile_comment_prefix(con, "//"); |
| } |
} |
| Riadok 421 main(argc, argv) |
|
| Riadok 422 main(argc, argv) |
|
| "| Error printing |\n" |
"| Error printing |\n" |
| "+------------------+"); |
"+------------------+"); |
| |
|
| printf("***** %s error %d: %s\n", |
printf("***** %s error %d at %d: %s\n", |
| i == 0 ? "cmdline" : "cfgfile", |
i == 0 ? "cmdline" : "cfgfile", |
| ret, cfg_get_error_str(ret)); |
ret, cfg_get_cur_idx(con), |
| |
cfg_get_error_str(ret)); |
| |
|
| printf("***** opt = '%s', arg = '%s'", |
printf("***** opt = '%s', arg = '%s'", |
| cfg_get_cur_opt(con), cfg_get_cur_arg(con)); |
cfg_get_cur_opt(con), cfg_get_cur_arg(con)); |