Commit 709f92bb authored by James Brister's avatar James Brister
Browse files

Use new lexer/parser. ifdef'd out still.

parent 99094c30
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include "parser.h" #include "confparser.h"
#include "udpclient.h" #include "udpclient.h"
#include "tcpclient.h" #include "tcpclient.h"
...@@ -169,7 +169,8 @@ main(int argc, char *argv[]) ...@@ -169,7 +169,8 @@ main(int argc, char *argv[])
char basetext[1000]; char basetext[1000];
dns_rdatatype_t type = 2; dns_rdatatype_t type = 2;
dns_result_t result; dns_result_t result;
#if 0
#if 0 /* brister */
isc_cfgctx_t *configctx = NULL; isc_cfgctx_t *configctx = NULL;
const char *conffile = "/etc/named.conf"; /* XXX hardwired */ const char *conffile = "/etc/named.conf"; /* XXX hardwired */
#endif #endif
...@@ -209,9 +210,10 @@ main(int argc, char *argv[]) ...@@ -209,9 +210,10 @@ main(int argc, char *argv[])
RUNTIME_CHECK(isc_mem_create(0, 0, &mctx) == ISC_R_SUCCESS); RUNTIME_CHECK(isc_mem_create(0, 0, &mctx) == ISC_R_SUCCESS);
#if 0 #if 0 /* brister */
isc_parser_init(); parser_init();
isc_parse_configuration(conffile, mctx, &configctx); RUNTIME_CHECK(parse_configuration(conffile, mctx, &configctx) ==
ISC_R_SUCCESS);
#endif #endif
/*+ XXX */ /*+ XXX */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment