OpenVAS Scanner  21.4.1
Functions
nasl_lex_ctxt.c File Reference
#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>

Functions

void init_nasl_library (lex_ctxt *)
 Adds "built-in" variable and function definitions to a context. More...
 
lex_ctxtinit_empty_lex_ctxt ()
 
void free_lex_ctxt (lex_ctxt *c)
 
void dump_ctxt (lex_ctxt *c)
 

Function Documentation

◆ dump_ctxt()

void dump_ctxt ( lex_ctxt c)

◆ free_lex_ctxt()

void free_lex_ctxt ( lex_ctxt c)

◆ init_empty_lex_ctxt()

lex_ctxt* init_empty_lex_ctxt ( void  )
Todo:
Initialization of the library seems intuitively be necessary only once (involves "linking" the nasl functions to c code). Consider a "prototype" context that has to be created only once and of which copies are made when needed.

◆ init_nasl_library()

void init_nasl_library ( lex_ctxt lexic)

Adds "built-in" variable and function definitions to a context.