OpenVAS Scanner
7.0.1~git
|
#include "nasl_func.h"
#include "exec.h"
#include "nasl_debug.h"
#include "nasl_global_ctxt.h"
#include "nasl_lex_ctxt.h"
#include "nasl_tree.h"
#include "nasl_var.h"
#include <glib.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Macros | |
#define | TRACE_BUF_SZ 255 |
Functions | |
static nasl_func * | get_func (lex_ctxt *ctxt, const char *name) |
This function climbs up in the context list and searches for a given. More... | |
nasl_func * | insert_nasl_func (lex_ctxt *lexic, const char *fname, tree_cell *decl_node, int lint_mode) |
tree_cell * | decl_nasl_func (lex_ctxt *lexic, tree_cell *decl_node, int lint_mode) |
nasl_func * | get_func_ref_by_name (lex_ctxt *ctxt, const char *name) |
tree_cell * | nasl_func_call (lex_ctxt *lexic, const nasl_func *f, tree_cell *arg_list) |
tree_cell * | nasl_return (lex_ctxt *ctxt, tree_cell *retv) |
void | free_func (nasl_func *f) |
Variables | |
FILE * | nasl_trace_fp |
#define TRACE_BUF_SZ 255 |
Referenced by nasl_func_call().
Definition at line 78 of file nasl_func.c.
References FAKE_CELL, insert_nasl_func(), nasl_perror(), TC::str_val, and TC::x.
Referenced by nasl_exec(), nasl_lint_call(), and nasl_lint_def().
void free_func | ( | nasl_func * | f | ) |
Definition at line 269 of file nasl_func.c.
References st_nasl_func::func_name.
Referenced by init_empty_lex_ctxt().
This function climbs up in the context list and searches for a given.
function.
Definition at line 37 of file nasl_func.c.
References func_is_internal(), struct_lex_ctxt::functions, name, and struct_lex_ctxt::up_ctxt.
Referenced by get_func_ref_by_name(), and insert_nasl_func().
Definition at line 94 of file nasl_func.c.
References get_func(), and name.
Referenced by exec_nasl_script(), make_call_func_list(), nasl_defined_func(), nasl_exec(), nasl_lint_call(), and nasl_lint_def().
nasl_func* insert_nasl_func | ( | lex_ctxt * | lexic, |
const char * | fname, | ||
tree_cell * | decl_node, | ||
int | lint_mode | ||
) |
Definition at line 53 of file nasl_func.c.
References st_nasl_func::block, FAKE_CELL, st_nasl_func::func_name, struct_lex_ctxt::functions, get_func(), TC::link, nasl_perror(), and ref_cell().
Referenced by decl_nasl_func().
Definition at line 107 of file nasl_func.c.
References add_named_var_to_ctxt(), add_numbered_var_to_ctxt(), st_nasl_func::block, cell2atom(), deref_cell(), dump_cell_val(), FAKE_CELL, struct_lex_ctxt::fct_ctxt, free_lex_ctxt(), func_is_internal(), st_nasl_func::func_name, init_empty_lex_ctxt(), TC::link, nasl_dump_tree(), nasl_exec(), nasl_get_filename(), nasl_get_function_name(), nasl_is_leaf(), nasl_perror(), nasl_set_filename(), nasl_set_function_name(), nasl_trace(), nasl_trace_enabled(), nasl_trace_fp, struct_lex_ctxt::oid, struct_lex_ctxt::recv_timeout, ref_cell(), struct_lex_ctxt::ret_val, struct_lex_ctxt::script_infos, TC::str_val, TRACE_BUF_SZ, struct_lex_ctxt::up_ctxt, and TC::x.
Referenced by exec_nasl_script(), and nasl_exec().
Definition at line 239 of file nasl_func.c.
References cell2atom(), copy_ref_array(), deref_cell(), FAKE_CELL, struct_lex_ctxt::fct_ctxt, REF_ARRAY, ref_cell(), struct_lex_ctxt::ret_val, TC::type, and struct_lex_ctxt::up_ctxt.
Referenced by nasl_exec().
FILE* nasl_trace_fp |
Definition at line 368 of file exec.c.
Referenced by nasl_func_call().