[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: g_hook.c
User: danmc
Date: 06/12/21 22:48:09
Modified: . g_hook.c
Log:
defining a function inside another function definition is not portable
and in particular breaks compilation with sun's studio c compiler. Move
this local function out.
Revision Changes Path
1.15 +5 -4 eda/geda/gaf/gschem/src/g_hook.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: g_hook.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/g_hook.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- g_hook.c 17 Dec 2006 04:14:03 -0000 1.14
+++ g_hook.c 22 Dec 2006 03:48:09 -0000 1.15
@@ -390,9 +390,7 @@
* I got top and bottom values reversed from world_get_complex_bounds,
* so don\'t rely on the position in the list.
*/
-SCM g_get_object_bounds (SCM object_smob, SCM scm_exclude_attribs, SCM scm_exclude_object_type)
-{
- void custom_world_get_complex_bounds (TOPLEVEL *w_current, OBJECT *o_current,
+static void custom_world_get_complex_bounds (TOPLEVEL *w_current, OBJECT *o_current,
int *left, int *top,
int *right, int *bottom,
GList *exclude_attrib_list,
@@ -479,6 +477,9 @@
}
}
+SCM g_get_object_bounds (SCM object_smob, SCM scm_exclude_attribs, SCM scm_exclude_object_type)
+{
+
TOPLEVEL *w_current=NULL;
OBJECT *object=NULL;
int left=0, right=0, bottom=0, top=0;
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs