Changeset 4126 for libcaca


Ignore:
Timestamp:
Dec 14, 2009, 6:40:37 PM (10 years ago)
Author:
Sam Hocevar
Message:

Fix various cosmetic errors (Jylam: tiens un highlight gratuit dans ta gueule pour les trailing spaces !)

Location:
libcaca/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/examples/.gitignore

    r3993 r4126  
    1919import
    2020input
     21mouse
    2122spritedit
    2223swallow
  • libcaca/trunk/examples/conio.c

    r3588 r4126  
    4949
    5050BOOLEAN computerMove(void);
    51 BOOLEAN doubleHaed(int, int [Y_BOARD][X_BOARD]);
     51BOOLEAN doubleHead(int, int [Y_BOARD][X_BOARD]);
    5252BOOLEAN humanMove(int);
    5353BOOLEAN isFull(void);
     
    495495void genNumWin(int n[X_BOARD])
    496496{
    497   int i, j, k, mov;
     497  int i, j, k;
    498498  int xsquare[Y_BOARD][X_BOARD];
    499499  int xxsquare[Y_BOARD][X_BOARD];
     
    591591{
    592592  int i, index, alpha;
    593   int tmp[X_BOARD];
    594593  int store[X_BOARD];
    595594
     
    611610}
    612611
    613 void main()
     612int main(void)
    614613{
    615614  BOOLEAN myturn;
  • libcaca/trunk/examples/mouse.c

    r4097 r4126  
    1 /* 
     1/*
    22 *  mouse         libcaca mouse events
    33 *  Copyright (c) 2006-2009 Jean-Yves Lamoureux <jylam@lnxscene.org>
  • libcaca/trunk/ruby/caca-canvas.c

    r4125 r4126  
    474474            if((TYPE(v) != T_ARRAY) || (RARRAY(v)->len != 2))
    475475                rb_raise(rb_eArgError, "invalid coords list");
    476             ccoords[2*i] = NUM2INT(rb_ary_entry(v, 0));
    477             ccoords[2*i+1] = NUM2INT(rb_ary_entry(v, 1));
    478         }
     476            ccoords[2*i] = NUM2INT(rb_ary_entry(v, 0));
     477            ccoords[2*i+1] = NUM2INT(rb_ary_entry(v, 1));
     478        }
    479479    }
    480480
     
    487487    {
    488488        v = rb_ary_entry(uv, i);
    489         if(l==6)
    490             cuv[i] = NUM2DBL(v);
    491         else
    492         {
     489        if(l==6)
     490            cuv[i] = NUM2DBL(v);
     491        else
     492        {
    493493            if((TYPE(v) != T_ARRAY) || (RARRAY(v)->len != 2))
    494494                rb_raise(rb_eArgError, "invalid uv list");
    495             ccoords[2*i] = NUM2DBL(rb_ary_entry(v, 0));
    496             ccoords[2*i+1] = NUM2DBL(rb_ary_entry(v, 1));
    497         }
     495            ccoords[2*i] = NUM2DBL(rb_ary_entry(v, 0));
     496            ccoords[2*i+1] = NUM2DBL(rb_ary_entry(v, 1));
     497        }
    498498    }
    499499
Note: See TracChangeset for help on using the changeset viewer.