OpenVAS Libraries  9.0.1
Functions
nasl_tree.c File Reference
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <regex.h>
#include "nasl_tree.h"
#include "nasl_global_ctxt.h"
#include "nasl_func.h"
#include "nasl_var.h"
#include "nasl_lex_ctxt.h"
#include "exec.h"
#include "nasl_debug.h"

Functions

tree_cellalloc_tree_cell (int lnb, char *s)
 
tree_cellalloc_typed_cell (int typ)
 
tree_cellalloc_RE_cell (int lnb, int t, tree_cell *l, char *re_str)
 
tree_cellalloc_expr_cell (int lnb, int t, tree_cell *l, tree_cell *r)
 
tree_celldup_cell (const tree_cell *tc)
 
void ref_cell (tree_cell *c)
 
void deref_cell (tree_cell *c)
 
char * dump_cell_val (const tree_cell *c)
 
const char * nasl_type_name (int t)
 
void nasl_dump_tree (const tree_cell *c)
 
char * get_line_nb (const tree_cell *c)
 
int nasl_is_leaf (const tree_cell *pc)
 
int cell_type (const tree_cell *c)
 

Function Documentation

◆ alloc_expr_cell()

tree_cell* alloc_expr_cell ( int  lnb,
int  t,
tree_cell l,
tree_cell r 
)

◆ alloc_RE_cell()

tree_cell* alloc_RE_cell ( int  lnb,
int  t,
tree_cell l,
char *  re_str 
)

◆ alloc_tree_cell()

tree_cell* alloc_tree_cell ( int  lnb,
char *  s 
)

◆ alloc_typed_cell()

tree_cell* alloc_typed_cell ( int  typ)

◆ cell_type()

int cell_type ( const tree_cell c)

◆ deref_cell()

void deref_cell ( tree_cell c)

◆ dump_cell_val()

char* dump_cell_val ( const tree_cell c)

◆ dup_cell()

tree_cell* dup_cell ( const tree_cell tc)

◆ get_line_nb()

char* get_line_nb ( const tree_cell c)

◆ nasl_dump_tree()

void nasl_dump_tree ( const tree_cell c)

◆ nasl_is_leaf()

int nasl_is_leaf ( const tree_cell pc)

◆ nasl_type_name()

const char* nasl_type_name ( int  t)

◆ ref_cell()

void ref_cell ( tree_cell c)