Remove skygw_types.h

Some stuff moved to maxscale/utils.h. Further cleanup still needed.
This commit is contained in:
Johan Wikman
2016-10-14 14:21:09 +03:00
parent 0800bf4a59
commit bff2cfb7e5
23 changed files with 27 additions and 71 deletions

View File

@ -27,9 +27,16 @@
*/
#include <maxscale/cdefs.h>
#include <math.h>
#include <stdlib.h>
MXS_BEGIN_DECLS
#define CALCLEN(i) ((size_t)(floor(log10(abs(i))) + 1))
#define UINTLEN(i) (i<10 ? 1 : (i<100 ? 2 : (i<1000 ? 3 : CALCLEN(i))))
#define MXS_ARRAY_NELEMS(array) ((size_t)(sizeof(array)/sizeof(array[0])))
int setnonblocking(int fd);
char *gw_strend(register const char *s);
static char gw_randomchar();