r5524 - trunk/eda/fped
werner at docs.openmoko.org
werner at docs.openmoko.org
Sat Aug 22 16:29:49 CEST 2009
Author: werner
Date: 2009-08-22 16:29:48 +0200 (Sat, 22 Aug 2009)
New Revision: 5524
Modified:
trunk/eda/fped/gui_tool.c
trunk/eda/fped/obj.c
Log:
Bug-fixing ...
- obj.c: embarrasingly, the default offset wasn't a distance
- connect_obj: didn't update the object's frame pointer, deeply confusing
deletion
Modified: trunk/eda/fped/gui_tool.c
===================================================================
--- trunk/eda/fped/gui_tool.c 2009-08-22 13:18:15 UTC (rev 5523)
+++ trunk/eda/fped/gui_tool.c 2009-08-22 14:29:48 UTC (rev 5524)
@@ -101,6 +101,7 @@
{
struct obj **walk;
+ obj->frame = frame;
for (walk = &frame->objs; *walk; walk = &(*walk)->next);
*walk = obj;
}
Modified: trunk/eda/fped/obj.c
===================================================================
--- trunk/eda/fped/obj.c 2009-08-22 13:18:15 UTC (rev 5523)
+++ trunk/eda/fped/obj.c 2009-08-22 14:29:48 UTC (rev 5524)
@@ -25,6 +25,7 @@
#define DEFAULT_SILK_WIDTH make_mil(15) /* @@@ */
+#define DEFAULT_OFFSET make_mil(0) /* @@@ */
#define MAX_ITERATIONS 1000 /* abort "loop"s at this limit */
@@ -94,11 +95,6 @@
static int generate_objs(struct frame *frame, struct coord base, int active)
{
- static const struct num zero_offset = {
- .type = nt_mm,
- .exponent = 0,
- .n = 0,
- };
struct obj *obj;
char *name;
int ok;
@@ -157,7 +153,7 @@
case ot_meas:
assert(frame == root_frame);
offset = eval_unit_default(obj->u.meas.offset, frame,
- zero_offset);
+ DEFAULT_OFFSET);
if (is_undef(offset))
goto error;
inst_meas_hint(obj, offset.n);
More information about the commitlog
mailing list