Changeset 2299
- Timestamp:
- Apr 19, 2008, 2:42:50 PM (15 years ago)
- Location:
- libcaca/trunk
- Files:
-
- 3 added
- 1 deleted
- 84 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/Makefile.am
r2103 r2299 4 4 DIST_SUBDIRS = $(SUBDIRS) msvc 5 5 6 EXTRA_DIST = NOTES COPYING.GPL COPYING.LGPL bootstrap build-dos build-kernel build-win32 caca-config.in common.h libcaca.spec6 EXTRA_DIST = NOTES COPYING.GPL COPYING.LGPL bootstrap build-dos build-kernel build-win32 caca-config.in stubs.h libcaca.spec 7 7 AUTOMAKE_OPTIONS = dist-bzip2 8 8 -
libcaca/trunk/build-dos
r975 r2299 19 19 cd "${BUILDDIR}" 20 20 # Build for DOS 21 "${SRCDIR}/configure" --host=i386-pc-msdosdjgpp --prefix=/ --bindir=/ --libdir=/ --disable-imlib2 --disable-doc 21 "${SRCDIR}/configure" --host=i386-pc-msdosdjgpp --prefix=/ --bindir=/ --libdir=/ --disable-imlib2 --disable-doc --disable-ruby --disable-csharp --disable-cxx 22 22 make pkglibdir=/lib pkgdatadir=/data 23 23 # Install into our private directory … … 29 29 30 30 mkdir "${INSTALLDIR}/doc" 31 for f in COPYING COPYING.LGPL COPYING.GPL README AUTHORS NEWS NOTES THANKS TODO; do31 for f in COPYING COPYING.LGPL COPYING.GPL README AUTHORS NEWS NOTES THANKS; do 32 32 sed -e 's/$/^M/' < "${SRCDIR}/${f}" > "${INSTALLDIR}/doc/${f}.txt" 33 33 done -
libcaca/trunk/build-kernel
r2054 r2299 7 7 set -e 8 8 9 CFLAGS="-fno-builtin -O2 -I. -I.. - Wall"9 CFLAGS="-fno-builtin -O2 -I. -I.. -I../cucul/ -Wall" 10 10 CPPFLAGS="-D__KERNEL__ -nostdinc -include kernel/kernel.h" 11 11 LDFLAGS="-nostdlib -Wl,-N -Wl,-Ttext -Wl,100000" -
libcaca/trunk/build-win32
r975 r2299 35 35 36 36 mkdir "${INSTALLDIR}/doc" 37 for f in COPYING COPYING.LGPL COPYING.GPL README AUTHORS NEWS NOTES THANKS TODO; do37 for f in COPYING COPYING.LGPL COPYING.GPL README AUTHORS NEWS NOTES THANKS; do 38 38 sed -e 's/$/ 39 39 /' < "${SRCDIR}/${f}" > "${INSTALLDIR}/doc/${f}.txt" -
libcaca/trunk/caca/Makefile.am
r2087 r2299 4 4 DISTCLEANFILES = caca.pc 5 5 6 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -DPLUGINDIR=\"$(plugindir)\" 6 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I../cucul \ 7 -DPLUGINDIR=\"$(plugindir)\" 7 8 8 9 pkgconfig_DATA = caca.pc -
libcaca/trunk/caca/caca.c
r2139 r2299 20 20 21 21 #include "config.h" 22 #include "common.h"23 22 24 23 #if !defined(__KERNEL__) -
libcaca/trunk/caca/caca0.c
r2049 r2299 19 19 20 20 #include "config.h" 21 #include "common.h"22 21 23 22 #if !defined(__KERNEL__) -
libcaca/trunk/caca/caca_internals.h
r2138 r2299 16 16 #define __CACA_INTERNALS_H__ 17 17 18 #if defined(HAVE_INTTYPES_H) && !defined(__KERNEL__) 19 # include <inttypes.h> 20 #endif 18 #include "stubs.h" 21 19 22 20 typedef struct caca_timer caca_timer_t; -
libcaca/trunk/caca/driver_conio.c
r2138 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if defined(USE_CONIO) -
libcaca/trunk/caca/driver_gl.c
r2141 r2299 20 20 21 21 #include "config.h" 22 #include "common.h"23 22 24 23 #if defined(USE_GL) -
libcaca/trunk/caca/driver_ncurses.c
r2142 r2299 19 19 20 20 #include "config.h" 21 #include "common.h"22 21 23 22 #if defined USE_NCURSES -
libcaca/trunk/caca/driver_raw.c
r2138 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if !defined(__KERNEL__) -
libcaca/trunk/caca/driver_slang.c
r2142 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if defined(USE_SLANG) -
libcaca/trunk/caca/driver_vga.c
r2138 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if defined(USE_VGA) -
libcaca/trunk/caca/driver_win32.c
r2138 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if defined(USE_WIN32) -
libcaca/trunk/caca/driver_x11.c
r2138 r2299 19 19 20 20 #include "config.h" 21 #include "common.h"22 21 23 22 #if defined(USE_X11) -
libcaca/trunk/caca/event.c
r2140 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if !defined(__KERNEL__) -
libcaca/trunk/caca/graphics.c
r2056 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if !defined(__KERNEL__) -
libcaca/trunk/caca/time.c
r1462 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if !defined(__KERNEL__) -
libcaca/trunk/configure.ac
r2265 r2299 88 88 [ --enable-zzuf use zzuf for fuzzing tests (autodetected)]) 89 89 90 AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h inttypes.hendian.h unistd.h arpa/inet.h netinet/in.h winsock2.h errno.h locale.h getopt.h dlfcn.h termios.h)90 AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h endian.h unistd.h arpa/inet.h netinet/in.h winsock2.h errno.h locale.h getopt.h dlfcn.h termios.h) 91 91 AC_CHECK_FUNCS(signal ioctl snprintf vsnprintf getenv putenv strcasecmp htons) 92 92 AC_CHECK_FUNCS(usleep gettimeofday) … … 324 324 AC_SUBST(GL_LIBS) 325 325 326 # How to get the C99 types. See cucul/cucul_types.h.in for details about 327 # the CUCUL_TYPES variable 328 if test "${ac_cv_my_have_vga}" = "yes"; then 329 CUCUL_TYPES=0 330 else 331 AC_CHECK_HEADERS(stdint.h, 332 [CUCUL_TYPES=1], 333 [AC_CHECK_HEADERS(inttypes.h, 334 [CUCUL_TYPES=2], 335 [CUCUL_TYPES=0])]) 336 fi 337 AC_SUBST(CUCUL_TYPES) 338 326 339 # Optimizations 327 340 CFLAGS="${CFLAGS} -g -O2 -fno-strength-reduce -fomit-frame-pointer" … … 463 476 ]) 464 477 AC_CONFIG_FILES([ 478 cucul/cucul_types.h 465 479 cucul/cucul.pc 466 480 caca/caca.pc -
libcaca/trunk/cucul/Makefile.am
r2110 r2299 1 1 # $Id$ 2 2 3 EXTRA_DIST = cucul .pc.in mono9.data monobold12.data4 DISTCLEANFILES = cucul .pc3 EXTRA_DIST = cucul_types.h.in cucul.pc.in mono9.data monobold12.data 4 DISTCLEANFILES = cucul_types.h cucul.pc 5 5 6 6 pkgconfig_DATA = cucul.pc 7 7 pkgconfigdir = $(libdir)/pkgconfig 8 8 9 include_HEADERS = cucul.h 9 include_HEADERS = cucul.h cucul_types.h 10 10 11 11 lib_LTLIBRARIES = libcucul.la … … 14 14 cucul.c \ 15 15 cucul.h \ 16 cucul_types.h \ 16 17 cucul_internals.h \ 17 18 legacy.c \ … … 36 37 monobold12.data \ 37 38 $(NULL) 38 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul 39 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I../cucul 39 40 libcucul_la_LDFLAGS = -no-undefined -version-number @LT_VERSION@ 40 41 libcucul_la_LIBADD = $(ZLIB_LIBS) -
libcaca/trunk/cucul/attr.c
r2057 r2299 19 19 20 20 #include "config.h" 21 #include "common.h"22 21 23 22 #include "cucul.h" -
libcaca/trunk/cucul/box.c
r2079 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if !defined(__KERNEL__) -
libcaca/trunk/cucul/canvas.c
r2294 r2299 19 19 20 20 #include "config.h" 21 #include "common.h"22 21 23 22 #if !defined(__KERNEL__) -
libcaca/trunk/cucul/charset.c
r2128 r2299 20 20 21 21 #include "config.h" 22 #include "common.h"23 22 24 23 #if !defined(__KERNEL__) -
libcaca/trunk/cucul/conic.c
r2256 r2299 19 19 20 20 #include "config.h" 21 #include "common.h"22 21 23 22 #if !defined(__KERNEL__) -
libcaca/trunk/cucul/cucul.c
r2111 r2299 19 19 20 20 #include "config.h" 21 #include "common.h"22 21 23 22 #if !defined(__KERNEL__) -
libcaca/trunk/cucul/cucul.h
r2111 r2299 24 24 #ifndef __CUCUL_H__ 25 25 #define __CUCUL_H__ 26 27 #include <cucul_types.h> 26 28 27 29 #undef __extern -
libcaca/trunk/cucul/cucul_internals.h
r2111 r2299 16 16 #define __CUCUL_INTERNALS_H__ 17 17 18 #if defined(HAVE_INTTYPES_H) && !defined(__KERNEL__) 19 # include <inttypes.h> 20 #endif 18 #include "stubs.h" 21 19 22 20 typedef struct cucul_figfont cucul_figfont_t; -
libcaca/trunk/cucul/dither.c
r2043 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if !defined(__KERNEL__) -
libcaca/trunk/cucul/export.c
r2147 r2299 19 19 20 20 #include "config.h" 21 #include "common.h"22 21 23 22 #if !defined(__KERNEL__) -
libcaca/trunk/cucul/figfont.c
r2225 r2299 22 22 23 23 #include "config.h" 24 #include "common.h"25 24 26 25 #if !defined(__KERNEL__) -
libcaca/trunk/cucul/file.c
r2144 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if !defined __KERNEL__ -
libcaca/trunk/cucul/font.c
r2057 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if !defined(__KERNEL__) -
libcaca/trunk/cucul/frame.c
r2043 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if !defined(__KERNEL__) -
libcaca/trunk/cucul/import.c
r1784 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if !defined __KERNEL__ -
libcaca/trunk/cucul/legacy.c
r1881 r2299 19 19 20 20 #include "config.h" 21 #include "common.h"22 21 23 22 #if !defined(__KERNEL__) -
libcaca/trunk/cucul/line.c
r1947 r2299 19 19 20 20 #include "config.h" 21 #include "common.h"22 21 23 22 #if !defined(__KERNEL__) -
libcaca/trunk/cucul/transform.c
r1820 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if !defined(__KERNEL__) -
libcaca/trunk/cucul/triangle.c
r1462 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 20 22 21 #if !defined(__KERNEL__) -
libcaca/trunk/cxx/Makefile.am
r2087 r2299 1 1 # $Id: Makefile.am 552 2006-04-13 16:10:16Z jylam $ 2 2 3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I$(top_srcdir)/caca 3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I../cucul \ 4 -I$(top_srcdir)/caca 4 5 5 6 if USE_CXX -
libcaca/trunk/examples/Makefile.am
r2138 r2299 1 1 # $Id$ 2 2 3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I$(top_srcdir)/caca -DDATADIR=\"$(pkgdatadir)\" 3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I../cucul \ 4 -I$(top_srcdir)/caca -DDATADIR=\"$(pkgdatadir)\" 4 5 5 6 noinst_PROGRAMS = blit colors cucul demo demo0 dithering driver event export figfont font font2tga frames fullwidth gamma hsv input spritedit swallow text transform truecolor unicode import -
libcaca/trunk/examples/blit.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h" 16 17 17 #if !defined(__KERNEL__) 18 18 # include <stdio.h> -
libcaca/trunk/examples/colors.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) -
libcaca/trunk/examples/cucul.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) -
libcaca/trunk/examples/demo.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h" 16 17 17 #if !defined(__KERNEL__) 18 18 # include <math.h> … … 20 20 # include <stdio.h> 21 21 #endif 22 23 #include "cucul.h" 22 24 #include "caca.h" 23 25 -
libcaca/trunk/examples/dithering.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) -
libcaca/trunk/examples/driver.c
r2139 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) -
libcaca/trunk/examples/event.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h" 16 17 17 #if !defined(__KERNEL__) 18 18 # include <stdio.h> -
libcaca/trunk/examples/export.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) 19 # if defined(HAVE_INTTYPES_H)20 # include <inttypes.h>21 # endif22 18 # include <stdio.h> 23 19 # include <stdlib.h> -
libcaca/trunk/examples/figfont.c
r2111 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) -
libcaca/trunk/examples/font.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) 19 # if defined(HAVE_INTTYPES_H)20 # include <inttypes.h>21 # endif22 23 18 # if defined(HAVE_ENDIAN_H) 24 19 # include <endian.h> -
libcaca/trunk/examples/font2tga.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) 19 # if defined(HAVE_INTTYPES_H)20 # include <inttypes.h>21 # endif22 18 # include <stdio.h> 23 19 # include <stdlib.h> -
libcaca/trunk/examples/frames.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h" 16 17 17 #if !defined(__KERNEL__) 18 # if defined(HAVE_INTTYPES_H)19 # include <inttypes.h>20 # endif21 22 18 # include <stdio.h> 23 19 #endif 20 24 21 #include "cucul.h" 25 22 #include "caca.h" -
libcaca/trunk/examples/fullwidth.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) 19 # if defined(HAVE_INTTYPES_H)20 # include <inttypes.h>21 # endif22 18 # include <stdio.h> 23 19 #endif -
libcaca/trunk/examples/gamma.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) 19 # if defined(HAVE_INTTYPES_H)20 # include <inttypes.h>21 # endif22 18 # include <stdio.h> 23 19 # include <math.h> -
libcaca/trunk/examples/hsv.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) 19 # if defined(HAVE_INTTYPES_H)20 # include <inttypes.h>21 # endif22 18 # include <stdio.h> 23 19 #endif -
libcaca/trunk/examples/import.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 18 16 19 17 #if !defined(__KERNEL__) 20 # if defined(HAVE_INTTYPES_H)21 # include <inttypes.h>22 # endif23 18 # include <stdio.h> 24 19 # include <stdlib.h> 25 20 #endif 26 27 21 28 22 #include "cucul.h" -
libcaca/trunk/examples/input.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) 19 # if defined(HAVE_INTTYPES_H)20 # include <inttypes.h>21 # endif22 18 # include <string.h> 23 19 # include <stdio.h> -
libcaca/trunk/examples/spritedit.c
r2147 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) -
libcaca/trunk/examples/swallow.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h" 16 17 17 #if !defined(__KERNEL__) 18 18 # include <stdio.h> -
libcaca/trunk/examples/text.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h" 16 17 17 #if !defined(__KERNEL__) 18 # if defined(HAVE_INTTYPES_H)19 # include <inttypes.h>20 # endif21 18 # include <stdio.h> 22 19 # include <string.h> 23 20 # include <stdlib.h> 24 21 #endif 22 25 23 #include "cucul.h" 26 24 -
libcaca/trunk/examples/transform.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h" 16 17 17 #if !defined(__KERNEL__) 18 # if defined(HAVE_INTTYPES_H)19 # include <inttypes.h>20 # endif21 18 # include <stdio.h> 22 19 # include <string.h> -
libcaca/trunk/examples/truecolor.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) 19 # if defined(HAVE_INTTYPES_H)20 # include <inttypes.h>21 # endif22 18 # include <stdio.h> 23 19 #endif -
libcaca/trunk/examples/unicode.c
r2101 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) 19 # if defined(HAVE_INTTYPES_H)20 # include <inttypes.h>21 # endif22 18 # include <stdio.h> 23 19 #endif -
libcaca/trunk/kernel/kernel.c
r2144 r2299 21 21 22 22 #include "config.h" 23 #include "common.h" 23 24 #include "cucul_types.h" 24 25 25 26 #ifdef __KERNEL__ -
libcaca/trunk/msvc/Makefile.am
r2069 r2299 5 5 EXTRA_DIST = libcaca.sln \ 6 6 config.h \ 7 c ommon.h \7 cucul_types.h \ 8 8 libcucul.vcproj \ 9 9 libcaca.vcproj \ -
libcaca/trunk/ruby/Makefile.am
r2097 r2299 12 12 CFLAGS += -Wno-strict-prototypes -Wno-missing-prototypes 13 13 14 cucul_la_CPPFLAGS = -I$(top_srcdir)/cucul $(RUBY_CFLAGS)14 cucul_la_CPPFLAGS = -I$(top_srcdir)/cucul -I../cucul $(RUBY_CFLAGS) 15 15 cucul_la_SOURCES = cucul.c \ 16 16 common.h \ … … 25 25 cucul_la_LIBADD = ../cucul/libcucul.la 26 26 27 caca_la_CPPFLAGS = -I$(top_srcdir)/caca -I$(top_srcdir)/cucul $(RUBY_CFLAGS) 27 caca_la_CPPFLAGS = -I$(top_srcdir)/caca -I$(top_srcdir)/cucul -I../cucul \ 28 $(RUBY_CFLAGS) 28 29 caca_la_SOURCES = caca.c \ 29 30 common.h \ -
libcaca/trunk/src/Makefile.am
r2248 r2299 4 4 5 5 EXTRA_DIST = caca.txt 6 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I$(top_srcdir)/caca -DLIBCACA=1 -DX_DISPLAY_MISSING=1 6 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I../cucul \ 7 -I$(top_srcdir)/caca -DLIBCACA=1 -DX_DISPLAY_MISSING=1 7 8 8 9 bin_PROGRAMS = cacademo cacafire cacaplay cacaview img2txt $(fcntl_programs) -
libcaca/trunk/src/aafire.c
r2105 r2299 25 25 #ifdef LIBCACA 26 26 #include "config.h" 27 #include "common.h"28 27 #if !defined(__KERNEL__) 29 28 # include <stdio.h> … … 31 30 # include <string.h> 32 31 #endif 32 #include "cucul.h" 33 33 #include "caca.h" 34 34 #else -
libcaca/trunk/src/cacademo.c
r2254 r2299 16 16 17 17 #include "config.h" 18 #include "common.h"19 18 20 19 #if !defined(__KERNEL__) -
libcaca/trunk/src/cacadraw.c
r2049 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) -
libcaca/trunk/src/cacaplay.c
r2049 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) -
libcaca/trunk/src/cacaserver.c
r1914 r2299 15 15 16 16 #include "config.h" 17 #include "common.h"18 17 19 18 #include <stdio.h> -
libcaca/trunk/src/cacaview.c
r2049 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) … … 28 27 #include "cucul.h" 29 28 #include "caca.h" 29 30 30 #include "common-image.h" 31 31 -
libcaca/trunk/src/common-image.c
r1462 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) … … 31 30 32 31 #include "cucul.h" 32 33 33 #include "common-image.h" 34 34 -
libcaca/trunk/src/img2txt.c
r2107 r2299 15 15 16 16 #include "config.h" 17 #include "common.h"18 17 19 18 #if !defined(__KERNEL__) … … 36 35 37 36 #include "cucul.h" 37 38 38 #include "common-image.h" 39 39 -
libcaca/trunk/src/mygetopt.c
r2248 r2299 18 18 19 19 #include "config.h" 20 #include "common.h"21 22 #if defined HAVE_STDINT_H23 # include <stdint.h>24 #elif defined HAVE_INTTYPES_H25 # include <inttypes.h>26 #endif27 20 28 21 #include <stdio.h> 29 22 #include <string.h> 23 24 #include "cucul_types.h" 30 25 31 26 #include "mygetopt.h" -
libcaca/trunk/stubs.h
r2298 r2299 18 18 */ 19 19 20 /* C99 types */ 21 #if defined HAVE_INTTYPES_H && !defined __KERNEL__ 22 # include <inttypes.h> 23 #else 24 typedef signed char int8_t; 25 typedef signed short int16_t; 26 typedef signed long int int32_t; 27 28 typedef unsigned char uint8_t; 29 typedef unsigned short uint16_t; 30 typedef unsigned long int uint32_t; 31 32 typedef long int intptr_t; 33 typedef unsigned long int uintptr_t; 34 #endif 20 #ifndef __STUBS_H__ 21 #define __STUBS_H__ 35 22 36 23 /* errno handling */ … … 108 95 #endif 109 96 97 #endif /* __STUBS_H__ */ 98 -
libcaca/trunk/tests/Makefile.am
r2103 r2299 1 1 # $Id$ 2 2 3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul 3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I../cucul 4 4 5 5 TESTS = simple -
libcaca/trunk/tests/simple.c
r2103 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 18 16 19 17 #if !defined(__KERNEL__) 20 # if defined(HAVE_INTTYPES_H)21 # include <inttypes.h>22 # endif23 18 # include <stdio.h> 24 19 # include <stdlib.h> -
libcaca/trunk/tools/Makefile.am
r1840 r2299 1 1 # $Id$ 2 2 3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I$(top_srcdir)/caca -DDATADIR=\"$(pkgdatadir)\" 3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I../cucul \ 4 -I$(top_srcdir)/caca -DDATADIR=\"$(pkgdatadir)\" 4 5 5 6 noinst_PROGRAMS = optipal sortchars $(pango_programs) -
libcaca/trunk/tools/makefont.c
r1768 r2299 17 17 18 18 #include "config.h" 19 #include "common.h"20 19 21 20 #include <stdio.h> … … 23 22 #include <stdint.h> 24 23 25 #if defined (HAVE_ARPA_INET_H)24 #if defined HAVE_ARPA_INET_H 26 25 # include <arpa/inet.h> 27 #elif defined (HAVE_NETINET_IN_H)26 #elif defined HAVE_NETINET_IN_H 28 27 # include <netinet/in.h> 29 28 #endif 30 29 31 #include "cucul.h"32 33 30 #include <pango/pango.h> 34 31 #include <pango/pangoft2.h> 32 33 #include "cucul.h" 35 34 36 35 /* Split our big strings into chunks of 480 characters, because it is … … 438 437 static int printf_u32(char const *fmt, uint32_t i) 439 438 { 440 uint32_t ni = hton 32(i);439 uint32_t ni = htonl(i); 441 440 return printf_hex(fmt, (uint8_t *)&ni, 4); 442 441 } … … 444 443 static int printf_u16(char const *fmt, uint16_t i) 445 444 { 446 uint16_t ni = hton 16(i);445 uint16_t ni = htons(i); 447 446 return printf_hex(fmt, (uint8_t *)&ni, 2); 448 447 } -
libcaca/trunk/tools/optipal.c
r1462 r2299 14 14 15 15 #include "config.h" 16 #include "common.h"17 16 18 17 #if !defined(__KERNEL__) -
libcaca/trunk/tools/sortchars.c
r1871 r2299 14 14 15 15 #include "config.h" 16 #include "common.h" 16 17 17 #if !defined(__KERNEL__) 18 # if defined(HAVE_INTTYPES_H)19 # include <inttypes.h>20 # endif21 18 # include <stdio.h> 22 19 # include <string.h> 23 20 # include <stdlib.h> 24 21 #endif 22 25 23 #include "cucul.h" 26 24
Note: See TracChangeset
for help on using the changeset viewer.