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:
12
meas.h
12
meas.h
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user