Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
expr.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lkc.h"

Go to the source code of this file.

Macros

#define DEBUG_EXPR   0
 
#define e1   (*ep1)
 
#define e2   (*ep2)
 
#define e1   (*ep1)
 
#define e2   (*ep2)
 
#define e1   (*ep1)
 
#define e2   (*ep2)
 
#define e1   (*ep1)
 
#define e2   (*ep2)
 

Functions

struct exprexpr_alloc_symbol (struct symbol *sym)
 
struct exprexpr_alloc_one (enum expr_type type, struct expr *ce)
 
struct exprexpr_alloc_two (enum expr_type type, struct expr *e1, struct expr *e2)
 
struct exprexpr_alloc_comp (enum expr_type type, struct symbol *s1, struct symbol *s2)
 
struct exprexpr_alloc_and (struct expr *e1, struct expr *e2)
 
struct exprexpr_alloc_or (struct expr *e1, struct expr *e2)
 
struct exprexpr_copy (const struct expr *org)
 
void expr_free (struct expr *e)
 
void expr_eliminate_eq (struct expr **ep1, struct expr **ep2)
 
int expr_eq (struct expr *e1, struct expr *e2)
 
struct exprexpr_eliminate_yn (struct expr *e)
 
struct exprexpr_trans_bool (struct expr *e)
 
struct exprexpr_eliminate_dups (struct expr *e)
 
struct exprexpr_transform (struct expr *e)
 
int expr_contains_symbol (struct expr *dep, struct symbol *sym)
 
bool expr_depends_symbol (struct expr *dep, struct symbol *sym)
 
struct exprexpr_extract_eq_and (struct expr **ep1, struct expr **ep2)
 
struct exprexpr_extract_eq_or (struct expr **ep1, struct expr **ep2)
 
void expr_extract_eq (enum expr_type type, struct expr **ep, struct expr **ep1, struct expr **ep2)
 
struct exprexpr_trans_compare (struct expr *e, enum expr_type type, struct symbol *sym)
 
tristate expr_calc_value (struct expr *e)
 
int expr_compare_type (enum expr_type t1, enum expr_type t2)
 
struct exprexpr_simplify_unmet_dep (struct expr *e1, struct expr *e2)
 
void expr_print (struct expr *e, void(*fn)(void *, struct symbol *, const char *), void *data, int prevtoken)
 
void expr_fprint (struct expr *e, FILE *out)
 
void expr_gstr_print (struct expr *e, struct gstr *gs)
 

Macro Definition Documentation

#define DEBUG_EXPR   0

Definition at line 12 of file expr.c.

#define e1   (*ep1)

Definition at line 127 of file expr.c.

#define e1   (*ep1)

Definition at line 127 of file expr.c.

#define e1   (*ep1)

Definition at line 127 of file expr.c.

#define e1   (*ep1)

Definition at line 127 of file expr.c.

#define e2   (*ep2)

Definition at line 128 of file expr.c.

#define e2   (*ep2)

Definition at line 128 of file expr.c.

#define e2   (*ep2)

Definition at line 128 of file expr.c.

#define e2   (*ep2)

Definition at line 128 of file expr.c.

Function Documentation

struct expr* expr_alloc_and ( struct expr e1,
struct expr e2 
)
read

Definition at line 48 of file expr.c.

struct expr* expr_alloc_comp ( enum expr_type  type,
struct symbol s1,
struct symbol s2 
)
read

Definition at line 39 of file expr.c.

struct expr* expr_alloc_one ( enum expr_type  type,
struct expr ce 
)
read

Definition at line 22 of file expr.c.

struct expr* expr_alloc_or ( struct expr e1,
struct expr e2 
)
read

Definition at line 55 of file expr.c.

struct expr* expr_alloc_symbol ( struct symbol sym)
read

Definition at line 14 of file expr.c.

struct expr* expr_alloc_two ( enum expr_type  type,
struct expr e1,
struct expr e2 
)
read

Definition at line 30 of file expr.c.

tristate expr_calc_value ( struct expr e)

Definition at line 938 of file expr.c.

int expr_compare_type ( enum expr_type  t1,
enum expr_type  t2 
)

Definition at line 979 of file expr.c.

int expr_contains_symbol ( struct expr dep,
struct symbol sym 
)

Definition at line 773 of file expr.c.

struct expr* expr_copy ( const struct expr org)
read

Definition at line 62 of file expr.c.

bool expr_depends_symbol ( struct expr dep,
struct symbol sym 
)

Definition at line 797 of file expr.c.

struct expr* expr_eliminate_dups ( struct expr e)
read

Definition at line 612 of file expr.c.

void expr_eliminate_eq ( struct expr **  ep1,
struct expr **  ep2 
)

Definition at line 164 of file expr.c.

struct expr* expr_eliminate_yn ( struct expr e)
read

Definition at line 231 of file expr.c.

int expr_eq ( struct expr e1,
struct expr e2 
)

Definition at line 189 of file expr.c.

void expr_extract_eq ( enum expr_type  type,
struct expr **  ep,
struct expr **  ep1,
struct expr **  ep2 
)

Definition at line 848 of file expr.c.

struct expr* expr_extract_eq_and ( struct expr **  ep1,
struct expr **  ep2 
)
read

Definition at line 826 of file expr.c.

struct expr* expr_extract_eq_or ( struct expr **  ep1,
struct expr **  ep2 
)
read

Definition at line 837 of file expr.c.

void expr_fprint ( struct expr e,
FILE *  out 
)

Definition at line 1130 of file expr.c.

void expr_free ( struct expr e)

Definition at line 99 of file expr.c.

void expr_gstr_print ( struct expr e,
struct gstr gs 
)

Definition at line 1165 of file expr.c.

void expr_print ( struct expr e,
void(*)(void *, struct symbol *, const char *)  fn,
void data,
int  prevtoken 
)

Definition at line 1053 of file expr.c.

struct expr* expr_simplify_unmet_dep ( struct expr e1,
struct expr e2 
)
read

Definition at line 1028 of file expr.c.

struct expr* expr_trans_bool ( struct expr e)
read

Definition at line 317 of file expr.c.

struct expr* expr_trans_compare ( struct expr e,
enum expr_type  type,
struct symbol sym 
)
read

Definition at line 877 of file expr.c.

struct expr* expr_transform ( struct expr e)
read

Definition at line 636 of file expr.c.