1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-07-02 23:42:55 +03:00
eda-tools/b2/subex.h

34 lines
776 B
C
Raw Normal View History

/*
* subex.h - Substitution (execution)
*
* Copyright 2012 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 SUBEX_H
#define SUBEX_H
#include "relop.h"
#include "subst.h"
struct var {
const char *name;
enum relop op;
const char *value;
struct var *next;
};
struct var *substitute(const struct subst *sub, const struct var *in);
struct var *make_var(const char *name, enum relop op, const char *val);
const char *var_lookup(const struct var *vars, const char *name);
void free_vars(struct var *vars);
#endif /* !SUBEX_H */