/[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 282 by ph10, Wed Dec 5 20:56:03 2007 UTC revision 283 by ph10, Fri Dec 7 19:59:19 2007 UTC
# Line 322  return isatty(fileno(stdout)); Line 322  return isatty(fileno(stdout));
322    
323  /* I (Philip Hazel) have no means of testing this code. It was contributed by  /* I (Philip Hazel) have no means of testing this code. It was contributed by
324  Lionel Fourquaux. David Burgess added a patch to define INVALID_FILE_ATTRIBUTES  Lionel Fourquaux. David Burgess added a patch to define INVALID_FILE_ATTRIBUTES
325  when it did not exist. */  when it did not exist. David Byron added a patch that moved the #include of
326    <windows.h> to before the INVALID_FILE_ATTRIBUTES definition rather than after.
327    */
328    
329  #elif HAVE_WINDOWS_H  #elif HAVE_WINDOWS_H
330    
# Line 333  when it did not exist. */ Line 334  when it did not exist. */
334  #ifndef WIN32_LEAN_AND_MEAN  #ifndef WIN32_LEAN_AND_MEAN
335  # define WIN32_LEAN_AND_MEAN  # define WIN32_LEAN_AND_MEAN
336  #endif  #endif
337    
338    #include <windows.h>
339    
340  #ifndef INVALID_FILE_ATTRIBUTES  #ifndef INVALID_FILE_ATTRIBUTES
341  #define INVALID_FILE_ATTRIBUTES 0xFFFFFFFF  #define INVALID_FILE_ATTRIBUTES 0xFFFFFFFF
342  #endif  #endif
343    
 #include <windows.h>  
   
344  typedef struct directory_type  typedef struct directory_type
345  {  {
346  HANDLE handle;  HANDLE handle;
# Line 423  regular if they are not directories. */ Line 425  regular if they are not directories. */
425    
426  int isregfile(char *filename)  int isregfile(char *filename)
427  {  {
428  return !isdirectory(filename)  return !isdirectory(filename);
429  }  }
430    
431    
# Line 434  return !isdirectory(filename) Line 436  return !isdirectory(filename)
436  static BOOL  static BOOL
437  is_stdout_tty(void)  is_stdout_tty(void)
438  {  {
439  FALSE;  return FALSE;
440  }  }
441    
442    

Legend:
Removed from v.282  
changed lines
  Added in v.283

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12