"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pcregrep.c" between
pcre-8.42.tar.bz2 and pcre-8.43.tar.bz2

About: The PCRE library implements Perl compatible regular expression pattern matching.

pcregrep.c  (pcre-8.42.tar.bz2):pcregrep.c  (pcre-8.43.tar.bz2)
skipping to change at line 2205 skipping to change at line 2205
strerror(errno)); strerror(errno));
return 2; return 2;
} }
while ((nextfile = readdirectory(dir)) != NULL) while ((nextfile = readdirectory(dir)) != NULL)
{ {
int frc; int frc;
int fnlength = strlen(pathname) + strlen(nextfile) + 2; int fnlength = strlen(pathname) + strlen(nextfile) + 2;
if (fnlength > 2048) if (fnlength > 2048)
{ {
fprintf(stderr, "pcre2grep: recursive filename is too long\n"); fprintf(stderr, "pcregrep: recursive filename is too long\n");
rc = 2; rc = 2;
break; break;
} }
sprintf(buffer, "%s%c%s", pathname, FILESEP, nextfile); sprintf(buffer, "%s%c%s", pathname, FILESEP, nextfile);
frc = grep_or_recurse(buffer, dir_recurse, FALSE); frc = grep_or_recurse(buffer, dir_recurse, FALSE);
if (frc > 1) rc = frc; if (frc > 1) rc = frc;
else if (frc == 0 && rc == 1) rc = 0; else if (frc == 0 && rc == 1) rc = 0;
} }
closedirectory(dir); closedirectory(dir);
skipping to change at line 2975 skipping to change at line 2975
if (only_matching != NULL || file_offsets || line_offsets) if (only_matching != NULL || file_offsets || line_offsets)
show_only_matching = TRUE; show_only_matching = TRUE;
/* If a locale has not been provided as an option, see if the LC_CTYPE or /* If a locale has not been provided as an option, see if the LC_CTYPE or
LC_ALL environment variable is set, and if so, use it. */ LC_ALL environment variable is set, and if so, use it. */
if (locale == NULL) if (locale == NULL)
{ {
locale = getenv("LC_ALL"); locale = getenv("LC_ALL");
locale_from = "LCC_ALL"; locale_from = "LC_ALL";
} }
if (locale == NULL) if (locale == NULL)
{ {
locale = getenv("LC_CTYPE"); locale = getenv("LC_CTYPE");
locale_from = "LC_CTYPE"; locale_from = "LC_CTYPE";
} }
/* If a locale is set, use it to generate the tables the PCRE needs. Otherwise, /* If a locale is set, use it to generate the tables the PCRE needs. Otherwise,
pcretables==NULL, which causes the use of default tables. */ pcretables==NULL, which causes the use of default tables. */
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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