Browse Source

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

tags/v0.99.beta17
Sam Hocevar sam 15 years ago
parent
commit
54f96e88a9
4 changed files with 15 additions and 15 deletions
  1. +1
    -0
      examples/.gitignore
  2. +3
    -4
      examples/conio.c
  3. +1
    -1
      examples/mouse.c
  4. +10
    -10
      ruby/caca-canvas.c

+ 1
- 0
examples/.gitignore View File

@@ -18,6 +18,7 @@ gamma
hsv
import
input
mouse
spritedit
swallow
term


+ 3
- 4
examples/conio.c View File

@@ -48,7 +48,7 @@
#define DRAW_MESSAGE "Draw! Press Any Key To Continue...\n"

BOOLEAN computerMove(void);
BOOLEAN doubleHaed(int, int [Y_BOARD][X_BOARD]);
BOOLEAN doubleHead(int, int [Y_BOARD][X_BOARD]);
BOOLEAN humanMove(int);
BOOLEAN isFull(void);
BOOLEAN isWon(int, int [Y_BOARD][X_BOARD]);
@@ -494,7 +494,7 @@ void drawPiece()

void genNumWin(int n[X_BOARD])
{
int i, j, k, mov;
int i, j, k;
int xsquare[Y_BOARD][X_BOARD];
int xxsquare[Y_BOARD][X_BOARD];

@@ -590,7 +590,6 @@ void makeMove(int who, int x, int xsquare[Y_BOARD][X_BOARD])
void sorting(int n[])
{
int i, index, alpha;
int tmp[X_BOARD];
int store[X_BOARD];

for(index=0; index<X_BOARD; index++)
@@ -610,7 +609,7 @@ void sorting(int n[])
n[i] = store[i];
}

void main()
int main(void)
{
BOOLEAN myturn;
myturn = TRUE;


+ 1
- 1
examples/mouse.c View File

@@ -1,4 +1,4 @@
/*
/*
* mouse libcaca mouse events
* Copyright (c) 2006-2009 Jean-Yves Lamoureux <jylam@lnxscene.org>
* All Rights Reserved


+ 10
- 10
ruby/caca-canvas.c View File

@@ -473,9 +473,9 @@ static VALUE fill_triangle_textured(VALUE self, VALUE coords, VALUE texture, VAL
{
if((TYPE(v) != T_ARRAY) || (RARRAY(v)->len != 2))
rb_raise(rb_eArgError, "invalid coords list");
ccoords[2*i] = NUM2INT(rb_ary_entry(v, 0));
ccoords[2*i+1] = NUM2INT(rb_ary_entry(v, 1));
}
ccoords[2*i] = NUM2INT(rb_ary_entry(v, 0));
ccoords[2*i+1] = NUM2INT(rb_ary_entry(v, 1));
}
}

l = RARRAY(uv)->len;
@@ -486,15 +486,15 @@ static VALUE fill_triangle_textured(VALUE self, VALUE coords, VALUE texture, VAL
for(i=0; i<l; i++)
{
v = rb_ary_entry(uv, i);
if(l==6)
cuv[i] = NUM2DBL(v);
else
{
if(l==6)
cuv[i] = NUM2DBL(v);
else
{
if((TYPE(v) != T_ARRAY) || (RARRAY(v)->len != 2))
rb_raise(rb_eArgError, "invalid uv list");
ccoords[2*i] = NUM2DBL(rb_ary_entry(v, 0));
ccoords[2*i+1] = NUM2DBL(rb_ary_entry(v, 1));
}
ccoords[2*i] = NUM2DBL(rb_ary_entry(v, 0));
ccoords[2*i+1] = NUM2DBL(rb_ary_entry(v, 1));
}
}

if(CLASS_OF(texture) != cCanvas)


Loading…
Cancel
Save