[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: PCB won't compile



On Thu, 18 Mar 2010 15:31:31 +0100
Patrick Bernaud <patrickb@xxxxxxxx> wrote:

> Hello,
> 
> Kovacs Levente writes:
>  > [...]
>  > hid/lesstif/menu.c: In function ?lesstif_call_action?:
>  > hid/lesstif/menu.c:856: error: ?x? undeclared (first use in this
>  > function) hid/lesstif/menu.c:856: error: (Each undeclared
>  > identifier is reported only once hid/lesstif/menu.c:856: error:
>  > for each function it appears in.) hid/lesstif/menu.c:856:
>  > error: ?y? undeclared (first use in this function)
>  > 
> 
> Change the line to read:
> ret = current_action->trigger_cb (argc, argv, px, py);
> instead of:
> ret = current_action->trigger_cb (argc, argv, x, y);

Later, I figured it out.

I don't know what is the current state of the contribution for gEDA/PCB, but
attached is a patch to fix this issue.

Levente


-- 
Levente Kovacs
http://logonex.eu
diff --git a/src/hid/lesstif/menu.c b/src/hid/lesstif/menu.c
index 9869483..44edaba 100644
--- a/src/hid/lesstif/menu.c
+++ b/src/hid/lesstif/menu.c
@@ -853,7 +853,7 @@ lesstif_call_action (const char *aname, int argc, char **argv)
 
   old_action     = current_action;
   current_action = a;
-  ret = current_action->trigger_cb (argc, argv, x, y);
+  ret = current_action->trigger_cb (argc, argv, px, py);
   current_action = old_action;
 
   return ret;

_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user