aboutsummaryrefslogtreecommitdiff
path: root/scripts/kconfig_parser/cnfexpr.h
blob: 1d0edd477ec39a5affed806b2ac58cfa2d2dcfbe (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 "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, bool nt, struct expr *expr);
void cnf_printf(struct cnfexpr *);

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

#endif /* _CNFEXPR_H_ */