"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/simple.c" between
libcaca-0.99.beta19.tar.gz and libcaca-0.99.beta20.tar.bz2

About: libcaca is a graphics library that outputs text instead of pixels, so that it can work on older video cards or text terminals (something like an advanced AAlib library).

simple.c  (libcaca-0.99.beta19):simple.c  (libcaca-0.99.beta20.tar.bz2)
/* /*
* simple simple testsuite program * simple simple testsuite program
* Copyright (c) 2007 Sam Hocevar <sam@hocevar.net> * Copyright © 2007—2016 Sam Hocevar <sam@hocevar.net>
* All Rights Reserved * All Rights Reserved
* *
* This program is free software. It comes without any warranty, to * This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it * the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What the Fuck You Want * and/or modify it under the terms of the Do What the Fuck You Want
* to Public License, Version 2, as published by Sam Hocevar. See * to Public License, Version 2, as published by Sam Hocevar. See
* http://www.wtfpl.net/ for more details. * http://www.wtfpl.net/ for more details.
*/ */
#include "config.h" #include "config.h"
skipping to change at line 29 skipping to change at line 29
#include "caca.h" #include "caca.h"
#define TEST(x) \ #define TEST(x) \
do \ do \
{ \ { \
tests++; \ tests++; \
if((x)) \ if((x)) \
passed++; \ passed++; \
else \ else \
fprintf(stderr, "test #%i failed\n", (tests)); \ fprintf(stderr, "test #%i failed: %s\n", (tests), #x); \
} \ } \
while(0) while(0)
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
caca_canvas_t *cv; caca_canvas_t *cv;
int tests = 0, passed = 0; int tests = 0, passed = 0;
cv = caca_create_canvas(0, 0); cv = caca_create_canvas(0, 0);
caca_put_char(cv, 0, 0, 'x'); caca_put_char(cv, 0, 0, 'x');
 End of changes. 2 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)