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
--- a/ucx/map.c	Thu Aug 16 12:36:23 2012 +0200
+++ b/ucx/map.c	Tue Oct 02 11:18:47 2012 +0200
@@ -138,8 +138,11 @@
 
     switch (len) {
         case 3: h ^= (data[i + 2] & 0xFF) << 16;
+        /* no break */
         case 2: h ^= (data[i + 1] & 0xFF) << 8;
+        /* no break */
         case 1: h ^= (data[i + 0] & 0xFF); h *= m;
+        /* no break */
     }
 
     h ^= h >> 13;
--- a/ucx/map.h	Thu Aug 16 12:36:23 2012 +0200
+++ b/ucx/map.h	Tue Oct 02 11:18:47 2012 +0200
@@ -7,6 +7,7 @@
 
 #include "ucx.h"
 #include "string.h"
+#include <stddef.h>
 
 #ifdef	__cplusplus
 extern "C" {
--- a/ucx/mempool.h	Thu Aug 16 12:36:23 2012 +0200
+++ b/ucx/mempool.h	Tue Oct 02 11:18:47 2012 +0200
@@ -5,6 +5,8 @@
 #ifndef MPOOL_H
 #define	MPOOL_H
 
+#include <stddef.h>
+
 #ifdef	__cplusplus
 extern "C" {
 #endif
--- a/ucx/string.h	Thu Aug 16 12:36:23 2012 +0200
+++ b/ucx/string.h	Tue Oct 02 11:18:47 2012 +0200
@@ -8,6 +8,8 @@
 #ifndef _SSTRING_H
 #define	_SSTRING_H
 
+#include <stddef.h>
+
 #define S(s) { s, sizeof(s)-1 }
 #define ST(s) sstrn(s, sizeof(s)-1)
 

mercurial