Ignore:
Timestamp:
Sep 17, 2006, 2:44:18 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Updated kernel 'driver', still not working, but most of the work is done
Location:
libcaca/trunk/test
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/demo.c

    r964 r1048  
    1414#include "config.h"
    1515#include "common.h"
    16 
    17 #include <math.h>
    18 #include <string.h>
    19 #include <stdio.h>
    20 
     16#if !defined(__KERNEL__)
     17#   include <math.h>
     18#   include <string.h>
     19#   include <stdio.h>
     20#endif
    2121#include "caca.h"
    2222
  • libcaca/trunk/test/demo0.c

    r1019 r1048  
    2424#include "config.h"
    2525
    26 #include <math.h>
    27 #include <string.h>
    28 #include <stdio.h>
     26#if !defined(__KERNEL__)
     27#   include <math.h>
     28#   include <string.h>
     29#   include <stdio.h>
     30#endif
    2931
    3032#include "caca0.h"
  • libcaca/trunk/test/dithering.c

    r859 r1048  
    1515#include "common.h"
    1616
    17 #include <stdio.h>
     17#if !defined(__KERNEL__)
     18#   include <stdio.h>
     19#endif
    1820
    1921#include "cucul.h"
     
    3638char density[] = " ',+:;o&%w$W@#";
    3739
    38 int main(void)
     40int main(int argc, char *argv[])
    3941{
    4042    cucul_canvas_t *cv;
  • libcaca/trunk/test/event.c

    r898 r1048  
    1414#include "config.h"
    1515#include "common.h"
    16 
    17 #include <stdio.h>
    18 #include <string.h>
    19 #include <stdlib.h>
     16#if !defined(__KERNEL__)
     17#   include <stdio.h>
     18#   include <string.h>
     19#   include <stdlib.h>
     20#endif
    2021
    2122#include "cucul.h"
  • libcaca/trunk/test/export.c

    r1012 r1048  
    1515#include "common.h"
    1616
    17 #if defined(HAVE_INTTYPES_H)
    18 #   include <inttypes.h>
     17#if !defined(__KERNEL__)
     18#   if defined(HAVE_INTTYPES_H)
     19#      include <inttypes.h>
     20#   endif
     21#   include <stdio.h>
     22#   include <stdlib.h>
     23#   include <string.h>
    1924#endif
    20 
    21 #include <stdio.h>
    22 #include <stdlib.h>
    23 #include <string.h>
    2425
    2526#include "cucul.h"
  • libcaca/trunk/test/font.c

    r942 r1048  
    1515#include "common.h"
    1616
    17 #if defined(HAVE_INTTYPES_H)
    18 #   include <inttypes.h>
     17#if !defined(__KERNEL__)
     18#   if defined(HAVE_INTTYPES_H)
     19#      include <inttypes.h>
     20#   endif
     21
     22#   if defined(HAVE_ENDIAN_H)
     23#      include <endian.h>
     24#   endif
     25
     26#   include <stdio.h>
     27#   include <stdlib.h>
     28#   include <string.h>
    1929#endif
    20 
    21 #if defined(HAVE_ENDIAN_H)
    22 #   include <endian.h>
    23 #endif
    24 
    25 #include <stdio.h>
    26 #include <stdlib.h>
    27 #include <string.h>
    2830
    2931#include "cucul.h"
  • libcaca/trunk/test/font2tga.c

    r959 r1048  
    1515#include "common.h"
    1616
    17 #if defined(HAVE_INTTYPES_H)
    18 #   include <inttypes.h>
     17#if !defined(__KERNEL__)
     18#   if defined(HAVE_INTTYPES_H)
     19#      include <inttypes.h>
     20#   endif
     21#   include <stdio.h>
     22#   include <stdlib.h>
    1923#endif
    20 
    21 #include <stdio.h>
    22 #include <stdlib.h>
    2324
    2425#include "cucul.h"
  • libcaca/trunk/test/frames.c

    r964 r1048  
    1414#include "config.h"
    1515#include "common.h"
     16#if !defined(__KERNEL__)
     17#   if defined(HAVE_INTTYPES_H)
     18#      include <inttypes.h>
     19#   endif
    1620
    17 #if defined(HAVE_INTTYPES_H)
    18 #   include <inttypes.h>
     21#   include <stdio.h>
    1922#endif
    20 
    21 #include <stdio.h>
    22 
    2323#include "cucul.h"
    2424#include "caca.h"
    2525
    26 int main(void)
     26int main(int argc, char *argv[])
    2727{
    2828    cucul_canvas_t *cv;
  • libcaca/trunk/test/gamma.c

    r1031 r1048  
    1515#include "common.h"
    1616
    17 #if defined(HAVE_INTTYPES_H)
    18 #   include <inttypes.h>
    19 #endif
    20 
    2117#if !defined(__KERNEL__)
     18#   if defined(HAVE_INTTYPES_H)
     19#      include <inttypes.h>
     20#   endif
    2221#   include <stdio.h>
    2322#   include <math.h>
     
    2928uint32_t buffer[256 * 4];
    3029
    31 int main(void)
     30int main(int argc, char *argv[])
    3231{
    3332    caca_event_t ev;
  • libcaca/trunk/test/hsv.c

    r858 r1048  
    1515#include "common.h"
    1616
    17 #if defined(HAVE_INTTYPES_H)
    18 #   include <inttypes.h>
     17#if !defined(__KERNEL__)
     18#   if defined(HAVE_INTTYPES_H)
     19#      include <inttypes.h>
     20#   endif
     21#   include <stdio.h>
    1922#endif
    20 
    21 #include <stdio.h>
    2223
    2324#include "cucul.h"
     
    2627uint32_t buffer[256*256];
    2728
    28 int main(void)
     29int main(int argc, char *argv[])
    2930{
    3031    cucul_canvas_t *cv;
  • libcaca/trunk/test/import.c

    r903 r1048  
    1515#include "common.h"
    1616
    17 #if defined(HAVE_INTTYPES_H)
    18 #   include <inttypes.h>
     17
     18#if !defined(__KERNEL__)
     19#   if defined(HAVE_INTTYPES_H)
     20#      include <inttypes.h>
     21#   endif
     22#   include <stdio.h>
     23#   include <stdlib.h>
    1924#endif
    2025
    21 #include <stdio.h>
    22 #include <stdlib.h>
    2326
    2427#include "cucul.h"
  • libcaca/trunk/test/input.c

    r980 r1048  
    1515#include "common.h"
    1616
    17 #if defined(HAVE_INTTYPES_H)
     17#if !defined(__KERNEL__)
     18#   if defined(HAVE_INTTYPES_H)
    1819#   include <inttypes.h>
     20#   endif
     21#   include <string.h>
    1922#endif
    20 
    21 #include <string.h>
    2223
    2324#include "cucul.h"
     
    3334} textentry;
    3435
    35 int main(void)
     36int main(int argc, char *argv[])
    3637{
    3738    textentry entries[TEXT_ENTRIES];
  • libcaca/trunk/test/spritedit.c

    r859 r1048  
    1414#include "config.h"
    1515#include "common.h"
    16 
    17 #include <stdio.h>
    18 
     16#if !defined(__KERNEL__)
     17#   include <stdio.h>
     18#endif
    1919#include "cucul.h"
    2020#include "caca.h"
  • libcaca/trunk/test/text.c

    r942 r1048  
    1414#include "config.h"
    1515#include "common.h"
    16 
    17 #if defined(HAVE_INTTYPES_H)
    18 #   include <inttypes.h>
     16#if !defined(__KERNEL__)
     17#   if defined(HAVE_INTTYPES_H)
     18#      include <inttypes.h>
     19#   endif
     20#   include <stdio.h>
     21#   include <string.h>
    1922#endif
    20 
    21 #include <stdio.h>
    22 #include <string.h>
    23 
    2423#include "cucul.h"
    2524
     
    3231  "   `----'   \n"
    3332
    34 int main(void)
     33int main(int argc, char *argv[])
    3534{
    3635    cucul_canvas_t *cv;
  • libcaca/trunk/test/transform.c

    r858 r1048  
    1414#include "config.h"
    1515#include "common.h"
    16 
    17 #if defined(HAVE_INTTYPES_H)
    18 #   include <inttypes.h>
     16#if !defined(__KERNEL__)
     17#   if defined(HAVE_INTTYPES_H)
     18#      include <inttypes.h>
     19#   endif
     20#   include <stdio.h>
    1921#endif
    20 
    21 #include <stdio.h>
    2222
    2323#include "cucul.h"
     
    4545};
    4646
    47 int main(void)
     47int main(int argc, char *argv[])
    4848{
    4949    cucul_canvas_t *cv, *normal, *flip, *flop, *rotate;
  • libcaca/trunk/test/truecolor.c

    r858 r1048  
    1515#include "common.h"
    1616
    17 #if defined(HAVE_INTTYPES_H)
    18 #   include <inttypes.h>
     17#if !defined(__KERNEL__)
     18#   if defined(HAVE_INTTYPES_H)
     19#      include <inttypes.h>
     20#   endif
     21#   include <stdio.h>
    1922#endif
    20 
    21 #include <stdio.h>
    2223
    2324#include "cucul.h"
    2425#include "caca.h"
    2526
    26 int main(void)
     27int main(int argc, char *argv[])
    2728{
    2829    cucul_canvas_t *cv;
  • libcaca/trunk/test/unicode.c

    r858 r1048  
    1515#include "common.h"
    1616
    17 #if defined(HAVE_INTTYPES_H)
    18 #   include <inttypes.h>
     17#if !defined(__KERNEL__)
     18#   if defined(HAVE_INTTYPES_H)
     19#      include <inttypes.h>
     20#   endif
     21#   include <stdio.h>
    1922#endif
    20 
    21 #include <stdio.h>
    2223
    2324#include "cucul.h"
    2425#include "caca.h"
    2526
    26 int main(void)
     27int main(int argc, char *argv[])
    2728{
    2829    cucul_canvas_t *cv;
Note: See TracChangeset for help on using the changeset viewer.