#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 583 of file nasl_init.c.
584{
585 int i;
586 for (i = 0;
libivars[i].name != NULL; i++)
588 for (i = 0;
libsvars[i].name != NULL; i++)
590}
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 515 of file nasl_init.c.
516{
518 unsigned i;
519
520 memset (&tc, 0, sizeof (tc));
521
522
525 {
528 {
529 nasl_perror (lexic,
"init_nasl_library: could not define var '%s'\n",
531 continue;
532 }
533 }
534
535
538 {
542 {
543 nasl_perror (lexic,
"init_nasl_library: could not define var '%s'\n",
545 continue;
546 }
547 }
548
549
551 nasl_perror (lexic,
"init_nasl_library: could not define var 'NULL'\n");
552}
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