[Xbubble-commits] xbubble/src cell.c,1.1,1.2 cell.h,1.1,1.2

Martin Quinson xbubble-devel@lists.alioth.debian.org
Wed, 27 Apr 2005 14:27:31 +0000


Update of /cvsroot/xbubble/xbubble/src
In directory haydn:/tmp/cvs-serv26099

Modified Files:
	cell.c cell.h 
Log Message:
declare static functions which should, rename a function to avoid a namespace colision

Index: cell.c
===================================================================
RCS file: /cvsroot/xbubble/xbubble/src/cell.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cell.c	5 Dec 2004 20:40:59 -0000	1.1
+++ cell.c	27 Apr 2005 14:27:29 -0000	1.2
@@ -251,7 +251,7 @@
 
 extern int xbubble_path_cache[2][ROWS][NB_ANGLES][2][TRAJ_MAX_LENGTH];
 
-int target_cell( CellArray ca, int angle, 
+int find_target_cell( CellArray ca, int angle, 
 		 double *target_y, /* upper bound to the ball animation */
 		 Vector outpath /* used in player vs computer mode (cf opponent.c)*/ ) {
 
@@ -297,7 +297,7 @@
   return OUT_OF_BOUNDS;
 }
 
-void hook_cell( CellArray ca, int i) {
+static void hook_cell( CellArray ca, int i) {
   Quadrant q;
   if (( cell_not_empty( ca, i))&&( ! ca->tagged[i] )) {
     ca->tagged[i] = 1;
@@ -468,7 +468,7 @@
 }
 #endif
 
-void dump_array(CellArray ca) {
+static void dump_array(CellArray ca) {
   int i, j, k;
 
   printf("_________________________________\n");

Index: cell.h
===================================================================
RCS file: /cvsroot/xbubble/xbubble/src/cell.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cell.h	5 Dec 2004 20:40:59 -0000	1.1
+++ cell.h	27 Apr 2005 14:27:29 -0000	1.2
@@ -52,10 +52,10 @@
 int cellCL( CellArray ca, int row, int col );
 int floating_cell( CellArray ca, int c );
 void cell_center( CellArray ca, int cell, double *x, double *y);
-int target_cell( CellArray ca, 
-		 int angle, 
-		 double * target_y,
-		 Vector path );
+int find_target_cell( CellArray ca, 
+		      int angle, 
+		      double * target_y,
+		      Vector path );
 
 int find_random_empty_cell( CellArray ca, int from_top  );