[xiph-commits] r10165 - trunk/planarity

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Sun Oct 16 15:35:15 PDT 2005


Author: xiphmont
Date: 2005-10-16 15:35:12 -0700 (Sun, 16 Oct 2005)
New Revision: 10165

Modified:
   trunk/planarity/gameboard_logic_mouse.c
   trunk/planarity/graph.c
   trunk/planarity/graph.h
   trunk/planarity/version.h
Log:
Correct numerous prototyping errors that GCC4 ignores for God Knows
What Reason, and clean up a bug that slipped past because of it (crash
when releasing drag selection)



Modified: trunk/planarity/gameboard_logic_mouse.c
===================================================================
--- trunk/planarity/gameboard_logic_mouse.c	2005-10-16 14:50:37 UTC (rev 10164)
+++ trunk/planarity/gameboard_logic_mouse.c	2005-10-16 22:35:12 UTC (rev 10165)
@@ -326,7 +326,7 @@
 	g->selection_active=0;
 	deselect_verticies(&g->g); // could have grabbed just one
       }else{
-	commit_volatile_selection();
+	commit_volatile_selection(&g->g);
 	g->selection_active=num_selected_verticies(&g->g);
       }
     }

Modified: trunk/planarity/graph.c
===================================================================
--- trunk/planarity/graph.c	2005-10-16 14:50:37 UTC (rev 10164)
+++ trunk/planarity/graph.c	2005-10-16 22:35:12 UTC (rev 10165)
@@ -423,7 +423,7 @@
 }
 
 /*********************** vertex maint operations *************************/
-vertex *get_vertex(graph *g){
+static vertex *get_vertex(graph *g){
   vertex *ret;
   
   if(vertex_pool==0){

Modified: trunk/planarity/graph.h
===================================================================
--- trunk/planarity/graph.h	2005-10-16 14:50:37 UTC (rev 10164)
+++ trunk/planarity/graph.h	2005-10-16 22:35:12 UTC (rev 10165)
@@ -129,16 +129,11 @@
 extern void randomize_verticies(graph *g);
 extern edge *add_edge(graph *g,vertex *A, vertex *B);
 extern int exists_edge(vertex *a, vertex *b);
-extern vertex *get_verticies();
-extern edge *get_edges();
 extern int num_selected_verticies(graph *g);
-extern int get_num_intersections();
-extern int get_max_intersections();
-extern void check_verticies();
-extern void impress_location();
-extern void commit_volatile_selection();
-extern vertex *get_vertex();
-extern void activate_verticies();
+extern void check_verticies(graph *g);
+extern void impress_location(graph *g);
+extern void commit_volatile_selection(graph *g);
+extern void activate_verticies(graph *g);
 extern int graph_write(graph *g, FILE *f);
 extern int graph_read(graph *g, FILE *f);
 extern void graph_release(graph *g);

Modified: trunk/planarity/version.h
===================================================================
--- trunk/planarity/version.h	2005-10-16 14:50:37 UTC (rev 10164)
+++ trunk/planarity/version.h	2005-10-16 22:35:12 UTC (rev 10165)
@@ -1,2 +1,2 @@
 #define VERSION "$Id$ "
-/* DO NOT EDIT: Automated versioning hack [Sat Oct 15 02:46:25 EDT 2005] */
+/* DO NOT EDIT: Automated versioning hack [Sun Oct 16 18:33:41 EDT 2005] */



More information about the commits mailing list