]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ddb(4): Enhance lexer functionality for specialized commands
authorcem <cem@FreeBSD.org>
Mon, 9 Sep 2019 16:31:14 +0000 (16:31 +0000)
committercem <cem@FreeBSD.org>
Mon, 9 Sep 2019 16:31:14 +0000 (16:31 +0000)
commit718e6295e7fa20c0aaee209a62e0df229269ad73
treea82ed120440a42d0bad0ff3482c6466a93d4892e
parent2fce6d83eab62dbdbe8465f7f471bc0c3c3b2627
ddb(4): Enhance lexer functionality for specialized commands

Add a db_read_token_flags() variant of db_read_token() with configurable
parameters.

Allow specifying an explicit radix for tNUMBER lexing.  It overrides the
default inference and db_radix setting.

Also provide the option of yielding any lexed whitespace (tWSPACE) (instead
of ignoring it).  This is useful for whitespace-sensitive CS_OWN commands.

Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D21459
sys/ddb/db_lex.c
sys/ddb/db_lex.h