mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 00:25:29 +00:00
lint; use text regions
This commit is contained in:
@@ -273,7 +273,7 @@ typedef enum {
|
|||||||
lexstate_ccomment,
|
lexstate_ccomment,
|
||||||
lexstate_ccommentend,
|
lexstate_ccommentend,
|
||||||
lexstate_eatline,
|
lexstate_eatline,
|
||||||
lexstate_qstring,
|
lexstate_qstring
|
||||||
} lexstate;
|
} lexstate;
|
||||||
|
|
||||||
isc_result_t
|
isc_result_t
|
||||||
@@ -433,9 +433,9 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
|
|||||||
tokenp->type =
|
tokenp->type =
|
||||||
isc_tokentype_number;
|
isc_tokentype_number;
|
||||||
/* XXX convert to number */
|
/* XXX convert to number */
|
||||||
tokenp->value.as_region.base =
|
tokenp->value.as_textregion.base =
|
||||||
lex->data;
|
lex->data;
|
||||||
tokenp->value.as_region.length =
|
tokenp->value.as_textregion.length =
|
||||||
lex->max_token - remaining;
|
lex->max_token - remaining;
|
||||||
done = ISC_TRUE;
|
done = ISC_TRUE;
|
||||||
continue;
|
continue;
|
||||||
@@ -454,8 +454,8 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
|
|||||||
INSIST(source->char_count < 2);
|
INSIST(source->char_count < 2);
|
||||||
source->chars[source->char_count++] = c;
|
source->chars[source->char_count++] = c;
|
||||||
tokenp->type = isc_tokentype_string;
|
tokenp->type = isc_tokentype_string;
|
||||||
tokenp->value.as_region.base = lex->data;
|
tokenp->value.as_textregion.base = lex->data;
|
||||||
tokenp->value.as_region.length =
|
tokenp->value.as_textregion.length =
|
||||||
lex->max_token - remaining;
|
lex->max_token - remaining;
|
||||||
done = ISC_TRUE;
|
done = ISC_TRUE;
|
||||||
continue;
|
continue;
|
||||||
@@ -527,9 +527,9 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
|
|||||||
*prev = '"';
|
*prev = '"';
|
||||||
} else {
|
} else {
|
||||||
tokenp->type = isc_tokentype_qstring;
|
tokenp->type = isc_tokentype_qstring;
|
||||||
tokenp->value.as_region.base =
|
tokenp->value.as_textregion.base =
|
||||||
lex->data;
|
lex->data;
|
||||||
tokenp->value.as_region.length =
|
tokenp->value.as_textregion.length =
|
||||||
lex->max_token - remaining;
|
lex->max_token - remaining;
|
||||||
no_comments = ISC_FALSE;
|
no_comments = ISC_FALSE;
|
||||||
done = ISC_TRUE;
|
done = ISC_TRUE;
|
||||||
|
Reference in New Issue
Block a user