[BACK]Return to qsort.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / stdlib

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

Diff for /src/lib/libc/stdlib/qsort.c between version 1.13 and 1.14

version 1.13, 2003/08/07 16:43:42 version 1.14, 2005/12/24 21:11:16
Line 44  __RCSID("$NetBSD$");
Line 44  __RCSID("$NetBSD$");
 #include <errno.h>  #include <errno.h>
 #include <stdlib.h>  #include <stdlib.h>
   
 static __inline char    *med3 __P((char *, char *, char *,  static inline char      *med3 __P((char *, char *, char *,
     int (*)(const void *, const void *)));      int (*)(const void *, const void *)));
 static __inline void     swapfunc __P((char *, char *, size_t, int));  static inline void       swapfunc __P((char *, char *, size_t, int));
   
 #define min(a, b)       (a) < (b) ? a : b  #define min(a, b)       (a) < (b) ? a : b
   
Line 67  static __inline void  swapfunc __P((char
Line 67  static __inline void  swapfunc __P((char
 #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \  #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \
         es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;          es % sizeof(long) ? 2 : es == sizeof(long)? 0 : 1;
   
 static __inline void  static inline void
 swapfunc(a, b, n, swaptype)  swapfunc(a, b, n, swaptype)
         char *a, *b;          char *a, *b;
         size_t n;          size_t n;
Line 89  swapfunc(a, b, n, swaptype)
Line 89  swapfunc(a, b, n, swaptype)
   
 #define vecswap(a, b, n) if ((n) > 0) swapfunc((a), (b), (size_t)(n), swaptype)  #define vecswap(a, b, n) if ((n) > 0) swapfunc((a), (b), (size_t)(n), swaptype)
   
 static __inline char *  static inline char *
 med3(a, b, c, cmp)  med3(a, b, c, cmp)
         char *a, *b, *c;          char *a, *b, *c;
         int (*cmp) __P((const void *, const void *));          int (*cmp) __P((const void *, const void *));

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

CVSweb <webmaster@jp.NetBSD.org>