mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
turn on ISC_LEXOPT_ESCAPE
This commit is contained in:
@@ -109,7 +109,7 @@ main(int argc, char *argv[]) {
|
|||||||
specials[')'] = 1;
|
specials[')'] = 1;
|
||||||
specials['"'] = 1;
|
specials['"'] = 1;
|
||||||
isc_lex_setspecials(lex, specials);
|
isc_lex_setspecials(lex, specials);
|
||||||
options = ISC_LEXOPT_DNSMULTILINE |
|
options = ISC_LEXOPT_DNSMULTILINE | ISC_LEXOPT_ESCAPE |
|
||||||
ISC_LEXOPT_EOF |
|
ISC_LEXOPT_EOF |
|
||||||
ISC_LEXOPT_QSTRING | ISC_LEXOPT_NOMORE;
|
ISC_LEXOPT_QSTRING | ISC_LEXOPT_NOMORE;
|
||||||
isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE);
|
isc_lex_setcomments(lex, ISC_LEXCOMMENT_DNSMASTERFILE);
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* 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>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -105,7 +105,8 @@ gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *token,
|
|||||||
{
|
{
|
||||||
isc_result_t result;
|
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);
|
result = isc_lex_gettoken(lex, options, token);
|
||||||
if (result != ISC_R_SUCCESS) {
|
if (result != ISC_R_SUCCESS) {
|
||||||
switch (result) {
|
switch (result) {
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* SOFTWARE.
|
* 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>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@ gettoken(isc_lex_t *lexer, isc_token_t *token, isc_tokentype_t expect,
|
|||||||
isc_boolean_t eol)
|
isc_boolean_t eol)
|
||||||
{
|
{
|
||||||
unsigned int options = ISC_LEXOPT_EOL | ISC_LEXOPT_EOF |
|
unsigned int options = ISC_LEXOPT_EOL | ISC_LEXOPT_EOF |
|
||||||
ISC_LEXOPT_DNSMULTILINE;
|
ISC_LEXOPT_DNSMULTILINE | ISC_LEXOPT_ESCAPE;
|
||||||
isc_result_t result;
|
isc_result_t result;
|
||||||
|
|
||||||
if (expect == isc_tokentype_qstring)
|
if (expect == isc_tokentype_qstring)
|
||||||
|
Reference in New Issue
Block a user