1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2025-04-21 12:27:27 +03:00

More work on measurements. Getting there ...

- removed support for old-style measurements
- new-style measurements are now embedded in "struct obj", so we can dump and 
  delete them
- "measxy" is now called "meas"
- updated examples to use new-style measurements



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5412 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
werner
2009-08-09 00:06:54 +00:00
parent 851c82af6f
commit 4a0fd61016
19 changed files with 107 additions and 105 deletions

10
obj.c
View File

@@ -92,7 +92,7 @@ static int generate_objs(struct frame *frame, struct coord base, int active)
struct obj *obj;
char *name;
int ok;
struct num width, offset;
struct num width;
for (obj = frame->objs; obj; obj = obj->next)
switch (obj->type) {
@@ -145,14 +145,6 @@ static int generate_objs(struct frame *frame, struct coord base, int active)
return 0;
break;
case ot_meas:
offset = eval_unit(obj->u.meas.offset, frame);
if (is_undef(offset))
return 0;
if (!inst_meas(obj, NULL,
obj->base ? obj->base->pos : base,
obj->u.meas.other ? obj->u.meas.other->pos : base,
offset.n))
return 0;
break;
default:
abort();