/[pcre]/code/trunk/pcregrep.c
ViewVC logotype

Diff of /code/trunk/pcregrep.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 878 by ph10, Wed Dec 28 17:16:11 2011 UTC revision 879 by ph10, Sun Jan 15 15:50:06 2012 UTC
# Line 1573  grep_or_recurse(char *pathname, BOOL dir Line 1573  grep_or_recurse(char *pathname, BOOL dir
1573  int rc = 1;  int rc = 1;
1574  int sep;  int sep;
1575  int frtype;  int frtype;
 int pathlen;  
1576  void *handle;  void *handle;
1577  FILE *in = NULL;           /* Ensure initialized */  FILE *in = NULL;           /* Ensure initialized */
1578    
# Line 1585  gzFile ingz = NULL; Line 1584  gzFile ingz = NULL;
1584  BZFILE *inbz2 = NULL;  BZFILE *inbz2 = NULL;
1585  #endif  #endif
1586    
1587    #if defined SUPPORT_LIBZ || defined SUPPORT_LIBZ2
1588    int pathlen;
1589    #endif
1590    
1591  /* If the file name is "-" we scan stdin */  /* If the file name is "-" we scan stdin */
1592    
1593  if (strcmp(pathname, "-") == 0)  if (strcmp(pathname, "-") == 0)
# Line 1664  skipping was not requested. The scan pro Line 1667  skipping was not requested. The scan pro
1667  argument at top level, we don't show the file name, unless we are only showing  argument at top level, we don't show the file name, unless we are only showing
1668  the file name, or the filename was forced (-H). */  the file name, or the filename was forced (-H). */
1669    
1670    #if defined SUPPORT_LIBZ || defined SUPPORT_LIBZ2
1671  pathlen = (int)(strlen(pathname));  pathlen = (int)(strlen(pathname));
1672    #endif
1673    
1674  /* Open using zlib if it is supported and the file name ends with .gz. */  /* Open using zlib if it is supported and the file name ends with .gz. */
1675    

Legend:
Removed from v.878  
changed lines
  Added in v.879

  ViewVC Help
Powered by ViewVC 1.1.5