Date:2012-05-21 19:35:51 (11 years 10 months ago)
Author:Werner Almesberger
Commit:fdac5425920135fa9c0f6082c74f028847bc7eff
Message:b2/: add relop to struct param, in preparation of merge with struct var

Files: b2/lang.y (2 diffs)
b2/param.h (1 diff)

Change Details

b2/lang.y
1515#include <assert.h>
1616
1717#include "util.h"
18#include "relop.h"
1819#include "param.h"
1920#include "chr.h"
2021#include "db.h"
...... 
423424        {
424425            $$ = alloc_type(struct param);
425426            $$->u.name = $1;
427            $$->op = rel_eq;
426428            $$->value.u.name = $3;
427429        }
428430    ;
b2/param.h
6767        const char *name;
6868        const struct field *field;
6969    } u;
70    enum relop op; /* always rel_eq for now */
7071    struct value value;
7172    struct param *next;
7273};

Archive Download the corresponding diff file

Branches:
master



interactive