| 1 |
2017-02-19 Ivano Primi <ivprimi(at)libero(dot)it> |
| 2 |
|
| 3 |
* Version 5.9.0 released. |
| 4 |
|
| 5 |
* bitvector.h, bitvector.c: Doc fixes. |
| 6 |
|
| 7 |
* config.h.in (VERSION): From 5.8.1 to 5.9.0. |
| 8 |
Doc fixes. |
| 9 |
|
| 10 |
* util.c (lines_differ): |
| 11 |
Signature changed: the parameter `argl' is now of type |
| 12 |
`const argslist*' instead of `argslist*'. |
| 13 |
(lines_differ): `ghostmask', `pblurmask', and `tblurmask' |
| 14 |
are now declared as pointers to `const unsigned' data. |
| 15 |
(lines_differ): `Ghostmask', `Pblurmask', and `Tblurmask' |
| 16 |
are now declared as pointers to `const unsigned' data. |
| 17 |
|
| 18 |
(lines_differ): getBitAtPosition() is now called on the mask of the command |
| 19 |
line options to if the bit _SI_MASK is on. |
| 20 |
|
| 21 |
* thrlist.c, read_line.c: Doc fixes. |
| 22 |
|
| 23 |
* options.c (print_version): Copyright statement updated. |
| 24 |
(print_help): Help message updated. |
| 25 |
|
| 26 |
(nfset): The bit fields corresponding to the command line options |
| 27 |
specified by the user are now set by calling setBitAtPosition(). |
| 28 |
|
| 29 |
(setargs): Added long option "raw". |
| 30 |
|
| 31 |
(setargs): The local variable `i' was renamed as `cmpRes'. |
| 32 |
All occurrences accordingly changed. |
| 33 |
|
| 34 |
(setargs): The local variable `w' is now initialized to the |
| 35 |
value DEF_ATMOST_NCOLS. |
| 36 |
|
| 37 |
(setargs): The initialization of the global variables `binary', |
| 38 |
`suppress_common_lines', `ignore_white_space', `expand_tabs', `speed_large_files' |
| 39 |
and `program_name' was moved to the function load_defaults() of main.c. |
| 40 |
(setargs): The structure pointed to by the argument `list' is now initialized |
| 41 |
in the function load_defaults() of main.c. |
| 42 |
|
| 43 |
(setargs): The bit fields corresponding to the command line options |
| 44 |
specified by the user are now set by calling setBitAtPosition(). |
| 45 |
(setargs): getBitAtPosition() is now called on the mask of the command |
| 46 |
line options to check if the bits _F_MASK and _SO_MASK are off. |
| 47 |
(setargs): The bit fields corresponding to the command line options |
| 48 |
`-B', `-T', `-F', `-c', `-l', `-o', and `--raw' are also set if appropriate. |
| 49 |
(setargs): getBitAtPosition() is now called on the mask of the command |
| 50 |
line options to check if any of the bits _SV_MASK, _B_MASK, _SO_MASK, |
| 51 |
_Q_MASK, and _RAW_MASK is on. |
| 52 |
(setargs): getBitAtPosition() is now called on the mask of the command |
| 53 |
line options to check if the bits _V_MASK and _H_MASK are off. |
| 54 |
|
| 55 |
Doc fixes. |
| 56 |
|
| 57 |
* numutil.c: Doc fixes. |
| 58 |
|
| 59 |
* numdiff.h: Include "bitvector.h". |
| 60 |
The field `optmask' of the structure `argslist' is now of type `bitvector'. |
| 61 |
|
| 62 |
New structure `difference_location'. |
| 63 |
|
| 64 |
New structure `statlist'. |
| 65 |
The fields `Labserr', `Crelerr', `Lrelerr', `Cabserr', |
| 66 |
`N1abserr', `N1disperr', `N2abserr', `N2disperr', `Nentries', and `Ndisperr' |
| 67 |
were moved from the structure `argslist' to the structure `statlist'. |
| 68 |
|
| 69 |
The _*_MASK macros were redefined as enumeration values. |
| 70 |
Enumeration values _ST_MASK, _SB_MASK, _SD_MASK, _SF_MASK, |
| 71 |
_C_MASK, and _RAW_MASK were introduced. |
| 72 |
New enumeration value MAX_NUMDIFF_OPTIONS. |
| 73 |
|
| 74 |
The OUTMODE_* macros were redefined as enumeration values. |
| 75 |
Enumeration value OUTMODE_RAW was introduced. |
| 76 |
|
| 77 |
The macros CLASSIC_FORMULA, WR_TO_FIRST_FILE, and |
| 78 |
WR_TO_SECOND_FILE were redefined as enumeration values. |
| 79 |
|
| 80 |
The declarations of the functions diff_2_files(), read_files(), |
| 81 |
and lines_differ() were adjusted to comply with the new signatures. |
| 82 |
|
| 83 |
Doc fixes. |
| 84 |
|
| 85 |
* new.c: Doc fixes. |
| 86 |
|
| 87 |
* ndselect.h: Include "bitvector.h". |
| 88 |
The field `optmask' of the structure `Argslist' is now of type `bitvector'. |
| 89 |
|
| 90 |
The ___*_MASK macros were redefined as enumeration values. |
| 91 |
Enumeration values ___L_MASK and ___O_MASK were introduced. |
| 92 |
New enumeration value MAX_NDSELECT_OPTIONS. |
| 93 |
|
| 94 |
Doc fixes. |
| 95 |
|
| 96 |
* ndselect.c (print_selversion): Copyright statement updated. |
| 97 |
|
| 98 |
(scan_file): getBitAtPosition() is now called on the mask of the |
| 99 |
command line options to determine whether the bit ___X_MASK is on or off. |
| 100 |
(set_args): The field `optmask' of the structure pointed to by `list' |
| 101 |
is now initialized by means of a call to newBitVector(). |
| 102 |
(set_args): The bit fields corresponding to the command line options |
| 103 |
specified by the user are now set by calling setBitAtPosition(). |
| 104 |
(set_args): To check if the bits ___H_MASK and ___V_MASK are off, |
| 105 |
getBitAtPosition() is now called on the mask of the command line options. |
| 106 |
|
| 107 |
(main): New boolean variables `pHelp' and `pVersion' of type `int'. |
| 108 |
(main): getBitAtPosition() is called on the mask |
| 109 |
of the command line options to check if the bit ___H_MASK is on, |
| 110 |
then `pHelp' is initialized with the result of this check. |
| 111 |
(main): getBitAtPosition() is called on the mask |
| 112 |
of the command line options to check if the bit ___V_MASK is on, |
| 113 |
then `pVersion' is initialized with the result of this check. |
| 114 |
(main): The information about version number, copyright, and |
| 115 |
distribution terms of Numdiff is now printed if `pVersion' is non-zero. |
| 116 |
(main): The help text of Numdiff is now printed if `pHelp' is non-zero. |
| 117 |
(main): The determination of the exit code of the program when |
| 118 |
any of the options `--help' and `--version' is specified was made more compact |
| 119 |
by means of the operator `?:'. |
| 120 |
|
| 121 |
Doc fixes. |
| 122 |
|
| 123 |
* main.c: |
| 124 |
Extern declaration of cmp_files() changed according to the new signature of the function. |
| 125 |
|
| 126 |
(load_defaults): New static function. |
| 127 |
(init_mpa_support): Signature changed: new parameter `statres' |
| 128 |
of type `statlist*'. All callers changed. |
| 129 |
(init_mpa_support): Since the fields `Labserr', `Crelerr', `Lrelerr', `Cabserr', |
| 130 |
`N1abserr', `N1disperr', `N2abserr', `N2disperr' were moved from the structure |
| 131 |
`argslist' to the new structure type `statlist', they are initialized now |
| 132 |
via the pointer `statres'. |
| 133 |
(dismiss_mpa_support): Signature changed: new parameter `statres' |
| 134 |
of type `statlist*'. All callers changed. |
| 135 |
(dismiss_mpa_support): The memory allocated for the fields `Labserr', `Crelerr', |
| 136 |
`Lrelerr', `Cabserr', `N1abserr', `N1disperr', `N2abserr', and `N2disperr' |
| 137 |
is now freed by referring to them via the pointer `statres'. |
| 138 |
|
| 139 |
(compare_files): Signature changed: the parameter `list' is now of type |
| 140 |
`const argslist*' instead of `argslist*'. |
| 141 |
|
| 142 |
(isLocationDefined): New static function. |
| 143 |
|
| 144 |
(print_statistics): Signature changed: the parameter `list' is now of type |
| 145 |
`const argslist*' instead of `argslist*', new parameter `statres' |
| 146 |
of type `statlist*'. All callers changed. |
| 147 |
(print_statistics): Since the fields `Labserr', `Crelerr', `Lrelerr', `Cabserr', |
| 148 |
`N1abserr', `N1disperr', `N2abserr', `N2disperr', `Nentries', and `Ndisperr' |
| 149 |
were moved from the structure `argslist' to the new structure type `statlist', |
| 150 |
they are accessed now via the pointer `statres'. |
| 151 |
(print_statistics): Many of the messages printed to standard output |
| 152 |
were corrected. |
| 153 |
(print_statistics): If the compared files show numeric differences which are |
| 154 |
important to the user, the locations of the occurrences of the largest absolute |
| 155 |
difference are printed to standard output, as well as the locations of the |
| 156 |
occurrences of the largest relative difference. |
| 157 |
|
| 158 |
(clean_memory): New static function. |
| 159 |
|
| 160 |
(main): New variable `statres' of type `statlist', new boolean variables |
| 161 |
`pHelp' and `pVersion' of type `int'. |
| 162 |
|
| 163 |
(main): To initialize the structures `list' and `statres' with |
| 164 |
reasonable defaults, load_defaults() is called immediately before |
| 165 |
calling init_mpa_support(). |
| 166 |
|
| 167 |
(main): If setargs() fails, the new function clean_memory() is now called |
| 168 |
before exiting to free the memory dynamically allocated for some structures. |
| 169 |
|
| 170 |
(main): getBitAtPosition() is called on the mask |
| 171 |
of the command line options to check if the bit _H_MASK is on, |
| 172 |
then `pHelp' is initialized with the result of this check. |
| 173 |
(main): getBitAtPosition() is called on the mask |
| 174 |
of the command line options to check if the bit _V_MASK is on, |
| 175 |
then `pVersion' is initialized with the result of this check. |
| 176 |
(main): The information about version number, copyright, and |
| 177 |
distribution terms of Numdiff is now printed if `pVersion' is non-zero. |
| 178 |
(main): The help text of Numdiff is now printed if `pHelp' is non-zero. |
| 179 |
(main): If the user has requested the help text or the |
| 180 |
information about version number, copyright, and distribution terms |
| 181 |
of Numdiff, the new function clean_memory() is now called |
| 182 |
before exiting to free the memory dynamically allocated for some structures. |
| 183 |
(main): The determination of the exit code of the program when |
| 184 |
any of the options `--help' and `--version' is specified was made more compact |
| 185 |
by means of the operator `?:'. |
| 186 |
|
| 187 |
(main): getBitAtPosition() is called on the mask |
| 188 |
of the command line options to check if the bit _Q_MASK is on. |
| 189 |
|
| 190 |
(main): If open_files() fails, the new function clean_memory() is now called |
| 191 |
before exiting to free the memory dynamically allocated for some structures. |
| 192 |
|
| 193 |
(main): getBitAtPosition() is called on the mask of the command line options |
| 194 |
to check if one or more of the bits _F_MASK, _Z_MASK, or _SZ_MASK is on. |
| 195 |
|
| 196 |
(main): If the function compare_files() has returned a negative value, |
| 197 |
clean_memory() and close_files() are called before exiting. |
| 198 |
|
| 199 |
(main): getBitAtPosition() is now called on the mask of the command line options |
| 200 |
to check if the bit _F_MASK is off. |
| 201 |
|
| 202 |
(main): If any of the functions rewind_files() and set_file_pointers() |
| 203 |
has returned a value different from EXIT_SUCCESS, the new function |
| 204 |
clean_memory() is now called before exiting to free the memory dynamically |
| 205 |
allocated for some structures. |
| 206 |
|
| 207 |
(main): getBitAtPosition() is now called on the mask of the command line options |
| 208 |
to check if the bit _SS_MASK is on. |
| 209 |
|
| 210 |
(main): In case of normal termination of the program, the new function |
| 211 |
clean_memory() is now called before exiting to free the memory dynamically |
| 212 |
allocated for some structures. |
| 213 |
|
| 214 |
Doc fixes. |
| 215 |
|
| 216 |
* linesplit.h, linesplit.c: Doc fixes. |
| 217 |
|
| 218 |
* io.c (print_errors): Signature changed: |
| 219 |
new parameter `human_readable_format' of type `int'. |
| 220 |
All callers changed. |
| 221 |
|
| 222 |
(print_errors): The old way of printing errors is now |
| 223 |
used only if `human_readable_format' is true: |
| 224 |
if `human_readable_format' is false, errors are printed in raw format. |
| 225 |
|
| 226 |
Doc fixes. |
| 227 |
|
| 228 |
* inout.c (find_and_hash_each_line): Signature changed: |
| 229 |
the parameter `argl' is now of type `const argslist*' instead of `argslist*'. |
| 230 |
|
| 231 |
(find_and_hash_each_line): getBitAtPosition() is now called on the mask |
| 232 |
of the command line options to check if the bit _SI_MASK is on. |
| 233 |
|
| 234 |
(find_and_hash_each_line): The local variables `ghostmask', `pblurmask' |
| 235 |
and `tblurmask' are now of type `const unsigned char*' instead of `unsigned char*'. |
| 236 |
|
| 237 |
(read_files): Signature changed: |
| 238 |
the parameter `argl' is now of type `const argslist*' instead of `argslist*'. |
| 239 |
(read_files): The local variables `ifs1' and `ifs2' are now |
| 240 |
of type `const char**' instead of `char**'. |
| 241 |
(read_files): `ifs1' and `ifs2' are not any longer casted to `const char**' |
| 242 |
when calling find_and_hash_each_line(). |
| 243 |
|
| 244 |
* flags.c, errors.c: Doc fixes. |
| 245 |
|
| 246 |
* cmpfns.c: |
| 247 |
Extern declaration of print_errors() changed according to the new signature of the function. |
| 248 |
|
| 249 |
(cmp_fields): Signature changed: the parameter `argl' is now of type `const argslist*' |
| 250 |
instead of `argslist*', new parameter `statres' of type `statlist*', new parameters |
| 251 |
`Labserr_exceeded' and `Rabserr_exceeded' of type `int*'. All callers changed. |
| 252 |
|
| 253 |
(cmp_fields): getBitAtPosition() is now called on the mask of the command line options |
| 254 |
to check if the bit _2_MASK is off. |
| 255 |
(cmp_fields): getBitAtPosition() is now called on the mask of the command line options |
| 256 |
to check if the bit _SS_MASK is on. |
| 257 |
(cmp_fields): getBitAtPosition() is now called on the mask of the command line options |
| 258 |
to check if the bit _SI_MASK is on. |
| 259 |
|
| 260 |
(cmp_fields): The results of the statistic analysis are not any longer stored |
| 261 |
in the structure pointed to by `argl', but in the structure pointed to by `statres'. |
| 262 |
(cmp_fields): The integer variable pointed to by `Labserr_exceeded' is set to one |
| 263 |
if the computed absolute error exceeds the current value of the largest absolute error, |
| 264 |
or if these two values are equal but the computed relative error exceeds |
| 265 |
the relative error associated to the current value of the largest absolute error. |
| 266 |
(cmp_fields): The integer variable pointed to by `Rabserr_exceeded' is set to one |
| 267 |
if the computed relative error exceeds the current value of the largest relative error, |
| 268 |
or if these two values are equal but the computed absolute error exceeds |
| 269 |
the absolute error associated to the current value of the largest relative error. |
| 270 |
|
| 271 |
(cmp_lines): Signature changed: the integer parameter `output_mode' was removed, |
| 272 |
the parameter `argl' is now of type `const argslist*' instead of `argslist*', |
| 273 |
new parameter `statres' of type `statlist*'. All callers changed. |
| 274 |
|
| 275 |
(cmp_lines): New local integer variable `output_mode', which is initialized |
| 276 |
with the value passed through the `argslist' structure. |
| 277 |
(cmp_lines): Added output instructions in raw output mode for the case of |
| 278 |
a line only present in one of the compared files. |
| 279 |
|
| 280 |
(cmp_lines): New local integer (boolean) variables |
| 281 |
`Labserr_exceeded' and `Rabserr_exceeded'. |
| 282 |
(cmp_lines): Before calling cmp_fields(), `Labserr_exceeded' and `Rabserr_exceeded' |
| 283 |
are both initialized to zero. |
| 284 |
(cmp_lines): If `Labserr_exceeded' is non-zero after calling cmp_fields(), |
| 285 |
the current line numbers and field numbers are stored in the structure |
| 286 |
`statres->Labserr_location'. |
| 287 |
(cmp_lines): If `Rabserr_exceeded' is non-zero after calling cmp_fields(), |
| 288 |
the current line numbers and field numbers are stored in the structure |
| 289 |
`statres->Rabserr_location'. |
| 290 |
|
| 291 |
(cmp_lines): getBitAtPosition() is now called on the mask of the command line options |
| 292 |
to check if the bit _SE_MASK is on. |
| 293 |
(cmp_lines): getBitAtPosition() is now called on the mask of the command line options |
| 294 |
to check if the bit _SU_MASK is on. |
| 295 |
|
| 296 |
(cmp_lines): Added output instructions to mark corresponding fields as different |
| 297 |
when the output mode is raw. |
| 298 |
(cmp_lines): Added output instruction in raw output mode for the case of |
| 299 |
a line in the second file which is shorter than the corresponding line from the first file. |
| 300 |
(cmp_lines): Added output instruction in raw output mode for the case of |
| 301 |
a line in the first file which is shorter than the corresponding line from the second file. |
| 302 |
|
| 303 |
(cmp_files): Signature changed: the parameter `argl' is now of type |
| 304 |
`const argslist*' instead of `argslist*', new parameter `statres' |
| 305 |
of type `statlist*'. All callers changed. |
| 306 |
|
| 307 |
Doc fixes. |
| 308 |
|
| 309 |
* arith.c: Doc fixes. |
| 310 |
|
| 311 |
* analyze.c (diff_2_files): |
| 312 |
The last argument is now a pointer to a constant argslist |
| 313 |
since the function does not change the pointed structu |
| 314 |
|
| 315 |
(diff_2_files): The value of the bit _M_MASK is now retrieved by calling |
| 316 |
getBitAtPosition() on the mask of the command line options. |
| 317 |
(diff_2_files): getBitAtPosition() is now called on the mask of the command line options |
| 318 |
to check if the bit _F_MASK is on. |
| 319 |
|
| 320 |
2016-12-31 Ivano Primi <ivprimi(at)libero(dot)it> |
| 321 |
|
| 322 |
* bitvector.c, bitvector.h: New file. |
| 323 |
|
| 324 |
2013-09-15 Ivano Primi <ivprimi(at)libero(dot)it> |
| 325 |
|
| 326 |
* Version 5.8.1 released. |
| 327 |
|
| 328 |
* config.h.in (VERSION): From 5.8.0 to 5.8.1. |
| 329 |
|
| 330 |
* NEWS: Added news for version 5.8.1. |
| 331 |
|
| 332 |
* Makefile.in (VERSION): From 5.8.0 to 5.8.1. |
| 333 |
|
| 334 |
2013-08-28 Ivano Primi <ivprimi(at)libero(dot)it> |
| 335 |
|
| 336 |
* Version 5.8.0 released. |
| 337 |
|
| 338 |
* BUGS: Doc fixes. |
| 339 |
|
| 340 |
* BUGS: Added description of the bug discovered by Elias Pipping |
| 341 |
and a hint on how to avoid it. |
| 342 |
|
| 343 |
2013-08-26 Ivano Primi <ivprimi(at)libero(dot)it> |
| 344 |
|
| 345 |
* INSTALL: Doc fixes. |
| 346 |
|
| 347 |
* BUGS: Added remind: specify if the operating system is |
| 348 |
either 32- or 64-bit. |
| 349 |
|
| 350 |
* NEWS: Added news for version 5.8.0. |
| 351 |
|
| 352 |
2013-08-25 Ivano Primi <ivprimi(at)libero(dot)it> |
| 353 |
|
| 354 |
* util.c: Added instruction to include linesplit.h |
| 355 |
Added declaration of the external variable def_ifs. |
| 356 |
(lines_differ): ifs and Ifs redefined as const char**. |
| 357 |
(lines_differ): IFS replaced by def_ifs. |
| 358 |
(lines_differ): for cycle to initialize f1 and |
| 359 |
let it point to the first field of s1 |
| 360 |
replaced by a call to string_spn(). |
| 361 |
(lines_differ): for cycle to initialize f2 and |
| 362 |
let it point to the first field of s2 |
| 363 |
replaced by a call to string_spn(). |
| 364 |
(lines_differ): Every couple of for cycles to move f1 |
| 365 |
to the beginning of the next field has been replaced |
| 366 |
by a call to string_cspn() and a call to string_spn(). |
| 367 |
(lines_differ): Every couple of for cycles to move f2 |
| 368 |
to the beginning of the next field has been replaced |
| 369 |
by a call to string_cspn() and a call to string_spn(). |
| 370 |
(lines_differ): for cycle to set e1 and let it point to |
| 371 |
the end of the field pointed to by f1 replaced by a call |
| 372 |
to string_cspn(). |
| 373 |
(lines_differ): for cycle to set e2 and let it point to |
| 374 |
the end of the field pointed to by f2 replaced by a call |
| 375 |
to string_cspn(). |
| 376 |
(lines_differ): The instructions |
| 377 |
f1 = e1; f2 = e2; |
| 378 |
have been removed from block of else if ((f1_is_blurred)) . |
| 379 |
(lines_differ): The instructions |
| 380 |
f1 = e1; f2 = e2; |
| 381 |
have been removed from `else' block of |
| 382 |
if ( (compare_numeric_strings (f1, pnf, f2, Pnf)) ) . |
| 383 |
(lines_differ): for cycle to move f1 from the end of a |
| 384 |
field to the beginning of the next field replaced by |
| 385 |
a call to string_spn(). |
| 386 |
(lines_differ): for cycle to move f2 from the end of a |
| 387 |
field to the beginning of the next field replaced by |
| 388 |
a call to string_spn(). |
| 389 |
|
| 390 |
2013-08-22 Ivano Primi <ivprimi(at)libero(dot)it> |
| 391 |
|
| 392 |
* thrlist.c, README: Doc fixes. |
| 393 |
|
| 394 |
* read_line.c: |
| 395 |
[_TEST_READ_LINE_]: Added instructions to include stdio.h, stdlib.h, and string.h |
| 396 |
[_TEST_READ_LINE_]: New macro constant BUFF_SIZE |
| 397 |
[_TEST_READ_LINE_]: New macro constants for error codes: |
| 398 |
OK, LINE_INTERR, EOF_REACHED, READING_ERROR, OUT_OF_MEMORY, OPEN_FAILED, |
| 399 |
WRONG_USAGE, FILE_IS_BINARY. |
| 400 |
(read_line): New variables n, ch, exception_occurred. |
| 401 |
(read_line): Cycle while ((ptr = fgets (buffer, BUFF_SIZE,pf))) { ... } |
| 402 |
replaced by do { ... } while (!exception_occurred); (do not rely anymore |
| 403 |
on function fgets() to read input lines, but use getc()). |
| 404 |
(read_line): Test if(!ptr) replaced by if ((exception_occurred)) . |
| 405 |
(read_line): Added test else if ( ch == '\0' ) . If the condition is true, |
| 406 |
*errcode is set to FILE_IS_BINARY. |
| 407 |
[_TEST_READ_LINE_] (main): New function. |
| 408 |
Doc fixes. |
| 409 |
|
| 410 |
* options.c: Added instruction to include linesplit.h |
| 411 |
(print_version): Fixed copyright string. |
| 412 |
(print_help): New help entry for options --delimiters, |
| 413 |
help message for option -s improved. |
| 414 |
(print_help): Since the short option for --dummy is not -D anymore but -U, |
| 415 |
the format strings for a couple of printf() calls have been changed. |
| 416 |
(return_ifs): function removed. |
| 417 |
(setargs): Changed initialization of optstring. |
| 418 |
(setargs): Since the short option for --dummy is not -D anymore but -U, |
| 419 |
the entry for the option "dummy" in the array long_options has been |
| 420 |
changed. |
| 421 |
(setargs): Since the short option for --dummy is not -D anymore but -U, |
| 422 |
the label of the corresponding case in switch (optch){...} |
| 423 |
is now 'U' instead of 'D'. |
| 424 |
(setargs): _SD_MASK replaced by _SU_MASK. |
| 425 |
(setargs): Long option "separator" changed to "separators". |
| 426 |
(setargs): Added entry for option "delimiters" to the array long_options. |
| 427 |
(setargs): Instead of using xstrdup(), list->nf1.currency and |
| 428 |
list->nf2.currency are now initialized by means of |
| 429 |
a call to get_separating_string(). |
| 430 |
(setargs): The memory reserved for list->ifs1 and list->ifs2 is now |
| 431 |
freed by calling delete_string_vector() instead of free(). |
| 432 |
(setargs): ssplit_former_way() is now used in place of return_ifs(). |
| 433 |
(setargs): Added if statements to print a suitable error message and |
| 434 |
return -1 in case ssplit_former_way() returns NULL (to indicate a failure). |
| 435 |
(setargs): To check for the presence of the newline character |
| 436 |
in list->ifs1 and list->ifs2 the function is_string_in_vector() is used |
| 437 |
in place of strchr(). |
| 438 |
(setargs): Before `adding' _S_MASK to list->optmask, |
| 439 |
the functions remove_duplicates_from_string_vector() and |
| 440 |
sort_string_vector() are called on list->ifs1 and list->ifs2. |
| 441 |
(setargs): Added case D to switch statement. |
| 442 |
(setargs): In case c the function get_separating_string() is now used |
| 443 |
in place of xstrdup() to set list->nf1.currency and list->nf2.currency. |
| 444 |
Doc fixes. |
| 445 |
|
| 446 |
2013-08-18 Ivano Primi <ivprimi(at)libero(dot)it> |
| 447 |
|
| 448 |
* numutil.c: Doc fixes. |
| 449 |
|
| 450 |
* numdiff.h (FILE_IS_BINARY): New macro. |
| 451 |
(argslist): Changed declaration of the fields ifs1 and ifs2. |
| 452 |
(_SD_MASK): Macro removed. |
| 453 |
(_SU_MASK): New macro. |
| 454 |
(IFS): Macro removed. |
| 455 |
Doc fixes. |
| 456 |
|
| 457 |
* new.c: Doc fixes. |
| 458 |
|
| 459 |
* ndselect.h (Argslist): Changed declaration of field ifs. |
| 460 |
(Argslist): New field osep. |
| 461 |
New macros ___SD_MASK and ___SO_MASK. |
| 462 |
Redefinition of macros ___X_MASK and ___V_MASK. |
| 463 |
Doc fixes. |
| 464 |
|
| 465 |
* ndselect.c: Added instruction to include linesplit.h. |
| 466 |
(return_ifs): function removed. |
| 467 |
(print_line): Signature and definition changed. All callers changed. |
| 468 |
(print_line): strspn() and strcspn() replaced by |
| 469 |
string_spn() and string_cspn() respectively. |
| 470 |
(print_line): The setting of the variable stop depends now |
| 471 |
on the value of the variable osep. |
| 472 |
(print_line): If osep is not NULL, it is printed to the standard |
| 473 |
output after every selected field. |
| 474 |
(scan_file): Signature and definition changed. All callers changed. |
| 475 |
(scan_file): Definition of ifs changed. |
| 476 |
(scan_file): IFS replaced by def_ifs. |
| 477 |
(scan_file): calls to print_line() changed. |
| 478 |
(print_selversion): Fixed copyright string. |
| 479 |
(print_selhelp): New help entries for options -D and -O, |
| 480 |
help message for option -S improved. |
| 481 |
(set_args): Changed initialization of optstring. |
| 482 |
(set_args): Added entries for options "delimiters" |
| 483 |
and "output-separator" to the array long_options. |
| 484 |
(set_args): Long option "separator" changed to "separators". |
| 485 |
(set_args): Added initialization code for list->osep. |
| 486 |
(set_args): The memory reserved for list.ifs is now |
| 487 |
freed by calling delete_string_vector() instead of free(), |
| 488 |
and after list->ifs is reinitialized to NULL. |
| 489 |
(set_args): ssplit_former_way() is now used in place of return_ifs(). |
| 490 |
(set_args): To check for the presence of the newline character |
| 491 |
in list->ifs the function is_string_in_vector() is used |
| 492 |
in place of strchr(). |
| 493 |
(set_args): Before `adding' ___SS_MASK to list->optmask, |
| 494 |
the functions remove_duplicates_from_string_vector() and |
| 495 |
sort_string_vector() are called on list->ifs. |
| 496 |
(set_args): Added cases D and O to switch statement. |
| 497 |
Added definition of static variable def_ifs. |
| 498 |
(clean_up_memory): New function. |
| 499 |
(main): def_ifs is properly initialized by means of |
| 500 |
a call to ssplit(). |
| 501 |
(main): clean_up_memory() is registered through atexit() to |
| 502 |
be called at process termination. |
| 503 |
(main): If either the call to atexit() or the |
| 504 |
initialization of def_ifs fails, the program exits after |
| 505 |
printing a suitable error message. |
| 506 |
(main): Changed call to scan_file(). |
| 507 |
Doc fixes. |
| 508 |
|
| 509 |
* Makefile.in (VERSION): From 5.6.1 to 5.8.0. |
| 510 |
(OBJECTS): Added ./linesplit.o. |
| 511 |
(OBJECTSONE): Added ./linesplit.o. |
| 512 |
(OBJECTSTWO): Added ./linesplit.o. |
| 513 |
(SOURCESONE): Added $(srcdir)/linesplit.c. |
| 514 |
(SOURCESTWO): Added $(srcdir)/linesplit.c. |
| 515 |
(copy): Added commands to copy $(srcdir)/linesplit.c and $(srcdir)/linesplit.h. |
| 516 |
Doc fixes. |
| 517 |
|
| 518 |
* main.c: Added instruction to include linesplit.h. |
| 519 |
Added definition of the external variable def_ifs. |
| 520 |
(main): def_ifs is properly initialized by calling the function ssplit(), |
| 521 |
added if statement to check for the successful initialization. |
| 522 |
(main): The memory reserved for list.ifs1 and list.ifs2 is now |
| 523 |
freed by calling delete_string_vector() instead of free(). |
| 524 |
(main): Before exiting the program, the function delete_string_vector() |
| 525 |
is called to free the memory previously reserved for def_ifs. |
| 526 |
(main): variable test is now initialized to 0 instead of -1. |
| 527 |
(main): If the call to open_files() fails, the memory is cleaned now |
| 528 |
before exiting the program. |
| 529 |
(main): If compare_files() returns a negative value, the program |
| 530 |
now exits after printing a suitable error message. |
| 531 |
(main): Now, if either rewind_files() or set_file_pointers() fails, |
| 532 |
the memory is cleaned and all files are properly closed |
| 533 |
before exiting the program. |
| 534 |
Doc fixes. |
| 535 |
|
| 536 |
* io.c, INSTALL: Doc fixes. |
| 537 |
|
| 538 |
* inout.c: Added instruction to include linesplit.h. |
| 539 |
(find_and_hash_each_line): Signature and definition changed, all callers changed. |
| 540 |
(find_and_hash_each_line): for cycle to initialize p and |
| 541 |
let it point to the first field replaced by a call to string_spn(). |
| 542 |
(find_and_hash_each_line): for cycle to initialize eof |
| 543 |
replaced by a call to string_cspn(). |
| 544 |
(find_and_hash_each_line): for cycle to move p to the |
| 545 |
beginning of the next field replaced by a call to string_spn(). |
| 546 |
Added declaration of the external variable def_ifs. |
| 547 |
(read_files): ifs1 and ifs2 redefined as char**. |
| 548 |
(read_files): IFS replaced by def_ifs. |
| 549 |
(read_files): call to find_and_hash_each_line() changed. |
| 550 |
Doc fixes. |
| 551 |
|
| 552 |
* flags.c, errors.c: Doc fixes. |
| 553 |
|
| 554 |
* configure.ac: AC_INIT(...): From version 5.6 to 5.8. |
| 555 |
Doc fixes. |
| 556 |
|
| 557 |
* config.h.in (VERSION): From 5.6.1 to 5.8.0. |
| 558 |
Doc fixes. |
| 559 |
|
| 560 |
* cmpfns.c: Added instruction to include linesplit.h. |
| 561 |
(cmp_lines): Signature and definition changed. All callers changed. |
| 562 |
(cmp_lines): New local variables end_field1, end_field2. |
| 563 |
(cmp_lines): strspn() and strcspn() replaced by |
| 564 |
string_spn() and string_cspn(), respectively. |
| 565 |
(cmp_lines): _SD_MASK replaced by _SU_MASK. |
| 566 |
Added declaration of the external variable def_ifs. |
| 567 |
(cmp_files): ifs1 and ifs2 redefined as char**. |
| 568 |
(cmp_files): IFS replaced by def_ifs. |
| 569 |
(cmp_files): Changed calls to cmp_lines(). |
| 570 |
(cmp_files): The if condition catching any error occurred |
| 571 |
while comparing corresponding lines has been extended: |
| 572 |
the error FILE_IS_BINARY is also caught now. |
| 573 |
(cmp_files): A suitable error message is printed if one |
| 574 |
of the two compared files is binary. |
| 575 |
(cmp_files): Message for reading error fixed. |
| 576 |
(cmp_files): Format of error message fixed. |
| 577 |
Doc fixes. |
| 578 |
|
| 579 |
* AUTHORS, arith.c: Doc fixes. |
| 580 |
|
| 581 |
* analyze.c (diff_2_files): The instruction which sets the value of |
| 582 |
the variable changes has been modified to ensure |
| 583 |
that the returned value is either 0 or 1. |
| 584 |
|
| 585 |
2013-07-11 Ivano Primi <ivprimi(at)libero(dot)it> |
| 586 |
|
| 587 |
* linesplit.h, linesplit.c: New file. |
| 588 |
|
| 589 |
2012-02-22 Ivano Primi <ivprimi(at)libero(dot)it> |
| 590 |
|
| 591 |
* Version 5.6.1 released. |
| 592 |
|
| 593 |
* config.h.in (VERSION): From 5.6.0 to 5.6.1. |
| 594 |
|
| 595 |
* Makefile.in: VERSION changed to 5.6.1. |
| 596 |
|
| 597 |
* NEWS: Added news for version 5.6.1. |
| 598 |
|
| 599 |
* Makefile.in (installdirs): Added $(MKDIR) $(DESTDIR)$(MANDIR). |
| 600 |
|
| 601 |
2012-02-12 Ivano Primi <ivprimi(at)libero(dot)it> |
| 602 |
|
| 603 |
* Version 5.6.0 released. |
| 604 |
|
| 605 |
* side.c (display_half_line): |
| 606 |
label control_char replaced by control_character. |
| 607 |
|
| 608 |
2012-02-05 Ivano Primi <ivprimi(at)libero(dot)it> |
| 609 |
|
| 610 |
* NEWS: Dox fixes. |
| 611 |
|
| 612 |
* main.c (compare_files): |
| 613 |
Newline not any more printed, since it makes the report unclear. |
| 614 |
|
| 615 |
* inout.c (_DEBUG_HASHING_): New Macro. |
| 616 |
_DEBUG_ has been replaced by _DEBUG_HASHING_. |
| 617 |
(find_and_hash_each_line): Fixed improper handling of a file whose last line |
| 618 |
does not have a trailing newline (bucket[-1] no longer used). |
| 619 |
(find_and_hash_each_line): Bug fix imported from GNU Diffutils 3.0. |
| 620 |
(find_and_hash_each_line)[_DEBUG_HASHING_]: Added code for debug. |
| 621 |
(find_identical_ends): Bug fix imported from GNU Diffutils 3.0. |
| 622 |
|
| 623 |
* flags.c: |
| 624 |
(notedown_sdiff_script)[_DEBUG_FLAGSTABLE_]: New debug instruction. |
| 625 |
|
| 626 |
* cmpfns.c (cmp_files): |
| 627 |
Fixed improper handling of files whose last line |
| 628 |
does not have a trailing newline in case filter is on. |
| 629 |
|
| 630 |
* numdiff.h (_DEBUG_HASHING_): New Macro. |
| 631 |
_DEBUG_ has been replaced by _DEBUG_HASHING_. |
| 632 |
|
| 633 |
* options.c (print_help): two help entries fixed. |
| 634 |
|
| 635 |
2012-01-05 Ivano Primi <ivprimi(at)libero(dot)it> |
| 636 |
|
| 637 |
* ndselect.c (print_selhelp): Several fixes to help entries. |
| 638 |
|
| 639 |
* options.c (print_help): Several fixes to help entries. |
| 640 |
|
| 641 |
* cmpfns.c (cmp_lines): |
| 642 |
New constant fieldno_upper_limit, set to 8*FIELDMASK_SIZE. |
| 643 |
(cmp_lines): Constant value 8*FIELDMASK_SIZE replaced everywhere |
| 644 |
by fieldno_upper_limit. |
| 645 |
|
| 646 |
2012-01-03 Ivano Primi <ivprimi(at)libero(dot)it> |
| 647 |
|
| 648 |
* NEWS: Doc fixes. |
| 649 |
|
| 650 |
* ndselect.c (print_line): Signature changed. All callers changed. |
| 651 |
(print_line): Added if-else statement based on the value of |
| 652 |
the variable omit_if_empty. |
| 653 |
(scan_file): New variable omit_empty_lines, added |
| 654 |
initialization code. |
| 655 |
(print_selhelp): New help entry for option `-x', |
| 656 |
help message improved. |
| 657 |
(set_args): Changed initialization of optstring. |
| 658 |
(set_args): Added entry for option "omit-empty-lines" to the array long_options. |
| 659 |
(set_args): Added case 'x' to switch statement. |
| 660 |
|
| 661 |
* ndselect.h (___X_MASK): New macro. |
| 662 |
(___V_MASK): The value of this macro has been changed. |
| 663 |
|
| 664 |
2012-01-02 Ivano Primi <ivprimi(at)libero(dot)it> |
| 665 |
|
| 666 |
* Makefile.in (MANFILETWO): changed description of the manpage. |
| 667 |
|
| 668 |
* NEWS: Doc fixes. |
| 669 |
|
| 670 |
* options.c (print_help): |
| 671 |
New help entry for option -F, other help messages improved. |
| 672 |
(setargs): Changed initialization of optstring. |
| 673 |
(setargs): Added entry for option "formula" to the array long_options. |
| 674 |
(setargs): Added case 'F' to switch statement. |
| 675 |
(setargs): Removed initial if-else if-else statement from case 'r', |
| 676 |
replaced by a single call to thrlist_add. |
| 677 |
(setargs): Parentheses have been written around operator &. |
| 678 |
|
| 679 |
* numdiff.h: Doc fixes. |
| 680 |
|
| 681 |
* ndselect.h (Argslist): |
| 682 |
New fields first_field, last_field, increment, and ifs. |
| 683 |
(___SF_MASK ___SL_MASK ___SI_MASK ___SS_MASK): New macros. |
| 684 |
(___V_MASK): The value of this macro has been changed. |
| 685 |
|
| 686 |
Doc fixes. |
| 687 |
|
| 688 |
* ndselect.c (return_ifs): New function, copied from options.c. |
| 689 |
(we_can_go_on): New function. |
| 690 |
(print_line): New function. |
| 691 |
(scan_file): New variable ifs, then added initialization code for ifs. |
| 692 |
(scan_file): call to fputs replaced by call to print_line (done twice). |
| 693 |
(print_selhelp): New help entries for options -F, -L, -I and -S, |
| 694 |
other help messages improved. |
| 695 |
(set_args): Changed initialization of optstring. |
| 696 |
(set_args): Added entries for "first-field", "last-field", "increment" and |
| 697 |
"separator" options to the array long_options. |
| 698 |
(set_args): Added initialization code for list->first_field, list->last_field, |
| 699 |
list->increment and list->ifs. |
| 700 |
(set_args): Added cases F, L, I and S to switch statement. |
| 701 |
|
| 702 |
Doc fixes. |
| 703 |
|
| 704 |
2011-12-31 Ivano Primi <ivprimi(at)libero(dot)it> |
| 705 |
|
| 706 |
* util.c (lines_differ): |
| 707 |
New constant fieldno_upper_limit, set to 8*FIELDMASK_SIZE. |
| 708 |
(lines_differ): 8*FIELDMASK_SIZE replaced by fieldno_upper_limit everywhere. |
| 709 |
(lines_differ): Error message "Line \"%s\"\ncontains too many fields!\n" |
| 710 |
replaced by a clearer explanation, which is sent to stderr through fprintf. |
| 711 |
|
| 712 |
* thrlist.c (defaults): Added field CURRENCY. |
| 713 |
(thrlist_new): list->beg1, list->beg2, and list->end1, list->end2 |
| 714 |
are initialized now with 0 and FIELDNO_MAX - 1 respectively. |
| 715 |
(thrlist_new): list->double_range_spec is set to zero. |
| 716 |
(set_interval): *b and *e are set now to beg-1 and end-1 respectively. |
| 717 |
(set_intervals): Signature has been changed. All callers changed. |
| 718 |
(set_intervals): Added code to set the variable pointed to by dbl_rng_spec. |
| 719 |
(thrlist_add): New variable dbl_rng_spec. |
| 720 |
(thrlist_add): beg1, beg2, and end1, end2 are initialized |
| 721 |
now with 0 and FIELDNO_MAX - 1 respectively. |
| 722 |
(thrlist_add): pnode->double_range_spec set to dbl_rng_spec. |
| 723 |
(thrlist_cmp): The value returned by this function depends now also on the value |
| 724 |
of pnode->double_range_spec. |
| 725 |
|
| 726 |
Doc fixes. |
| 727 |
|
| 728 |
* options.c (print_version): Copyright statement updated. |
| 729 |
(print_help): Help strings have been updated or improved. |
| 730 |
New help entries for options `-c' and `-B'. |
| 731 |
Added instruction to display the default value of the currency name. |
| 732 |
(VALID_NUMFMT INVALID_NUMFMT INVALID_CURRENCY): New macros. |
| 733 |
(valid_numfmt): Name changed to is_numfmt_valid. All callers changed. |
| 734 |
(valid_numfmt): New variable ptr. |
| 735 |
(valid_numfmt): Macros VALID_NUMFMT, INVALID_NUMFMT and INVALID_CURRENCY are used |
| 736 |
in the 'return' statements in place of hardcoded integer values. |
| 737 |
(valid_numfmt): Added code to check the validity of the string pointed to by |
| 738 |
pnf->currency. |
| 739 |
(setargs): New constant mask_size, defined as FIELDMASK_SIZE*8. |
| 740 |
(setargs): modified string pointed to by optstring. |
| 741 |
(setargs): Added entries for "binary" and "currency" options to the array long_options. |
| 742 |
(setargs): New variables binary, rv and file_id. |
| 743 |
(setargs): Removed variable defaults. |
| 744 |
(setargs): Added initialization of variable binary. |
| 745 |
(setargs): Added initialization of list->nf*.currency. |
| 746 |
(setargs): Added cases 'B' and 'c' to switch statement. |
| 747 |
(setargs): FIELDMASK_SIZE*8 replaced by mask_size everywhere. |
| 748 |
(setargs)[USE_GMP]: Removed call to delR(), removed directive (done twice). |
| 749 |
(setargs): thrlist_add is used in place of str2R to add new elements to |
| 750 |
list->maxabserr and list->maxrelerr. Error handling consequently updated. |
| 751 |
(setargs): tests "if (!valid_numfmt(&list->nf*) )" replaced by |
| 752 |
"if ( (rv = is_numfmt_valid(&list->nf*)) == INVALID_NUMFMT )" |
| 753 |
(setargs): Added code to handle the cases when is_numfmt_valid returns INVALID_CURRENCY. |
| 754 |
|
| 755 |
Doc fixes. |
| 756 |
|
| 757 |
* numutil.c (anum): |
| 758 |
New variable length, used to store the length of the string pnf->currency. |
| 759 |
Added code to skip the currency name, if specified. |
| 760 |
(snum): New variable length, used to store the length of the string pnf->currency. |
| 761 |
Added code to skip the currency name, if specified. |
| 762 |
|
| 763 |
Doc fixes. |
| 764 |
|
| 765 |
* numdiff.h (currency): New variable. |
| 766 |
(maxabserr maxrelerr): Variable type has been changed. |
| 767 |
(CURRENCY): New macro. |
| 768 |
(binary): New variable. |
| 769 |
|
| 770 |
Doc fixes. |
| 771 |
|
| 772 |
* new.c (bc_a2num): New variable length, used to store |
| 773 |
the length of the string pnf->currency. Added |
| 774 |
code to skip the currency name, if specified. |
| 775 |
|
| 776 |
Doc fixes. |
| 777 |
|
| 778 |
* ndselect.c (print_selversion): Copyright statement updated. |
| 779 |
Doc fixes. |
| 780 |
|
| 781 |
* Makefile.in: VERSION set to 5.6.0. |
| 782 |
(mandir MANDIR HELP2MAN MANFILE MANFILETWO): New variables. |
| 783 |
(OBJECTSTWO): Added ./getopt1.o. |
| 784 |
(SOURCESTWO): Added $(srcdir)/getopt1.c. |
| 785 |
(man $(MANFILE) $(MANFILETWO)): New targets |
| 786 |
for creation of manpages. |
| 787 |
(install): Added installation of manpages. |
| 788 |
(uninstall): Added removal of files |
| 789 |
$(PACKAGE).1 and $(PACKAGETWO).1, i.e. |
| 790 |
removal of numdiff and ndselect manpages. |
| 791 |
(maintainer-clean): Added cleaning instructions for |
| 792 |
$(MANFILE) and $(MANFILETWO). |
| 793 |
(copy): Added instructions to copy $(MANFILE) |
| 794 |
and (MANFILETWO) from docs directory to tarball directory. |
| 795 |
|
| 796 |
* main.c (init_mpa_support): list->maxabserr and |
| 797 |
list->maxrelerr are now initialized through |
| 798 |
a call to thrlist_new(), instead of using initR(). |
| 799 |
(dismiss_mpa_support): list->maxabserr and |
| 800 |
list->maxrelerr are now disposed through a call |
| 801 |
to thrlist_dispose(), instead of using delR(). |
| 802 |
(main): variable defaults removed. |
| 803 |
Doc fixes. |
| 804 |
|
| 805 |
* configure.ac: AC_INIT(...): From version 5.2 to 5.6. |
| 806 |
|
| 807 |
* NEWS: Added news for version 5.6.0. |
| 808 |
|
| 809 |
2011-12-30 Ivano Primi <ivprimi(at)libero(dot)it> |
| 810 |
|
| 811 |
* README, read_line.c, ndselect.h, io.c, INSTALL: Doc fixes. |
| 812 |
|
| 813 |
* inout.c (find_and_hash_each_line): New constant fieldno_upper_limit, |
| 814 |
set to FIELDMASK_SIZE*8. |
| 815 |
(find_and_hash_each_line): Added test "fieldno < fieldno_upper_limit" to for cycle. |
| 816 |
(find_and_hash_each_line): Added error handling in case |
| 817 |
fieldno >= fieldno_upper_limit. |
| 818 |
|
| 819 |
* flags.c, errors.c: Doc fixes. |
| 820 |
|
| 821 |
* configure.ac: |
| 822 |
AC_CHECK_LIB(gmp, __gmpz_init): Do not search for the GMP library |
| 823 |
if its use has been turned off through --disable-gmp or |
| 824 |
--enable-gmp=no. |
| 825 |
AC_CHECK_LIB(intl, setlocale): If the support for NLS is on, search |
| 826 |
for the function setlocale in libintl (this fixes building bug |
| 827 |
under Cygwin). |
| 828 |
Doc fixes. |
| 829 |
|
| 830 |
* config.h.in: VERSION changed to 5.6.0. |
| 831 |
Doc fixes. |
| 832 |
|
| 833 |
* cmpfns.c (cmp_fields): Signature changed. All callers changed. |
| 834 |
(cmp_fields): Calls to cmp replaced by calls to thrlist_cmp. |
| 835 |
(cmp_lines): Error message "@ Line %lu in file \"%s\" contains too many fields!\n" replaced by a clearer message. |
| 836 |
(cmp_files): Error message "\n*** End of file \"%s\" reached while trying to read line %lu.\n" replaced by clearer message. |
| 837 |
Doc fixes. |
| 838 |
|
| 839 |
* AUTHORS, arith.c: Doc fixes. |
| 840 |
|
| 841 |
2011-10-30 Ivano Primi <ivprimi(at)libero(dot)it> |
| 842 |
|
| 843 |
* Makefile.in (OBJECTS OBJECTSONE): Added ./thrlist.o. |
| 844 |
(SOURCESONE): Added source $(srcdir)/thrlist.c. |
| 845 |
(copy): Added instruction to copy thrlist.c |
| 846 |
from source directory to tarball directory. |
| 847 |
|
| 848 |
* numdiff.h (THRLIST_OK THRLIST_INVALID_FORMAT THRLIST_INVALID_RANGES): |
| 849 |
New macros. |
| 850 |
(__thrlist_node): New struct. |
| 851 |
(thrlist_node): Alias for __thrlist_node. |
| 852 |
(thrlist): Alias for thrlist_node*. |
| 853 |
(thrlist_new thrlist_add thrlist_cmp thrlist_dispose): Added declarations. |
| 854 |
|
| 855 |
* thrlist.c: New file. |
| 856 |
|
| 857 |
2011-10-01 Ivano Primi <ivprimi(at)libero(dot)it> |
| 858 |
|
| 859 |
* side.c (display_half_line): New function. |
| 860 |
(print_1overview_line): New function. |
| 861 |
|
| 862 |
* options.c (print_help): New help entry for option -O. |
| 863 |
(setargs): modified string pointed to by optstring. |
| 864 |
(setargs): Added entry for "overview" option to the array long_options. |
| 865 |
(setargs): Added case O to switch statement. |
| 866 |
(setargs): Added code to initialize list->output_mode to OUTMODE_OVERVIEW. |
| 867 |
|
| 868 |
* numdiff.h (_SO_MASK): New macro for option -O. |
| 869 |
(_SS_MASK _SI_MASK _SH_MASK _M_MASK _V_MASK): The values of these macros have been changed. |
| 870 |
(OUTMODE_OVERVIEW): New macro. |
| 871 |
(print_1overview_line): Added declaration. |
| 872 |
|
| 873 |
Doc fixes. |
| 874 |
|
| 875 |
* Makefile.in: VERSION changed to 5.3.0. |
| 876 |
|
| 877 |
* config.h.in: VERSION set to 5.3.0. |
| 878 |
|
| 879 |
* cmpfns.c (cmp_files): |
| 880 |
Addition of code for the implementation of the overview mode, |
| 881 |
i.e. added calls to the function print_1overview_line. In case the compared |
| 882 |
files are equal, print_1overview_line is called only if suppress_common_lines |
| 883 |
is false (0). |
| 884 |
|
| 885 |
2010-01-24 Ivano Primi <ivprimi(at)libero(dot)it> |
| 886 |
|
| 887 |
Version 5.2.1 released. |
| 888 |
|
| 889 |
2010-01-24 Ivano Primi <ivprimi(at)libero(dot)it> |
| 890 |
|
| 891 |
* Makefile.in: VERSION changed to 5.2.1. |
| 892 |
|
| 893 |
* config.h.in (VERSION): From 5.2.0 to 5.2.1. |
| 894 |
|
| 895 |
* NEWS: Added news for version 5.2.1. |
| 896 |
|
| 897 |
* system.h: [!ENABLE_NLS] (ngettext): Macro definition. |
| 898 |
|
| 899 |
|
| 900 |
2010-01-07 Ivano Primi <ivprimi(at)libero(dot)it> |
| 901 |
|
| 902 |
Version 5.2.0 released. |
| 903 |
|
| 904 |
2010-01-07 Ivano Primi <ivprimi(at)libero(dot)it> |
| 905 |
|
| 906 |
* util.c: Doc fixes. |
| 907 |
|
| 908 |
* util.c: New file. |
| 909 |
|
| 910 |
* side.c: Doc fixes. |
| 911 |
|
| 912 |
* side.c: New file. |
| 913 |
|
| 914 |
* inout.c: Doc fixes. |
| 915 |
|
| 916 |
* inout.c: New file. |
| 917 |
|
| 918 |
* analyze.c: Doc fixes. |
| 919 |
|
| 920 |
* analyze.c: New file. |
| 921 |
|
| 922 |
* number.c: Doc fixes. |
| 923 |
|
| 924 |
* options.c: (print_version) [!USE_GMP]: Message string fixed. |
| 925 |
(print_help): Message string fixed. |
| 926 |
|
| 927 |
2010-01-06 Ivano Primi <ivprimi(at)libero(dot)it> |
| 928 |
|
| 929 |
* NEWS, INSTALL: Doc fixes. |
| 930 |
|
| 931 |
2010-01-05 Ivano Primi <ivprimi(at)libero(dot)it> |
| 932 |
|
| 933 |
* ndselect.c (print_selversion): Fixed Copyright string. |
| 934 |
|
| 935 |
* read_line.c: Doc fixes. |
| 936 |
|
| 937 |
* options.c: Doc fixes. |
| 938 |
|
| 939 |
(print_version): Fixed Copyright string. |
| 940 |
|
| 941 |
* numutil.c, numdiff.h, number.c: Doc fixes. |
| 942 |
|
| 943 |
* number.c: New file. |
| 944 |
|
| 945 |
* new.c, ndselect.h: Doc fixes. |
| 946 |
|
| 947 |
* ndselect.h: New file. |
| 948 |
|
| 949 |
* ndselect.c, main.c, io.c, flags.c: Doc fixes. |
| 950 |
|
| 951 |
* flags.c: New file. |
| 952 |
|
| 953 |
* errors.c, configure.ac, config.h.in, cmpfns.c, arith.c, README: |
| 954 |
Doc fixes. |
| 955 |
|
| 956 |
* README: New file. |
| 957 |
|
| 958 |
* Makefile.in, INSTALL: Doc fixes. |
| 959 |
|
| 960 |
* INSTALL, BUGS: New file. |
| 961 |
|
| 962 |
* AUTHORS: Doc fixes. |
| 963 |
|
| 964 |
* AUTHORS: New file. |
| 965 |
|
| 966 |
2010-01-03 Ivano Primi <ivprimi(at)libero(dot)it> |
| 967 |
|
| 968 |
* ndselect.c: [USE_GMP]: Removed zalloc. |
| 969 |
string.h and numutil.c are not anymore included. |
| 970 |
|
| 971 |
Removed declaration of read_line. |
| 972 |
Include read_line.c. |
| 973 |
|
| 974 |
* Makefile.in (SOURCESONE): Added $(srcdir)/read_line.c. |
| 975 |
(OBJECTSTWO): Removed ./arith.o and ./io.o. |
| 976 |
(SOURCESTWO): Removed $(srcdir)/arith.c and $(srcdir)/io.c. |
| 977 |
Added $(srcdir)/read_line.c. |
| 978 |
(copy): Added instruction to copy read_line.c |
| 979 |
from source directory to tarball directory. |
| 980 |
|
| 981 |
* io.c: Doc-fixes: Removed unuseful comments. |
| 982 |
(read_line): Moved to file read_line.c. |
| 983 |
Added instruction to include read_line.c. |
| 984 |
|
| 985 |
* read_line.c, io.c: New file. |
| 986 |
|
| 987 |
* arith.c: [USE_GMP] (str2C): Replaced isspace by is_space. |
| 988 |
Replaced '+' by POS_SIGN and '-' by NEG_SIGN. |
| 989 |
[!USE_GMP] (str2C): Replaced isspace by is_space. |
| 990 |
Replaced '+' by POS_SIGN and '-' by NEG_SIGN. |
| 991 |
|
| 992 |
* ndselect.c (setargs): Replaced isspace by is_space. |
| 993 |
|
| 994 |
* numdiff.h (is_digit, is_punct, is_print): Macro re-definition. |
| 995 |
(is_space): Macro definition. The macro isspace has been |
| 996 |
replaced everywhere by is_space. |
| 997 |
|
| 998 |
* system.h: New file. |
| 999 |
|
| 1000 |
* numutil.c (anum, snum): Replaced toupper by TOLOWER. |
| 1001 |
(anum, acxnum, snum, scxnum): Replaced isspace by is_space. |
| 1002 |
|
| 1003 |
* cmpfns.c (strNcasecmp): Replaced tolower by TOLOWER. |
| 1004 |
|
| 1005 |
* new.c (bc_a2num): Replaced toupper by TOLOWER. |
| 1006 |
Replaced isspace by is_space. |
| 1007 |
|
| 1008 |
* new.c: New file. |
| 1009 |
|
| 1010 |
2009-12-30 Ivano Primi <ivprimi(at)libero(dot)it> |
| 1011 |
|
| 1012 |
* NEWS: Added news for version 5.2.0. |
| 1013 |
|
| 1014 |
* NEWS: New file. |
| 1015 |
|
| 1016 |
* configure.ac: New option --enable-gmp / --disable-gmp. |
| 1017 |
Usage of GNU MP is enabled by default. |
| 1018 |
|
| 1019 |
* arith.c: HAVE_LIBGMP has been replaced by USE_GMP. |
| 1020 |
(Epsilon, MEpsilon): Removed. |
| 1021 |
(mpa_define_epsilon, mpa_undef_epsilon): Removed. |
| 1022 |
[USE_GMP] (init_mpa): Signature and definition (argument |
| 1023 |
iscale is used in place of MAX_ISCALE) changed. |
| 1024 |
All callers in other files changed. |
| 1025 |
[!USE_GMP] (init_mpa): Signature changed. |
| 1026 |
All callers in other files changed. |
| 1027 |
(copyR, copyC): Signature and definition changed. |
| 1028 |
All callers in other files changed. |
| 1029 |
[USE_GMP] (str2R, str2C): Calls to mpf_a2num() changed. |
| 1030 |
(cmp, is0): Signature and definition changed. |
| 1031 |
All callers in other files changed. |
| 1032 |
[USE_GMP] (fprintno): Test (u == Inf) has been correctly rewritten. |
| 1033 |
[USE_GMP] (end_mpa): Variable Inf is also cleared now. |
| 1034 |
|
| 1035 |
* main.c (init_mpa_support): Call to init_mpa() changed. |
| 1036 |
(print_statistics) [USE_GMP]: Added code to initialize qm_abserr and qm_relerr. |
| 1037 |
(print_statistics): Removed commented out old code. |
| 1038 |
(print_statistics): Changed calls to copyR(). |
| 1039 |
(main): Removed calls to mpa_define_epsilon() and mpa_undef_epsilon(). |
| 1040 |
|
| 1041 |
* ndselect.c: [USE_GMP] (zalloc): New function. |
| 1042 |
[USE_GMP]: Include numutil.c. |
| 1043 |
|
| 1044 |
* options.c: |
| 1045 |
(print_version) [USE_GMP]: Added statement on the way the program has been built. |
| 1046 |
(print_version) [!USE_GMP]: Modified statement on the way the program has been built. |
| 1047 |
(set_args) [!USE_GMP]: Removed code to avoid memory leak (not needed in this case |
| 1048 |
and even dangerous). |
| 1049 |
|
| 1050 |
* errors.c (out_of_memory): |
| 1051 |
Added missing argument in the call to fprintf(). |
| 1052 |
|
| 1053 |
* numutil.c: HAVE_LIBGMP has been replaced by USE_GMP. |
| 1054 |
[USE_GMP](mpf_a2num): The case when the number returned by snum() |
| 1055 |
is zero is now correctly handled. |
| 1056 |
|
| 1057 |
* cmpfns.c (cmp, is0, copyR): Calls changed. |
| 1058 |
|
| 1059 |
* numdiff.h (USE_GMP): New Macro. |
| 1060 |
HAVE_LIBGMP has been replaced by USE_GMP. |
| 1061 |
(MAX_EPXN, MIN_EXPN): They are now constant values of 'long int' type. |
| 1062 |
(cmp, is0, init_mpa, copyR, copyC): Redefinition of signature. |
| 1063 |
All callers changed. |
| 1064 |
(mpa_define_epsilon, mpa_undef_epsilon): Removed. |
| 1065 |
|
| 1066 |
* errors.c, options.c, ndselect.c, main.c, cmpfns.c: New file. |
| 1067 |
|
| 1068 |
2009-12-29 Ivano Primi <ivprimi(at)libero(dot)it> |
| 1069 |
|
| 1070 |
* configure.ac: AC_INIT(...): From version 5.0 to 5.2. |
| 1071 |
|
| 1072 |
* config.h.in (HAVE_LIBGMP): New Macro. |
| 1073 |
(HAVE_LOCALECONV): New Macro. |
| 1074 |
(VERSION): From 5.0.0 to 5.2.0. |
| 1075 |
|
| 1076 |
* Makefile.in: VERSION changed to 5.2.0. |
| 1077 |
|
| 1078 |
* config.h.in: New file. |
| 1079 |
|
| 1080 |
* numutil.c: |
| 1081 |
[HAVE_LIBGMP] (mpf_a2num): Bug fixes after running a text program. |
| 1082 |
|
| 1083 |
* numutil.c: |
| 1084 |
[HAVE_LIBGMP] (mpf_a2num): Removed memory leak + Doc fixes. |
| 1085 |
|
| 1086 |
* arith.c: [HAVE_LIBGMP] (fprintno): Memory leak removed |
| 1087 |
|
| 1088 |
2009-12-28 Ivano Primi <ivprimi(at)libero(dot)it> |
| 1089 |
|
| 1090 |
* numutil.c: [HAVE_LOCALECONV && HAVE_LIBGMP]: Include locale.h. |
| 1091 |
[HAVE_LIBGMP] (mpf_a2num): New function. |
| 1092 |
|
| 1093 |
* numutil.c: New file. |
| 1094 |
|
| 1095 |
* configure.ac: AC_CHECK_FUNCS(...): Check for localeconv added. |
| 1096 |
|
| 1097 |
* numdiff.h (CHAR_ONE CHAR_NINE): Macro definition. |
| 1098 |
[HAVE_LIBGMP] (mpf_a2num): Declaration. |
| 1099 |
|
| 1100 |
* arith.c: [HAVE_LIBGMP] (round_far_from_zero fprintno): New functions. |
| 1101 |
[HAVE_LIBGMP] (printno, debug_printno): Transformed into wrappers of the function fprintno. |
| 1102 |
[HAVE_LIBGMP] (str2R): Call to mpf_a2num changed in view of the actual definition of this function. |
| 1103 |
|
| 1104 |
* arith.c: |
| 1105 |
[HAVE_LIBGMP] (Zero, Ten, Inf, Epsilon, MEpsilon): Definition of variables. |
| 1106 |
[HAVE_LIBGMP] (init_mpa, mpa_define_epsilon, initR, initC, copyR, copyC) |
| 1107 |
(str2R, str2C, add, square, divide, divide_by_int, square_root) |
| 1108 |
(Cabs, Csub, cmp, is0, smart_cmp, printno, debug_printno) |
| 1109 |
(delR, delC, mpa_undef_epsilon, end_mpa): New functions. |
| 1110 |
[!HAVE_LIBGMP] (copyR, copyC): Re-definition according to the new signature. |
| 1111 |
|
| 1112 |
* numdiff.h (copyR copyC): Redefinition of signature. |
| 1113 |
All callers changed. |
| 1114 |
|
| 1115 |
2009-12-13 Ivano Primi <ivprimi(at)libero(dot)it> |
| 1116 |
|
| 1117 |
* Makefile.in: Added createdirs, copy and tarball targets. |
| 1118 |
Target dist rewritten. |
| 1119 |
|
| 1120 |
* Makefile.in, arith.c: New file. |
| 1121 |
|
| 1122 |
2009-12-12 Ivano Primi <ivprimi(at)libero(dot)it> |
| 1123 |
|
| 1124 |
* numdiff.h: [HAVE_LIBGMP] (Real Complex): Definition of types. |
| 1125 |
|
| 1126 |
* numdiff.h: New file. |
| 1127 |
|
| 1128 |
* configure.ac: AC_CHECK_LIB(gmp, __gmpz_init): Check for GNUMP added. |
| 1129 |
|
| 1130 |
* configure.ac: New file. |
| 1131 |
|
| 1132 |
2009-11-31 Ivano Primi <ivprimi(at)libero(dot)it> |
| 1133 |
|
| 1134 |
Version 5.0.0 released. |
| 1135 |
|