in all .c files that needed it.tags/v0.99.beta14
| @@ -18,6 +18,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdlib.h> | # include <stdlib.h> | ||||
| @@ -16,13 +16,6 @@ | |||||
| #if defined(HAVE_INTTYPES_H) && !defined(__KERNEL__) | #if defined(HAVE_INTTYPES_H) && !defined(__KERNEL__) | ||||
| # include <inttypes.h> | # include <inttypes.h> | ||||
| #elif !defined(CUSTOM_INTTYPES) && !defined(_DOXYGEN_SKIP_ME) | |||||
| # define CUSTOM_INTTYPES | |||||
| typedef unsigned char uint8_t; | |||||
| typedef unsigned short uint16_t; | |||||
| typedef unsigned long int uint32_t; | |||||
| typedef long int intptr_t; | |||||
| typedef long unsigned int uintptr_t; | |||||
| #endif | #endif | ||||
| typedef struct caca_timer caca_timer_t; | typedef struct caca_timer caca_timer_t; | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if defined(USE_CONIO) | #if defined(USE_CONIO) | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if defined(USE_GL) | #if defined(USE_GL) | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if defined(USE_NCURSES) | #if defined(USE_NCURSES) | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdio.h> | # include <stdio.h> | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if defined(USE_SLANG) | #if defined(USE_SLANG) | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if defined(USE_VGA) | #if defined(USE_VGA) | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if defined(USE_WIN32) | #if defined(USE_WIN32) | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if defined(USE_X11) | #if defined(USE_X11) | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdio.h> | # include <stdio.h> | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #include "caca.h" | #include "caca.h" | ||||
| #include "caca_internals.h" | #include "caca_internals.h" | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdlib.h> | # include <stdlib.h> | ||||
| @@ -21,8 +21,12 @@ | |||||
| typedef signed char int8_t; | typedef signed char int8_t; | ||||
| typedef signed short int16_t; | typedef signed short int16_t; | ||||
| typedef signed long int int32_t; | typedef signed long int int32_t; | ||||
| typedef unsigned char uint8_t; | typedef unsigned char uint8_t; | ||||
| typedef unsigned short uint16_t; | typedef unsigned short uint16_t; | ||||
| typedef unsigned long int uint32_t; | typedef unsigned long int uint32_t; | ||||
| typedef long int intptr_t; | |||||
| typedef unsigned long int uintptr_t; | |||||
| #endif | #endif | ||||
| @@ -61,8 +61,8 @@ dnl conditional builds | |||||
| AC_ARG_ENABLE(doc, | AC_ARG_ENABLE(doc, | ||||
| [ --enable-doc build documentation (needs doxygen and LaTeX)]) | [ --enable-doc build documentation (needs doxygen and LaTeX)]) | ||||
| AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h inttypes.h endian.h unistd.h) | |||||
| AC_CHECK_FUNCS(signal ioctl vsnprintf getenv putenv strcasecmp) | |||||
| AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h inttypes.h endian.h unistd.h arpa/inet.h) | |||||
| AC_CHECK_FUNCS(signal ioctl vsnprintf getenv putenv strcasecmp htons) | |||||
| AC_CHECK_FUNCS(usleep gettimeofday) | AC_CHECK_FUNCS(usleep gettimeofday) | ||||
| AC_MSG_CHECKING(for Sleep) | AC_MSG_CHECKING(for Sleep) | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdlib.h> | # include <stdlib.h> | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdio.h> | # include <stdio.h> | ||||
| @@ -17,6 +17,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdio.h> /* BUFSIZ */ | # include <stdio.h> /* BUFSIZ */ | ||||
| @@ -17,6 +17,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <string.h> | # include <string.h> | ||||
| @@ -17,6 +17,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #include "cucul.h" | #include "cucul.h" | ||||
| #include "cucul_internals.h" | #include "cucul_internals.h" | ||||
| @@ -17,6 +17,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdlib.h> | # include <stdlib.h> | ||||
| @@ -17,6 +17,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdio.h> | # include <stdio.h> | ||||
| @@ -16,13 +16,6 @@ | |||||
| #if defined(HAVE_INTTYPES_H) && !defined(__KERNEL__) | #if defined(HAVE_INTTYPES_H) && !defined(__KERNEL__) | ||||
| # include <inttypes.h> | # include <inttypes.h> | ||||
| #elif !defined(CUSTOM_INTTYPES) && !defined(_DOXYGEN_SKIP_ME) | |||||
| # define CUSTOM_INTTYPES | |||||
| typedef unsigned char uint8_t; | |||||
| typedef unsigned short uint16_t; | |||||
| typedef unsigned long int uint32_t; | |||||
| typedef long int intptr_t; | |||||
| typedef long unsigned int uintptr_t; | |||||
| #endif | #endif | ||||
| struct cucul_canvas | struct cucul_canvas | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # if defined(HAVE_ENDIAN_H) | # if defined(HAVE_ENDIAN_H) | ||||
| @@ -17,6 +17,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdlib.h> | # include <stdlib.h> | ||||
| @@ -16,16 +16,19 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(USE_WIN32) | #if !defined(USE_WIN32) | ||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # if defined(HAVE_ENDIAN_H) | # if defined(HAVE_ENDIAN_H) | ||||
| # include <endian.h> | # include <endian.h> | ||||
| # endif | # endif | ||||
| # if defined(HAVE_ARPA_INET_H) | |||||
| # include <arpa/inet.h> | |||||
| # endif | |||||
| # include <stdio.h> | # include <stdio.h> | ||||
| # include <stdlib.h> | # include <stdlib.h> | ||||
| # include <string.h> | # include <string.h> | ||||
| # include <arpa/inet.h> | |||||
| #endif | #endif | ||||
| #include "cucul.h" | #include "cucul.h" | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdio.h> | # include <stdio.h> | ||||
| @@ -17,6 +17,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdlib.h> | # include <stdlib.h> | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdio.h> | # include <stdio.h> | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| #endif | #endif | ||||
| @@ -16,6 +16,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdlib.h> | # include <stdlib.h> | ||||
| @@ -18,6 +18,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #ifdef __KERNEL__ | #ifdef __KERNEL__ | ||||
| @@ -24,6 +24,7 @@ | |||||
| #ifdef LIBCACA | #ifdef LIBCACA | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdio.h> | # include <stdio.h> | ||||
| # include <stdlib.h> | # include <stdlib.h> | ||||
| @@ -12,6 +12,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <string.h> | # include <string.h> | ||||
| @@ -12,6 +12,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <math.h> | # include <math.h> | ||||
| @@ -13,6 +13,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdio.h> | # include <stdio.h> | ||||
| @@ -12,6 +12,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include <sys/types.h> | #include <sys/types.h> | ||||
| @@ -13,6 +13,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include <string.h> | #include <string.h> | ||||
| @@ -12,6 +12,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include <string.h> | #include <string.h> | ||||
| @@ -12,6 +12,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include <string.h> | #include <string.h> | ||||
| @@ -12,6 +12,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include <string.h> | #include <string.h> | ||||
| @@ -12,6 +12,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #if !defined(__KERNEL__) | #if !defined(__KERNEL__) | ||||
| # include <stdio.h> | # include <stdio.h> | ||||
| @@ -12,6 +12,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #include <math.h> | #include <math.h> | ||||
| #include <string.h> | #include <string.h> | ||||
| @@ -12,6 +12,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #include <stdio.h> | #include <stdio.h> | ||||
| @@ -12,6 +12,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include <string.h> | #include <string.h> | ||||
| @@ -12,6 +12,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #include <stdio.h> | #include <stdio.h> | ||||
| @@ -14,11 +14,16 @@ | |||||
| * makefont <prefix> <font> <dpi> <bpp> | * makefont <prefix> <font> <dpi> <bpp> | ||||
| */ | */ | ||||
| #include "config.h" | |||||
| #include "common.h" | |||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include <stdlib.h> | #include <stdlib.h> | ||||
| #include <stdint.h> | #include <stdint.h> | ||||
| #include <arpa/inet.h> | |||||
| #if defined(HAVE_ARPA_INET_H) | |||||
| # include <arpa/inet.h> | |||||
| #endif | |||||
| #include <pango/pango.h> | #include <pango/pango.h> | ||||
| #include <pango/pangoft2.h> | #include <pango/pangoft2.h> | ||||
| @@ -12,6 +12,7 @@ | |||||
| */ | */ | ||||
| #include "config.h" | #include "config.h" | ||||
| #include "common.h" | |||||
| #include <stdio.h> | #include <stdio.h> | ||||