diff options
author | Norbert Preining <norbert@preining.info> | 2020-09-20 03:03:26 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-09-20 03:03:26 +0000 |
commit | 1f457376b478257b88d4a857f5ec1b6155442dd7 (patch) | |
tree | 2a06a60551dea362cf8cb0cb0ba66c78608717c4 /support/dktools/dk-fic.c | |
parent | ac690ca29ad5bf8a5203a65fd6252f7b564f4727 (diff) |
CTAN sync 202009200303
Diffstat (limited to 'support/dktools/dk-fic.c')
-rw-r--r-- | support/dktools/dk-fic.c | 278 |
1 files changed, 145 insertions, 133 deletions
diff --git a/support/dktools/dk-fic.c b/support/dktools/dk-fic.c index 9d51298960..d4d84225e2 100644 --- a/support/dktools/dk-fic.c +++ b/support/dktools/dk-fic.c @@ -1,36 +1,14 @@ /* - 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: dk-fic.ctr +Copyright (C) 2015-2020, Dirk Krause +SPDX-License-Identifier: BSD-3-Clause */ /* -Copyright (C) 2015-2017, Dirk Krause - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. -* Redistributions in binary form must reproduce the above opyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. -* Neither the name of the author nor the names of contributors may be used - to endorse or promote products derived from this software without specific - prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. -IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY -DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + WARNING: This file was generated by the dkct program (see + http://dktools.sourceforge.net/ for details). + 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: dk-fic.ctr */ @@ -101,18 +79,21 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "dk4md.h" #include "dk4maodd.h" #include "dk4filed.h" -#include "dk4fileid.h" #include "dk4filei.h" #include "dk4fileia.h" #include "dk4strd.h" #include "dk4numl.h" #include "dk4maidddu.h" +#include "dk4unused.h" +#ifndef DK4WMAIN_H_INCLUDED +#include "dk4wmain.h" +#endif -#line 84 "dk-fic.ctr" +#line 87 "dk-fic.ctr" @@ -142,12 +123,12 @@ dkT("find <directory> -type f | dk-fic > checklist.txt\t\tCreate check-"), dkT("dk-ls -r -tf -pn <directory> | dk-fic > checklist.txt\t\tsum list."), dkT("dk-fic -c < checklist.txt\t\t\t\t\tVerify files."), dkT(""), -dkT("http://dktools.sourceforge.net"), +dkT("http://sourceforge.net/p/dktools/wiki/dk-fic/"), dkT(""), NULL -#line 117 "dk-fic.ctr" +#line 120 "dk-fic.ctr" }; @@ -160,7 +141,8 @@ dkT("This software uses code from the following projects, either directly or as" dkT("a library:"), dkT(""), dkT("dktools\t\tDirk Krause's tools and libraries."), -dkT("\t\tSee http://dktools.sourceforge.net/ for more information."), +dkT("\t\tSee http://sourceforge.net/p/dktools/wiki/Home/"), +dkT("\t\tfor more information."), #if DK4_HAVE_ZLIB_H dkT(""), dkT("zlib\t\tData compression library."), @@ -187,27 +169,27 @@ dkT(""), dkT("Redistribution and use in source and binary forms, with or without"), dkT("modification, are permitted provided that the following conditions are met:"), dkT(""), -dkT("* Redistributions of source code must retain the above copyright notice,"), -dkT(" this list of conditions and the following disclaimer."), -dkT("* Redistributions in binary form must reproduce the above copyright"), -dkT(" notice, this list of conditions and the following disclaimer in the"), -dkT(" documentation and/or other materials provided with the distribution."), -dkT("* Neither the name of the Dirk Krause nor the names of contributors may be"), -dkT(" used to endorse or promote products derived from this software without"), -dkT(" specific prior written permission."), -dkT(""), -dkT("THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\""), -dkT("AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE"), -dkT("IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE"), -dkT("ARE DISCLAIMED."), +dkT("1. Redistributions of source code must retain the above copyright notice,"), +dkT(" this list of conditions and the following disclaimer."), +dkT("2. Redistributions in binary form must reproduce the above copyright"), +dkT(" notice, this list of conditions and the following disclaimer in the"), +dkT(" documentation and/or other materials provided with the distribution."), +dkT("3. Neither the name of the copyright holder nor the names of its"), +dkT(" contributors may be used to endorse or promote products derived from"), +dkT(" this software without specific prior written permission."), dkT(""), -dkT("IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,"), -dkT("INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,"), -dkT("BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,"), -dkT("DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY"), -dkT("OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING"), -dkT("NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,"), -dkT("EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."), +dkT("THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"), +dkT("``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT"), +dkT("LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR"), +dkT("A PARTICULAR PURPOSE ARE DISCLAIMED."), +dkT("IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY"), +dkT("DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES"), +dkT("(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR"), +dkT("SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER"), +dkT("CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT"), +dkT("LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY"), +dkT("OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF"), +dkT("SUCH DAMAGE."), #if DK4_HAVE_ZLIB_H dkT(""), dkT(""), @@ -281,7 +263,7 @@ dkT(""), NULL -#line 249 "dk-fic.ctr" +#line 253 "dk-fic.ctr" }; @@ -322,7 +304,7 @@ dkT("dk-fic"), NULL -#line 298 "dk-fic.ctr" +#line 302 "dk-fic.ctr" }; @@ -456,7 +438,7 @@ dkT("."), NULL -#line 423 "dk-fic.ctr" +#line 427 "dk-fic.ctr" }; /* VARIABLES */ @@ -598,13 +580,25 @@ static int dk_fic_verbosity = 1; /** Input encoding expected on standard input. */ -static int dk_fic_ie_stdin = DK4_FILE_ENCODING_ASCII; +static int dk_fic_ie_stdin = +#if DK4_ON_WINDOWS + DK4_FILE_ENCODING_WIN1252 +#else + DK4_FILE_ENCODING_PLAIN +#endif +; /** Input encoding expected on files. */ -static int dk_fic_ie_file = DK4_FILE_ENCODING_ASCII; +static int dk_fic_ie_file = +#if DK4_ON_WINDOWS + DK4_FILE_ENCODING_WIN1252 +#else + DK4_FILE_ENCODING_PLAIN +#endif +; @@ -662,8 +656,9 @@ sig_pass_pointer(DK4_VOLATILE dk4_sig_atomic_t *ptr) */ static void -sig_handler_pipe(int signo) +sig_handler_pipe(int DK4_ARG_UNUSED(signo) ) { + DK4_UNUSED_ARG(signo) *sig_pass_pointer(&sig_had_pipe) = 1; } #endif @@ -673,8 +668,9 @@ sig_handler_pipe(int signo) */ static void -sig_handler_int(int signo) +sig_handler_int(int DK4_ARG_UNUSED(signo) ) { + DK4_UNUSED_ARG(signo) *sig_pass_pointer(&sig_had_int) = 1; } @@ -683,8 +679,9 @@ sig_handler_int(int signo) */ static void -sig_handler_term(int signo) +sig_handler_term(int DK4_ARG_UNUSED(signo) ) { + DK4_UNUSED_ARG(signo) *sig_pass_pointer(&sig_had_term) = 1; } @@ -708,10 +705,18 @@ sig_read_atomic(DK4_VOLATILE dk4_sig_atomic_t *ap) */ static int -sig_can_continue(int check_pipe) +sig_can_continue( +#ifdef SIGPIPE +int check_pipe +#else +int DK4_ARG_UNUSED(check_pipe) +#endif +) { int back = 1; -#ifdef SIGPIPE +#ifndef SIGPIPE + DK4_UNUSED_ARG(check_pipe) +#else if (0 != check_pipe) { if (0 != sig_read_atomic(&sig_had_pipe)) { back = 0; } } @@ -1069,10 +1074,10 @@ dk_fic_checksum_file(const dkChar *filename, dk4_um_t filesize) static int dk_fic_create_line_handler( - void *obj, + void *DK4_ARG_UNUSED(obj), dkChar *line, - dk4_um_t lineno, - dk4_er_t *erp + dk4_um_t DK4_ARG_UNUSED(lineno), + dk4_er_t * DK4_ARG_UNUSED(erp) ) { dk4_file_info_t fi; @@ -1080,6 +1085,10 @@ dk_fic_create_line_handler( dk4_um_t filesize; int res; int back = DK4_TSP_RES_OK; + + DK4_UNUSED_ARG(obj) + DK4_UNUSED_ARG(lineno) + DK4_UNUSED_ARG(erp) dk4str_delnl(line); dk4path_correct_sep(line); filesize = (dk4_um_t)0UL; @@ -1132,7 +1141,7 @@ dk_fic_compare_checksums( int back = 0; -#line 1097 "dk-fic.ctr" +#line 1128 "dk-fic.ctr" if ((NULL != curcs) && (NULL != orics) && (0 < curlen)) { back = 1; while ((1 == back) && (0 < curlen--)) { @@ -1142,7 +1151,7 @@ dk_fic_compare_checksums( } } -#line 1105 "dk-fic.ctr" +#line 1136 "dk-fic.ctr" return back; } @@ -1158,10 +1167,10 @@ dk_fic_compare_checksums( static int dk_fic_verify_line_handler( - void *obj, + void * DK4_ARG_UNUSED(obj), dkChar *line, - dk4_um_t lineno, - dk4_er_t *erp + dk4_um_t DK4_ARG_UNUSED(lineno), + dk4_er_t * DK4_ARG_UNUSED(erp) ) { dk4_file_info_t fi; /* File information */ @@ -1196,30 +1205,33 @@ dk_fic_verify_line_handler( dk4str_delnl(line); -#line 1157 "dk-fic.ctr" +#line 1188 "dk-fic.ctr" + DK4_UNUSED_ARG(obj) + DK4_UNUSED_ARG(lineno) + DK4_UNUSED_ARG(erp) /* dk4path_correct_sep(line); Correct file name only! */ for (i = 0; i < 16; i++) { tok[i] = NULL; } if (0 != dk_fic_first_line) { -#line 1160 "dk-fic.ctr" +#line 1194 "dk-fic.ctr" dk_fic_first_line = 0; ntok = dk4str_tokenize(tok, 16, line, NULL, NULL); if (3 == ntok) { -#line 1163 "dk-fic.ctr" +#line 1197 "dk-fic.ctr" if (dkT('#') == *(tok[0])) { if (0 == dk4str_cmp(dk_fic_kwnl[9], tok[1])) { endptr = NULL; if (0 != dk4ma_input_dk_dec_dk4_um_t(&um, tok[2], &endptr, 1, NULL)) { if ((dk4_um_t)3UL == um) { -#line 1168 "dk-fic.ctr" +#line 1202 "dk-fic.ctr" dk_fic_num_mds = 3; back = DK4_TSP_RES_OK; } else { if ((dk4_um_t)4UL == um) { -#line 1172 "dk-fic.ctr" +#line 1206 "dk-fic.ctr" dk_fic_num_mds = 4; back = DK4_TSP_RES_OK; #if !DK4_HAVE_SHA512 @@ -1230,24 +1242,24 @@ dk_fic_verify_line_handler( #endif } else { -#line 1181 "dk-fic.ctr" +#line 1215 "dk-fic.ctr" } } } else { -#line 1184 "dk-fic.ctr" +#line 1218 "dk-fic.ctr" } } else { -#line 1186 "dk-fic.ctr" +#line 1220 "dk-fic.ctr" } } else { -#line 1188 "dk-fic.ctr" +#line 1222 "dk-fic.ctr" } } else { -#line 1190 "dk-fic.ctr" +#line 1224 "dk-fic.ctr" } if (DK4_TSP_RES_ERROR == back) { /* ERROR: Syntax error */ @@ -1258,25 +1270,25 @@ dk_fic_verify_line_handler( } } else { -#line 1199 "dk-fic.ctr" +#line 1233 "dk-fic.ctr" ntok = dk4str_tokenize(tok, 16, line, NULL, NULL); -#line 1201 "dk-fic.ctr" +#line 1235 "dk-fic.ctr" if ((5 == ntok) && (3 == dk_fic_num_mds)) { -#line 1202 "dk-fic.ctr" +#line 1236 "dk-fic.ctr" back = DK4_TSP_RES_OK; } else { if ((6 == ntok) && (4 == dk_fic_num_mds)) { -#line 1205 "dk-fic.ctr" +#line 1239 "dk-fic.ctr" back = DK4_TSP_RES_OK; } } if (DK4_TSP_RES_OK == back) { -#line 1209 "dk-fic.ctr" +#line 1243 "dk-fic.ctr" #if VERSION_BEFORE_20150821 back = DK4_TSP_RES_ERROR; #endif @@ -1285,21 +1297,21 @@ dk_fic_verify_line_handler( dk4fileinfo_init(&fi); if (0 != dk4fileinfo_app(&fi, tok[ntok - 1], app)) { -#line 1216 "dk-fic.ctr" +#line 1250 "dk-fic.ctr" filesize = (dk4_um_t)0UL; res = dk4fileinfo_size( &filesize, &fi, DK4_FILE_INFO_CONTENTS_DATA_TARGET, &er ); if (0 != res) { -#line 1221 "dk-fic.ctr" +#line 1255 "dk-fic.ctr" res = dk4ma_input_dk_dec_dk4_um_t(&um, tok[ntok-2], &endptr, 1, NULL); if (0 != res) { -#line 1223 "dk-fic.ctr" +#line 1257 "dk-fic.ctr" if (um == filesize) { -#line 1224 "dk-fic.ctr" +#line 1258 "dk-fic.ctr" ok = 1; /* Initialize message digest contexts. */ @@ -1316,37 +1328,37 @@ dk_fic_verify_line_handler( #if DK4_HAVE_SHA512 if (6 == ntok) { -#line 1239 "dk-fic.ctr" +#line 1273 "dk-fic.ctr" res = dk4md_ctx_init( &ctx_sha512,DK4_MD_SHA512,DK4_BINARY_TO_TEXT_ENCODING_A85,NULL ); if (0 == res) { -#line 1243 "dk-fic.ctr" +#line 1277 "dk-fic.ctr" ok = 0; } } #endif if (0 != ok) { -#line 1248 "dk-fic.ctr" +#line 1282 "dk-fic.ctr" ok = 0; fipo = dk4fopen_app(tok[ntok-1], dk_fic_kwnl[5], tests, app); if (NULL != fipo) { -#line 1251 "dk-fic.ctr" +#line 1285 "dk-fic.ctr" ok = 1; cc = 1; while (1 == cc) { -#line 1254 "dk-fic.ctr" +#line 1288 "dk-fic.ctr" if (dk_fic_can_continue()) { -#line 1255 "dk-fic.ctr" +#line 1289 "dk-fic.ctr" rdb = fread(data_buf, 1, sizeof(data_buf), fipo); if (0 < rdb) { -#line 1257 "dk-fic.ctr" +#line 1291 "dk-fic.ctr" /* Add data from file to message digest contexts. */ res = dk4md_ctx_add(&ctx_md5, data_buf, rdb, NULL); @@ -1369,11 +1381,11 @@ dk_fic_verify_line_handler( } } else { -#line 1278 "dk-fic.ctr" +#line 1312 "dk-fic.ctr" cc = 0; if (0 != ferror(fipo)) { -#line 1280 "dk-fic.ctr" +#line 1314 "dk-fic.ctr" cc = -1; /* ERROR Read attempt failed */ oldsourcename = dk4app_get_log_source_file(app); @@ -1390,14 +1402,14 @@ dk_fic_verify_line_handler( } } else { -#line 1295 "dk-fic.ctr" +#line 1329 "dk-fic.ctr" cc = -1; } } fclose(fipo); if (0 == cc) { -#line 1300 "dk-fic.ctr" +#line 1334 "dk-fic.ctr" /* Retrieve results from message digest contexts. */ md5ptr = NULL; sha1ptr = NULL; ripemd160ptr = NULL; @@ -1405,7 +1417,7 @@ dk_fic_verify_line_handler( #if DK4_HAVE_SHA512 sha512ptr = NULL; -#line 1306 "dk-fic.ctr" +#line 1340 "dk-fic.ctr" sha512sz = 0; #endif res = dk4md_ctx_finish(&md5ptr, &md5sz, &ctx_md5, NULL); @@ -1434,12 +1446,12 @@ dk_fic_verify_line_handler( #if DK4_HAVE_SHA512 if (6 == ntok) { -#line 1333 "dk-fic.ctr" +#line 1367 "dk-fic.ctr" res = dk4md_ctx_finish( &sha512ptr, &sha512sz, &ctx_sha512, NULL ); -#line 1336 "dk-fic.ctr" +#line 1370 "dk-fic.ctr" if (0 == res) { ok = 0; #if VERSION_BEFORE_20150821 @@ -1458,33 +1470,33 @@ dk_fic_verify_line_handler( */ if (0 != ok) { -#line 1353 "dk-fic.ctr" +#line 1387 "dk-fic.ctr" res = dk_fic_compare_checksums(md5ptr, tok[0], md5sz); if (0 == res) { -#line 1355 "dk-fic.ctr" +#line 1389 "dk-fic.ctr" ok = 0; } } if (0 != ok) { -#line 1359 "dk-fic.ctr" +#line 1393 "dk-fic.ctr" res = dk_fic_compare_checksums(sha1ptr, tok[1], sha1sz); if (0 == res) { -#line 1361 "dk-fic.ctr" +#line 1395 "dk-fic.ctr" ok = 0; } } if (0 != ok) { -#line 1365 "dk-fic.ctr" +#line 1399 "dk-fic.ctr" res = dk_fic_compare_checksums( ripemd160ptr, tok[2], ripemd160sz ); if (0 == res) { -#line 1369 "dk-fic.ctr" +#line 1403 "dk-fic.ctr" ok = 0; } } @@ -1492,16 +1504,16 @@ dk_fic_verify_line_handler( #if DK4_HAVE_SHA512 if (6 == ntok) { -#line 1375 "dk-fic.ctr" +#line 1409 "dk-fic.ctr" if (0 != ok) { -#line 1376 "dk-fic.ctr" +#line 1410 "dk-fic.ctr" res = dk_fic_compare_checksums( sha512ptr, tok[3], sha512sz ); if (0 == res) { -#line 1380 "dk-fic.ctr" +#line 1414 "dk-fic.ctr" ok = 0; } } @@ -1509,16 +1521,16 @@ dk_fic_verify_line_handler( #endif } else { -#line 1386 "dk-fic.ctr" +#line 1420 "dk-fic.ctr" ok = 0; } } else { -#line 1389 "dk-fic.ctr" +#line 1423 "dk-fic.ctr" } } else { -#line 1391 "dk-fic.ctr" +#line 1425 "dk-fic.ctr" /* ERROR Failed to initialize MD contexts */ dk4app_log_3( app, dk_fic_msg, dk_fic_sz_msg, DK4_LL_ERROR, 11, 12, @@ -1527,11 +1539,11 @@ dk_fic_verify_line_handler( } } else { -#line 1398 "dk-fic.ctr" +#line 1432 "dk-fic.ctr" } if (0 != ok) { -#line 1400 "dk-fic.ctr" +#line 1434 "dk-fic.ctr" if (2 <= dk_fic_verbosity) { if (0 == dk4fputs(dk_fic_msg[2], stdout, NULL)) { exval = EXIT_FAILURE; dk_fic_write_error = 1; @@ -1545,7 +1557,7 @@ dk_fic_verify_line_handler( } } else { -#line 1412 "dk-fic.ctr" +#line 1446 "dk-fic.ctr" exval = EXIT_FAILURE; if (1 <= dk_fic_verbosity) { if (0 == dk4fputs(dk_fic_msg[3], stdout, NULL)) { @@ -1561,7 +1573,7 @@ dk_fic_verify_line_handler( } } else { -#line 1426 "dk-fic.ctr" +#line 1460 "dk-fic.ctr" /* Syntax error */ dk4app_log_3( app, dk_fic_msg, dk_fic_sz_msg, DK4_LL_ERROR, 21, 22, tok[ntok-2] @@ -1570,7 +1582,7 @@ dk_fic_verify_line_handler( } } else { -#line 1433 "dk-fic.ctr" +#line 1467 "dk-fic.ctr" /* ERROR: Failed to retrieve file size */ dk4app_log_3( app, dk_fic_msg, dk_fic_sz_msg, DK4_LL_ERROR, 15, 16, line @@ -1579,7 +1591,7 @@ dk_fic_verify_line_handler( } } else { -#line 1440 "dk-fic.ctr" +#line 1474 "dk-fic.ctr" /* ERROR: Failed to information about file, already reported */ exval = EXIT_FAILURE; } @@ -1588,7 +1600,7 @@ dk_fic_verify_line_handler( #endif } else { -#line 1447 "dk-fic.ctr" +#line 1481 "dk-fic.ctr" /* Syntax error */ if (3 == dk_fic_num_mds) { dk4app_log_1(app, dk_fic_msg, dk_fic_sz_msg, DK4_LL_ERROR, 20); @@ -1600,7 +1612,7 @@ dk_fic_verify_line_handler( } -#line 1457 "dk-fic.ctr" +#line 1491 "dk-fic.ctr" return back; } @@ -1625,7 +1637,7 @@ dk_fic_process_file(FILE *fipo, const dkChar *fn, int ie) unsigned char ub; -#line 1480 "dk-fic.ctr" +#line 1514 "dk-fic.ctr" dk4error_init(&er_en); dk4error_init(&er_pr); dk4error_init(&er); @@ -1693,7 +1705,7 @@ dk_fic_process_file(FILE *fipo, const dkChar *fn, int ie) } -#line 1546 "dk-fic.ctr" +#line 1580 "dk-fic.ctr" } @@ -1760,7 +1772,7 @@ dk_fic_expand_filename(const dkChar *pattern) int can_continue; -#line 1611 "dk-fic.ctr" +#line 1645 "dk-fic.ctr" fne = dk4app_fne_open(pattern, app); if (NULL != fne) { do { @@ -1791,7 +1803,7 @@ dk_fic_expand_filename(const dkChar *pattern) } -#line 1640 "dk-fic.ctr" +#line 1674 "dk-fic.ctr" } #endif @@ -2146,10 +2158,10 @@ int main(int argc, char *argv[]) { -#line 1993 "dk-fic.ctr" +#line 2027 "dk-fic.ctr" -#line 1994 "dk-fic.ctr" +#line 2028 "dk-fic.ctr" dk_fic_num_len = dk4numlength(sizeof(dk4_um_t), 0); dk4fput_initialize_stdout(); dk4fput_initialize_stderr(); @@ -2200,10 +2212,10 @@ int main(int argc, char *argv[]) dk4fput_cleanup_stdout(); -#line 2043 "dk-fic.ctr" +#line 2077 "dk-fic.ctr" -#line 2044 "dk-fic.ctr" +#line 2078 "dk-fic.ctr" exit (exval); return exval; } |