mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
- fpd.y: fixed check for empty part name
- added new-style measurements (experimental) git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5400 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
46
meas.h
Normal file
46
meas.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* meas.h - Measurements
|
||||
*
|
||||
* Written 2009 by Werner Almesberger
|
||||
* Copyright 2009 by Werner Almesberger
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef MEAS_H
|
||||
#define MEAS_H
|
||||
|
||||
#include "obj.h"
|
||||
|
||||
|
||||
struct meas {
|
||||
enum meas_type {
|
||||
mt_xy_next,
|
||||
mt_x_next,
|
||||
mt_y_next,
|
||||
mt_xy_max,
|
||||
mt_x_max,
|
||||
mt_y_max,
|
||||
mt_n
|
||||
} type;
|
||||
char *label; /* or NULL */
|
||||
int inverted;
|
||||
struct vec *low;
|
||||
struct vec *high;
|
||||
struct expr *offset;
|
||||
struct meas *next;
|
||||
};
|
||||
|
||||
|
||||
extern struct meas *measurements;
|
||||
|
||||
|
||||
void meas_start(void);
|
||||
void meas_post(struct vec *vec, struct coord pos);
|
||||
int instantiate_meas(void);
|
||||
|
||||
#endif /* !MEAS_H */
|
||||
Reference in New Issue
Block a user