ACT Library
Loading...
Searching...
No Matches
Macros | Functions
act_walk.extra.h File Reference
#include <stdio.h>
#include <string.h>
#include <common/list.h>
#include <common/except.h>
#include <common/qops.h>
#include <common/misc.h>
#include <common/config.h>
#include <act/lang.h>
#include <act/path.h>
#include <act/namespaces.h>
#include <act/types.h>
#include <act/inst.h>
#include <act/body.h>
#include "treetypes.h"

Go to the source code of this file.

Macros

#define OPT_EXISTS(x)   !list_isempty (x)
 
#define OPT_EMPTY(x)   list_isempty (x)
 
#define LIST_VALUE(x)   ((ActRet *)list_value (x))
 
#define OPT_VALUE(x)   LIST_VALUE (list_first (x))
 
#define OPT_FREE(x)   list_free(x)
 
#define OPT_VALUE2(x)   LIST_VALUE (list_next (list_first (x)))
 
#define OPT_VALUE3(x)   LIST_VALUE (list_next (list_next (list_first (x))))
 
#define OPT_VALUE4(x)   LIST_VALUE (list_next (list_next (list_next (list_first (x)))))
 

Functions

Exprconst_expr (long val)
 
Expract_walk_X_expr (ActTree *cookie, Expr *e)
 
void print_ns_string (FILE *fp, list_t *l)
 
int _act_id_is_true_false (ActId *id)
 
int _act_id_is_enum_const (ActOpen *os, ActNamespace *ns, ActId *id)
 

Macro Definition Documentation

◆ LIST_VALUE

#define LIST_VALUE (   x)    ((ActRet *)list_value (x))

◆ OPT_EMPTY

#define OPT_EMPTY (   x)    list_isempty (x)

◆ OPT_EXISTS

#define OPT_EXISTS (   x)    !list_isempty (x)

◆ OPT_FREE

#define OPT_FREE (   x)    list_free(x)

◆ OPT_VALUE

#define OPT_VALUE (   x)    LIST_VALUE (list_first (x))

◆ OPT_VALUE2

#define OPT_VALUE2 (   x)    LIST_VALUE (list_next (list_first (x)))

◆ OPT_VALUE3

#define OPT_VALUE3 (   x)    LIST_VALUE (list_next (list_next (list_first (x))))

◆ OPT_VALUE4

#define OPT_VALUE4 (   x)    LIST_VALUE (list_next (list_next (list_next (list_first (x)))))

Function Documentation

◆ _act_id_is_enum_const()

int _act_id_is_enum_const ( ActOpen os,
ActNamespace ns,
ActId id 
)

◆ _act_id_is_true_false()

int _act_id_is_true_false ( ActId id)

◆ act_walk_X_expr()

Expr * act_walk_X_expr ( ActTree *  cookie,
Expr e 
)

◆ const_expr()

Expr * const_expr ( long  val)

◆ print_ns_string()

void print_ns_string ( FILE *  fp,
list_t *  l 
)