summaryrefslogtreecommitdiff
path: root/usr.bin/dig/lib/isc/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/dig/lib/isc/lex.c')
-rw-r--r--usr.bin/dig/lib/isc/lex.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/usr.bin/dig/lib/isc/lex.c b/usr.bin/dig/lib/isc/lex.c
index d9d3baa6bc3..c3ede6243e8 100644
--- a/usr.bin/dig/lib/isc/lex.c
+++ b/usr.bin/dig/lib/isc/lex.c
@@ -14,12 +14,10 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lex.c,v 1.7 2020/02/23 23:40:22 jsg Exp $ */
+/* $Id: lex.c,v 1.8 2020/02/25 05:00:43 jsg Exp $ */
/*! \file */
-
-
#include <ctype.h>
#include <stdlib.h>
@@ -141,7 +139,6 @@ isc_lex_setcomments(isc_lex_t *lex, unsigned int comments) {
* Set allowed lexer commenting styles.
*/
-
lex->comments = comments;
}
@@ -152,7 +149,6 @@ isc_lex_setspecials(isc_lex_t *lex, isc_lexspecials_t specials) {
* whitespace, they delimit strings and numbers.
*/
-
memmove(lex->specials, specials, 256);
}
@@ -201,7 +197,6 @@ isc_lex_openfile(isc_lex_t *lex, const char *filename) {
* Open 'filename' and make it the current input source for 'lex'.
*/
-
if ((stream = fopen(filename, "r")) == NULL)
return (isc__errno2result(errno));
@@ -219,7 +214,6 @@ isc_lex_close(isc_lex_t *lex) {
* Close the most recently opened object (i.e. file or buffer).
*/
-
source = HEAD(lex->sources);
if (source == NULL)
return (ISC_R_NOMORE);
@@ -761,7 +755,6 @@ isc_lex_getlasttokentext(isc_lex_t *lex, isc_token_t *tokenp, isc_region_t *r)
source->ignored;
}
-
char *
isc_lex_getsourcename(isc_lex_t *lex) {
inputsource *source;