- Timestamp:
- Oct 11, 2008 5:14:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/file.c
r1797 r1833 56 56 file_hash_cmp (const void *x, const void *y) 57 57 { 58 #ifdef KMK 59 /* since the names live in the strcache, there is a raging likelylood 60 that we'll match on the string pointer. Which is wee bit faster... */ 61 struct file const *xf = ((struct file const *) x); 62 struct file const *yf = ((struct file const *) y); 63 if (xf->hname == yf->hname) 64 return 0; 65 return_ISTRING_COMPARE (xf->hname, yf->hname); 66 #else 58 67 return_ISTRING_COMPARE (((struct file const *) x)->hname, 59 68 ((struct file const *) y)->hname); 69 #endif 60 70 } 61 71
Note:
See TracChangeset
for help on using the changeset viewer.