|
OpenVAS Scanner 23.32.3
|
#include "nasl_lex_ctxt.h"#include "nasl_func.h"#include "nasl_global_ctxt.h"#include "nasl_tree.h"#include "nasl_var.h"#include <glib.h>
Go to the source code of this file.
Functions | |
| void | init_nasl_library (lex_ctxt *) |
| Adds "built-in" variable and function definitions to a context. | |
| lex_ctxt * | init_empty_lex_ctxt () |
| void | free_lex_ctxt (lex_ctxt *c) |
| void | dump_ctxt (lex_ctxt *c) |
| void dump_ctxt | ( | lex_ctxt * | c | ) |
Definition at line 52 of file nasl_lex_ctxt.c.
References struct_lex_ctxt::ctx_vars, struct_lex_ctxt::fct_ctxt, st_nasl_array::hash_elt, nasl_dump_tree(), st_n_nasl_var::next_var, struct_lex_ctxt::ret_val, struct_lex_ctxt::up_ctxt, st_n_nasl_var::var_name, and VAR_NAME_HASH.
Referenced by nasl_dump_ctxt().


| void free_lex_ctxt | ( | lex_ctxt * | c | ) |
Definition at line 43 of file nasl_lex_ctxt.c.
References struct_lex_ctxt::ctx_vars, deref_cell(), free_array(), struct_lex_ctxt::functions, and struct_lex_ctxt::ret_val.
Referenced by exec_nasl_script(), nasl_func_call(), and nasl_lint().


| lex_ctxt * init_empty_lex_ctxt | ( | void | ) |
Definition at line 20 of file nasl_lex_ctxt.c.
References struct_lex_ctxt::ctx_vars, struct_lex_ctxt::fct_ctxt, free_func(), struct_lex_ctxt::functions, st_nasl_array::hash_elt, init_nasl_library(), st_nasl_array::max_idx, st_nasl_array::num_elt, struct_lex_ctxt::oid, struct_lex_ctxt::ret_val, and VAR_NAME_HASH.
Referenced by exec_nasl_script(), nasl_func_call(), and nasl_lint().


| void init_nasl_library | ( | lex_ctxt * | lexic | ) |
Adds "built-in" variable and function definitions to a context.
Definition at line 514 of file nasl_init.c.
References add_named_var_to_ctxt(), CONST_DATA, CONST_INT, TC::i_val, libivars, libsvars, name, nasl_perror(), TC::size, TC::str_val, TC::type, val, and TC::x.
Referenced by init_empty_lex_ctxt().

