1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2025-01-22 05:31:06 +02:00

b2/: add relop to struct param, in preparation of merge with struct var

This commit is contained in:
Werner Almesberger 2012-05-21 14:35:51 -03:00
parent 3ad6c2c44b
commit fdac542592
2 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@
#include <assert.h>
#include "util.h"
#include "relop.h"
#include "param.h"
#include "chr.h"
#include "db.h"
@ -423,6 +424,7 @@ param:
{
$$ = alloc_type(struct param);
$$->u.name = $1;
$$->op = rel_eq;
$$->value.u.name = $3;
}
;

View File

@ -67,6 +67,7 @@ struct param {
const char *name;
const struct field *field;
} u;
enum relop op; /* always rel_eq for now */
struct value value;
struct param *next;
};