"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/option.c" between
dwdiff-2.1.1.tar.bz2 and dwdiff-2.1.2.tar.bz2

About: dwdiff is a diff program that operates at the word level instead of the line level.

option.c  (dwdiff-2.1.1.tar.bz2):option.c  (dwdiff-2.1.2.tar.bz2)
skipping to change at line 470 skipping to change at line 470
} }
static void initializeOptions(void) { static void initializeOptions(void) {
/* Initialise options to correct values */ /* Initialise options to correct values */
memset(&option, 0, sizeof(option)); memset(&option, 0, sizeof(option));
option.printDeleted = option.printAdded = option.printCommon = true; option.printDeleted = option.printAdded = option.printCommon = true;
option.matchContext = 2; option.matchContext = 2;
option.output = stdout; option.output = stdout;
initOptions(); initOptions();
ONLY_UNICODE(option.decomposition = UNORM_NFD;) UErrorCode error = U_ZERO_ERROR;
ONLY_UNICODE(option.decomposition = unorm2_getNFDInstance(&error);)
option.needStartStop = true; option.needStartStop = true;
option.paraDelimMarker = "<-->"; option.paraDelimMarker = "<-->";
option.paraDelimMarkerLength = strlen(option.paraDelimMarker); option.paraDelimMarkerLength = strlen(option.paraDelimMarker);
option.profile = "default"; option.profile = "default";
} }
static void completeDefaults(void) { static void completeDefaults(void) {
/* Check and set some values */ /* Check and set some values */
skipping to change at line 584 skipping to change at line 585
if (!option.dwfilterMode) { if (!option.dwfilterMode) {
option.printCommon = false; option.printCommon = false;
option.needMarkers = true; option.needMarkers = true;
} }
END_OPTION END_OPTION
OPTION('i', "ignore-case", NO_ARG) OPTION('i', "ignore-case", NO_ARG)
option.ignoreCase = true; option.ignoreCase = true;
END_OPTION END_OPTION
#ifdef USE_UNICODE #ifdef USE_UNICODE
OPTION('I', "ignore-formatting", NO_ARG) OPTION('I', "ignore-formatting", NO_ARG)
UErrorCode error = U_ZERO_ERROR;
if (UTF8Mode) if (UTF8Mode)
option.decomposition = UNORM_NFKD; option.decomposition = unorm2_getNFKDInstance(&er ror);
else else
fatal(_("Option %.*s is only supported for UTF-8 mode\n"), OPTPRARG); fatal(_("Option %.*s is only supported for UTF-8 mode\n"), OPTPRARG);
#else #else
OPTION('I', "ignore-formatting", NO_ARG) OPTION('I', "ignore-formatting", NO_ARG)
fatal(_("Support for option %.*s is not compiled into thi s version of dwdiff\n"), OPTPRARG); fatal(_("Support for option %.*s is not compiled into thi s version of dwdiff\n"), OPTPRARG);
#endif #endif
END_OPTION END_OPTION
OPTION('s', "statistics", NO_ARG) OPTION('s', "statistics", NO_ARG)
if (!option.dwfilterMode) { if (!option.dwfilterMode) {
option.statistics = true; option.statistics = true;
 End of changes. 3 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)