#include "nasl_lex_ctxt.h"
#include <glib.h>
Go to the source code of this file.
◆ add_nasl_library()
| void add_nasl_library |
( |
GSList ** | list | ) |
|
Add "built-in" variables to a list.
Definition at line 582 of file nasl_init.c.
583{
584 int i;
585 for (i = 0;
libivars[i].name != NULL; i++)
587 for (i = 0;
libsvars[i].name != NULL; i++)
589}
static struct @260365312376163127012272224246062244353077307342 libsvars[]
static struct @002143073300314243041325344242175301040162155246 libivars[]
References libivars, libsvars, and name.
Referenced by add_predef_varname().
◆ init_nasl_library()
| 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.
515{
517 unsigned i;
518
519 memset (&tc, 0, sizeof (tc));
520
521
524 {
527 {
528 nasl_perror (lexic,
"init_nasl_library: could not define var '%s'\n",
530 continue;
531 }
532 }
533
534
537 {
541 {
542 nasl_perror (lexic,
"init_nasl_library: could not define var '%s'\n",
544 continue;
545 }
546 }
547
548
550 nasl_perror (lexic,
"init_nasl_library: could not define var 'NULL'\n");
551}
void nasl_perror(lex_ctxt *lexic, char *msg,...)
named_nasl_var * add_named_var_to_ctxt(lex_ctxt *, const char *, tree_cell *)
union TC::@332262321161220155002104006201360276211317150140 x