added missing stddef includes

Tue, 02 Oct 2012 11:18:47 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 02 Oct 2012 11:18:47 +0200
changeset 38
35f67a8ef875
parent 37
ec296899d12f
child 39
bf8ab7bb74ff

added missing stddef includes

added no break comments

ucx/map.c file | annotate | diff | comparison | revisions
ucx/map.h file | annotate | diff | comparison | revisions
ucx/mempool.h file | annotate | diff | comparison | revisions
ucx/string.h file | annotate | diff | comparison | revisions
     1.1 --- a/ucx/map.c	Thu Aug 16 12:36:23 2012 +0200
     1.2 +++ b/ucx/map.c	Tue Oct 02 11:18:47 2012 +0200
     1.3 @@ -138,8 +138,11 @@
     1.4  
     1.5      switch (len) {
     1.6          case 3: h ^= (data[i + 2] & 0xFF) << 16;
     1.7 +        /* no break */
     1.8          case 2: h ^= (data[i + 1] & 0xFF) << 8;
     1.9 +        /* no break */
    1.10          case 1: h ^= (data[i + 0] & 0xFF); h *= m;
    1.11 +        /* no break */
    1.12      }
    1.13  
    1.14      h ^= h >> 13;
     2.1 --- a/ucx/map.h	Thu Aug 16 12:36:23 2012 +0200
     2.2 +++ b/ucx/map.h	Tue Oct 02 11:18:47 2012 +0200
     2.3 @@ -7,6 +7,7 @@
     2.4  
     2.5  #include "ucx.h"
     2.6  #include "string.h"
     2.7 +#include <stddef.h>
     2.8  
     2.9  #ifdef	__cplusplus
    2.10  extern "C" {
     3.1 --- a/ucx/mempool.h	Thu Aug 16 12:36:23 2012 +0200
     3.2 +++ b/ucx/mempool.h	Tue Oct 02 11:18:47 2012 +0200
     3.3 @@ -5,6 +5,8 @@
     3.4  #ifndef MPOOL_H
     3.5  #define	MPOOL_H
     3.6  
     3.7 +#include <stddef.h>
     3.8 +
     3.9  #ifdef	__cplusplus
    3.10  extern "C" {
    3.11  #endif
     4.1 --- a/ucx/string.h	Thu Aug 16 12:36:23 2012 +0200
     4.2 +++ b/ucx/string.h	Tue Oct 02 11:18:47 2012 +0200
     4.3 @@ -8,6 +8,8 @@
     4.4  #ifndef _SSTRING_H
     4.5  #define	_SSTRING_H
     4.6  
     4.7 +#include <stddef.h>
     4.8 +
     4.9  #define S(s) { s, sizeof(s)-1 }
    4.10  #define ST(s) sstrn(s, sizeof(s)-1)
    4.11  

mercurial