Welcome! Log In Create A New Profile

Advanced

[PATCH] Remove duplicate implementation of njs_parser_token()

Piotr Sikora
October 17, 2016 03:32AM
# HG changeset patch
# User Piotr Sikora <piotrsikora@google.com>
# Date 1476689340 25200
# Mon Oct 17 00:29:00 2016 -0700
# Node ID 11abc80a5a442b56ee0618834b88510369a765d6
# Parent 8046b999aaaf95980e89a6d0620657bc4123342b
Remove duplicate implementation of njs_parser_token().

Signed-off-by: Piotr Sikora <piotrsikora@google.com>

diff -r 8046b999aaaf -r 11abc80a5a44 njs/njs_nonrecursive_parser.c
--- a/njs/njs_nonrecursive_parser.c
+++ b/njs/njs_nonrecursive_parser.c
@@ -116,24 +116,6 @@ njs_nonrecursive_parser(njs_vm_t *vm, nj
}


-njs_token_t
-njs_parser_token(njs_parser_t *parser)
-{
- njs_token_t token;
-
- do {
- token = njs_lexer_token(parser->lexer);
-
- if (nxt_slow_path(token <= NJS_TOKEN_ILLEGAL)) {
- return token;
- }
-
- } while (nxt_slow_path(token == NJS_TOKEN_LINE_END));
-
- return token;
-}
-
-
static void *
njs_parser_stack_pop(njs_parser_t *parser)
{

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Remove duplicate implementation of njs_parser_token()

Piotr Sikora 559 October 17, 2016 03:32AM

Re: [PATCH] Remove duplicate implementation of njs_parser_token()

karton 366 October 17, 2016 04:26AM

Re: [PATCH] Remove duplicate implementation of njs_parser_token()

Piotr Sikora 338 October 17, 2016 04:36AM

Re: [PATCH] Remove duplicate implementation of njs_parser_token()

Igor Sysoev 643 October 17, 2016 05:32AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 208
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready