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

12
meas.h
View File

@@ -14,11 +14,15 @@
#ifndef MEAS_H
#define MEAS_H
#include "obj.h"
#include "coord.h"
#include "expr.h"
typedef int (*lt_op_type)(struct coord a, struct coord b);
struct vec;
struct obj;
struct meas {
enum meas_type {
@@ -32,18 +36,14 @@ struct meas {
} type;
char *label; /* or NULL */
int inverted;
struct vec *low;
/* low is obj->base */
struct vec *high;
struct expr *offset;
struct meas *next;
};
struct sample;
extern struct meas *measurements;
int lt_x(struct coord a, struct coord b);
int lt_y(struct coord a, struct coord b);
int lt_xy(struct coord a, struct coord b);