[BACK]Return to filename_cmp.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / gpl3 / binutils / dist / libiberty

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/external/gpl3/binutils/dist/libiberty/filename_cmp.c between version 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2013/09/29 13:46:37 version 1.1.1.3, 2016/01/29 12:45:18
Line 24 
Line 24 
 #include <string.h>  #include <string.h>
 #endif  #endif
   
   #ifdef HAVE_STDLIB_H
   #include <stdlib.h>
   #endif
   
 #include "filenames.h"  #include "filenames.h"
 #include "safe-ctype.h"  #include "safe-ctype.h"
   #include "libiberty.h"
   
 /*  /*
   
Line 190  filename_eq (const void *s1, const void 
Line 195  filename_eq (const void *s1, const void 
   /* The casts are for -Wc++-compat.  */    /* The casts are for -Wc++-compat.  */
   return filename_cmp ((const char *) s1, (const char *) s2) == 0;    return filename_cmp ((const char *) s1, (const char *) s2) == 0;
 }  }
   
   /*
   
   @deftypefn Extension int canonical_filename_eq (const char *@var{a}, const char *@var{b})
   
   Return non-zero if file names @var{a} and @var{b} are equivalent.
   This function compares the canonical versions of the filenames as returned by
   @code{lrealpath()}, so that so that different file names pointing to the same
   underlying file are treated as being identical.
   
   @end deftypefn
   
   */
   
   int
   canonical_filename_eq (const char * a, const char * b)
   {
     char * ca = lrealpath(a);
     char * cb = lrealpath(b);
     int res = filename_eq (ca, cb);
     free (ca);
     free (cb);
     return res;
   }

Legend:
Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3

CVSweb <webmaster@jp.NetBSD.org>