Ignore:
Timestamp:
Apr 19, 2008, 2:42:50 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Remove #include <stdint.h> etc. from "common.h". Instead, make sure that <cucul.h> will provide the C99 types, even if libcaca has been installed.
  • Rename what's left of "common.h" to "stubs.h".
  • Remove all references to erroneous <inttypes.h> from source files.
Location:
libcaca/trunk/examples
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/examples/Makefile.am

    r2138 r2299  
    11# $Id$
    22
    3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I$(top_srcdir)/caca -DDATADIR=\"$(pkgdatadir)\"
     3AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/cucul -I../cucul \
     4              -I$(top_srcdir)/caca -DDATADIR=\"$(pkgdatadir)\"
    45
    56noinst_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  
    1414
    1515#include "config.h"
    16 #include "common.h"
     16
    1717#if !defined(__KERNEL__)
    1818#   include <stdio.h>
  • libcaca/trunk/examples/colors.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
  • libcaca/trunk/examples/cucul.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
  • libcaca/trunk/examples/demo.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
     16
    1717#if !defined(__KERNEL__)
    1818#   include <math.h>
     
    2020#   include <stdio.h>
    2121#endif
     22
     23#include "cucul.h"
    2224#include "caca.h"
    2325
  • libcaca/trunk/examples/dithering.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
  • libcaca/trunk/examples/driver.c

    r2139 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
  • libcaca/trunk/examples/event.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
     16
    1717#if !defined(__KERNEL__)
    1818#   include <stdio.h>
  • libcaca/trunk/examples/export.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
    19 #   if defined(HAVE_INTTYPES_H)
    20 #      include <inttypes.h>
    21 #   endif
    2218#   include <stdio.h>
    2319#   include <stdlib.h>
  • libcaca/trunk/examples/figfont.c

    r2111 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
  • libcaca/trunk/examples/font.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
    19 #   if defined(HAVE_INTTYPES_H)
    20 #      include <inttypes.h>
    21 #   endif
    22 
    2318#   if defined(HAVE_ENDIAN_H)
    2419#      include <endian.h>
  • libcaca/trunk/examples/font2tga.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
    19 #   if defined(HAVE_INTTYPES_H)
    20 #      include <inttypes.h>
    21 #   endif
    2218#   include <stdio.h>
    2319#   include <stdlib.h>
  • libcaca/trunk/examples/frames.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
     16
    1717#if !defined(__KERNEL__)
    18 #   if defined(HAVE_INTTYPES_H)
    19 #      include <inttypes.h>
    20 #   endif
    21 
    2218#   include <stdio.h>
    2319#endif
     20
    2421#include "cucul.h"
    2522#include "caca.h"
  • libcaca/trunk/examples/fullwidth.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
    19 #   if defined(HAVE_INTTYPES_H)
    20 #      include <inttypes.h>
    21 #   endif
    2218#   include <stdio.h>
    2319#endif
  • libcaca/trunk/examples/gamma.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
    19 #   if defined(HAVE_INTTYPES_H)
    20 #      include <inttypes.h>
    21 #   endif
    2218#   include <stdio.h>
    2319#   include <math.h>
  • libcaca/trunk/examples/hsv.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
    19 #   if defined(HAVE_INTTYPES_H)
    20 #      include <inttypes.h>
    21 #   endif
    2218#   include <stdio.h>
    2319#endif
  • libcaca/trunk/examples/import.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    17 
    1816
    1917#if !defined(__KERNEL__)
    20 #   if defined(HAVE_INTTYPES_H)
    21 #      include <inttypes.h>
    22 #   endif
    2318#   include <stdio.h>
    2419#   include <stdlib.h>
    2520#endif
    26 
    2721
    2822#include "cucul.h"
  • libcaca/trunk/examples/input.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
    19 #   if defined(HAVE_INTTYPES_H)
    20 #       include <inttypes.h>
    21 #   endif
    2218#   include <string.h>
    2319#   include <stdio.h>
  • libcaca/trunk/examples/spritedit.c

    r2147 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
  • libcaca/trunk/examples/swallow.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
     16
    1717#if !defined(__KERNEL__)
    1818#   include <stdio.h>
  • libcaca/trunk/examples/text.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
     16
    1717#if !defined(__KERNEL__)
    18 #   if defined(HAVE_INTTYPES_H)
    19 #      include <inttypes.h>
    20 #   endif
    2118#   include <stdio.h>
    2219#   include <string.h>
    2320#   include <stdlib.h>
    2421#endif
     22
    2523#include "cucul.h"
    2624
  • libcaca/trunk/examples/transform.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
     16
    1717#if !defined(__KERNEL__)
    18 #   if defined(HAVE_INTTYPES_H)
    19 #      include <inttypes.h>
    20 #   endif
    2118#   include <stdio.h>
    2219#   include <string.h>
  • libcaca/trunk/examples/truecolor.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
    19 #   if defined(HAVE_INTTYPES_H)
    20 #      include <inttypes.h>
    21 #   endif
    2218#   include <stdio.h>
    2319#endif
  • libcaca/trunk/examples/unicode.c

    r2101 r2299  
    1414
    1515#include "config.h"
    16 #include "common.h"
    1716
    1817#if !defined(__KERNEL__)
    19 #   if defined(HAVE_INTTYPES_H)
    20 #      include <inttypes.h>
    21 #   endif
    2218#   include <stdio.h>
    2319#endif
Note: See TracChangeset for help on using the changeset viewer.