19 #ifndef _NASL_LEX_CTXT_H
20 #define _NASL_LEX_CTXT_H
23 #include "nasl_tree.h"
29 #include "nasl_func.h"
36 unsigned break_flag:1;
38 unsigned authenticated:1;
39 unsigned always_authenticated:1;
48 #define NASL_COMPAT_LEX_CTXT "NASL compat lex context"
50 lex_ctxt *init_empty_lex_ctxt (
void);
76 int get_int_var_by_num (
lex_ctxt *,
int,
int);
77 char *get_str_var_by_num (
lex_ctxt *,
int);
78 int get_int_var_by_name (
lex_ctxt *,
const char *,
int);
79 int get_int_local_var_by_name (
lex_ctxt *,
const char *,
int);
80 char *get_str_var_by_name (
lex_ctxt *,
const char *);
81 char *get_str_local_var_by_name (
lex_ctxt *,
const char *);
83 int get_var_size_by_name (
lex_ctxt *,
const char *);
84 int get_local_var_size_by_name (
lex_ctxt *,
const char *);
85 int get_local_var_type_by_name (
lex_ctxt *,
const char *);
88 int get_var_size_by_num (
lex_ctxt *,
int);
89 int get_var_type_by_num (
lex_ctxt *,
int);