OpenVAS Scanner 23.23.1
nasl_func.c File Reference
#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>

Macros

#define TRACE_BUF_SZ   255

Functions

static nasl_funcget_func (lex_ctxt *ctxt, const char *name)
 This function climbs up in the context list and searches for a given.
nasl_funcinsert_nasl_func (lex_ctxt *lexic, const char *fname, tree_cell *decl_node, int lint_mode)
tree_celldecl_nasl_func (lex_ctxt *lexic, tree_cell *decl_node, int lint_mode)
nasl_funcget_func_ref_by_name (lex_ctxt *ctxt, const char *name)
tree_cellnasl_func_call (lex_ctxt *lexic, const nasl_func *f, tree_cell *arg_list)
tree_cellnasl_return (lex_ctxt *ctxt, tree_cell *retv)
void free_func (nasl_func *f)

Variables

FILE * nasl_trace_fp

Macro Definition Documentation

◆ TRACE_BUF_SZ

#define TRACE_BUF_SZ   255

Function Documentation

◆ decl_nasl_func()

tree_cell * decl_nasl_func ( lex_ctxt * lexic,
tree_cell * decl_node,
int lint_mode )

◆ free_func()

void free_func ( nasl_func * f)

◆ get_func()

nasl_func * get_func ( lex_ctxt * ctxt,
const char * name )
static

This function climbs up in the context list and searches for a given.

function.

◆ get_func_ref_by_name()

nasl_func * get_func_ref_by_name ( lex_ctxt * ctxt,
const char * name )

◆ insert_nasl_func()

nasl_func * insert_nasl_func ( lex_ctxt * lexic,
const char * fname,
tree_cell * decl_node,
int lint_mode )

◆ nasl_func_call()

tree_cell * nasl_func_call ( lex_ctxt * lexic,
const nasl_func * f,
tree_cell * arg_list )

◆ nasl_return()

tree_cell * nasl_return ( lex_ctxt * ctxt,
tree_cell * retv )

Variable Documentation

◆ nasl_trace_fp

FILE* nasl_trace_fp
extern