Home
My Page
Projects
OpenVAS

[#1593] no define of naslparse()

Date:
2010-09-27 06:39
Priority:
3
State:
Open
Submitted by:
wangzhiwen wang (wangzhiwen)
Assigned to:
Nobody (None)
Architecture:
32 bits
Product:
OpenVAS
Operating System:
Linux
Component:
openvas-libnasl
Version:
3.0.1
Severity:
blocker
Resolution:
None
Hardware:
None
URL:
 
Summary:
no define of naslparse()

Detailed description
naslparse (ctx) : 在整个源码中都没有定义的地方 ,本人正在研究openvas scanner,

希望得到大家的帮助 ,这个函数如何实现的,谢谢 。



preparse.c

Go to the documentation of this file.

00020 #include "nasl_tree.h"

00021 #include "nasl_global_ctxt.h"

00022 #include "nasl_func.h"

00023 #include "nasl_var.h"

00024 #include "nasl_lex_ctxt.h"

00025 #include "exec.h"

00026 #include "nasl_regex.h"

00027 #include "nasl_debug.h"

00028

00029 extern int naslparse (naslctxt *);

00030

00039 int

00040 nasl_reload_or_parse (naslctxt * ctx, const char *name)

00041 {

00042 if (init_nasl_ctx (ctx, name) < 0)

00043 return -1;

00044

00045 if (naslparse (ctx))

00046 {

00047 fprintf (stderr, "\nParse error at or near line %d\n", ctx->line_nb);

00048 nasl_clean_ctx (ctx);

00049 return -1;

00050 }

00051

00052 return 0;

00053 }



Followup

Message
Date: 2012-02-23 20:02
Sender: Jan-Oliver Wagner

I do not understand the problem.
Searching for it I find (current trunk code):

openvas-libraries$ grep naslparse */*c
nasl/exec.c:extern int naslparse (naslctxt *);
nasl/nasl_grammar.tab.c:#define yyparse naslparse
nasl/nasl_grammar.tab.c: if (! naslparse(&subctx))
nasl/nasl_grammar.tab.c: return naslparse((void*) &ctx);
nasl/preparse.c:extern int naslparse (naslctxt *);
nasl/preparse.c: if (naslparse (ctx))

What is you actual problem?
Does compilation fail?
Date: 2010-09-28 01:47
Sender: wangzhiwen wang

Dear all:
please help me,naslparse (ctx) is how to define .
now i need result whith the problem .

very thanks
best wishes

wangzhiwen
Date: 2010-09-28 01:30
Sender: wangzhiwen wang

Dear all:
please help me,naslparse (ctx) is how to define .
now i need result whith the problem .

very thanks
best wishes

wangzhiwen

Attached Files:

Changes:

No Changes Have Been Made to This Item


This site is hosted by Intevation GmbH
(Datenschutzerklärung und Impressum | Privacy Policy and Imprint)