Mercurial > hg > sidinfo
comparison sidinfo.c @ 335:293fce53b5f9
Rename out label to exit.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 13 Jan 2020 13:40:18 +0200 |
parents | f8a133d0b703 |
children | 5c2e77ec45e8 |
comparison
equal
deleted
inserted
replaced
334:1e7ffcaeb8ad | 335:293fce53b5f9 |
---|---|
1172 } | 1172 } |
1173 | 1173 |
1174 // Parse command line arguments | 1174 // Parse command line arguments |
1175 if (!th_args_process(argc, argv, optList, optListN, | 1175 if (!th_args_process(argc, argv, optList, optListN, |
1176 argHandleOpt, NULL, OPTH_ONLY_OPTS)) | 1176 argHandleOpt, NULL, OPTH_ONLY_OPTS)) |
1177 goto out; | 1177 goto exit; |
1178 | 1178 |
1179 THMSG(2, "Requested output LANG='%s', use charset conversion=%s\n", | 1179 THMSG(2, "Requested output LANG='%s', use charset conversion=%s\n", |
1180 setChConv.outLang, setChConv.enabled ? "yes" : "no"); | 1180 setChConv.outLang, setChConv.enabled ? "yes" : "no"); |
1181 | 1181 |
1182 if (optOneLineFieldSep != NULL || | 1182 if (optOneLineFieldSep != NULL || |
1310 } | 1310 } |
1311 | 1311 |
1312 // Process files | 1312 // Process files |
1313 if (!th_args_process(argc, argv, optList, optListN, | 1313 if (!th_args_process(argc, argv, optList, optListN, |
1314 NULL, argHandleFile, OPTH_ONLY_OTHER)) | 1314 NULL, argHandleFile, OPTH_ONLY_OTHER)) |
1315 goto out; | 1315 goto exit; |
1316 | 1316 |
1317 if (optNFiles == 0) | 1317 if (optNFiles == 0) |
1318 { | 1318 { |
1319 THERR("No filename(s) specified. Try --help.\n"); | 1319 THERR("No filename(s) specified. Try --help.\n"); |
1320 } | 1320 } |
1321 | 1321 |
1322 out: | 1322 exit: |
1323 | 1323 |
1324 sidutil_chconv_close(&setChConv); | 1324 sidutil_chconv_close(&setChConv); |
1325 | 1325 |
1326 siClearStack(&optFormat); | 1326 siClearStack(&optFormat); |
1327 th_free(setHVSCPath); | 1327 th_free(setHVSCPath); |