aboutsummaryrefslogtreecommitdiff
path: root/programs/src/kconfig_parser/cnfexpr.h
blob: ed5c2fbddd5b903b2b9efcd3b3814bb0cddab60c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _CNFEXPR_H_
#define _CNFEXPR_H_

#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include "symlist.h"
#include "kconfig/lkc.h"

enum cnfexpr_type {
    CT_EXPR, CT_FALSE, CT_TRUE
};

struct cnfexpr {
    enum cnfexpr_type type; 
    int **exprs;
    unsigned *sizes;
    unsigned size;
};

struct cnfexpr *kconfig_cnfexpr(struct symlist *sl, struct expr *expr);
void cnf_printf(struct cnfexpr *);

struct boolexp *printf_original(struct symlist *sl, struct expr *expr);

#endif /* _CNFEXPR_H_ */