2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

turn on ISC_LEXOPT_ESCAPE

This commit is contained in:
Andreas Gustafsson
1999-06-09 11:56:45 +00:00
parent 1feace57f7
commit c1bfdd2995
3 changed files with 6 additions and 5 deletions

View File

@@ -109,7 +109,7 @@ main(int argc, char *argv[]) {
specials[')'] = 1;
specials['"'] = 1;
isc_lex_setspecials(lex, specials);
options = ISC_LEXOPT_DNSMULTILINE |
options = ISC_LEXOPT_DNSMULTILINE | ISC_LEXOPT_ESCAPE |
ISC_LEXOPT_EOF |
ISC_LEXOPT_QSTRING | ISC_LEXOPT_NOMORE;
isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE);

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: master.c,v 1.18 1999/06/08 10:35:04 gson Exp $ */
/* $Id: master.c,v 1.19 1999/06/09 11:56:00 gson Exp $ */
#include <config.h>
@@ -105,7 +105,8 @@ gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *token,
{
isc_result_t result;
options |= ISC_LEXOPT_EOL | ISC_LEXOPT_EOF | ISC_LEXOPT_DNSMULTILINE;
options |= ISC_LEXOPT_EOL | ISC_LEXOPT_EOF | ISC_LEXOPT_DNSMULTILINE |
ISC_LEXOPT_ESCAPE;
result = isc_lex_gettoken(lex, options, token);
if (result != ISC_R_SUCCESS) {
switch (result) {

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: base64.c,v 1.3 1999/06/08 10:35:23 gson Exp $ */
/* $Id: base64.c,v 1.4 1999/06/09 11:56:45 gson Exp $ */
#include <config.h>
@@ -194,7 +194,7 @@ gettoken(isc_lex_t *lexer, isc_token_t *token, isc_tokentype_t expect,
isc_boolean_t eol)
{
unsigned int options = ISC_LEXOPT_EOL | ISC_LEXOPT_EOF |
ISC_LEXOPT_DNSMULTILINE;
ISC_LEXOPT_DNSMULTILINE | ISC_LEXOPT_ESCAPE;
isc_result_t result;
if (expect == isc_tokentype_qstring)