Skip to content

Commit

Permalink
[mpd] Add Bison/Flex parser for complex mpd commands + misc
Browse files Browse the repository at this point in the history
Some of the misc:
* Initialize query_params from the start of each function
* Reduce code duplication by consolidating the handler's integer conversion
* Go back to classic int return types for handlers
* Change list grouping to respond like mpd
* Sanitize all user string output
  • Loading branch information
ejurgensen committed Sep 16, 2024
1 parent 1ccdc7a commit f37ca52
Show file tree
Hide file tree
Showing 4 changed files with 2,102 additions and 1,829 deletions.
4 changes: 2 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ GPERF_FILES = \

GPERF_SRC = $(GPERF_FILES:.gperf=_hash.h)

LEXER_SRC = parsers/daap_lexer.l parsers/smartpl_lexer.l parsers/rsp_lexer.l
PARSER_SRC = parsers/daap_parser.y parsers/smartpl_parser.y parsers/rsp_parser.y
LEXER_SRC = parsers/daap_lexer.l parsers/smartpl_lexer.l parsers/rsp_lexer.l parsers/mpd_lexer.l
PARSER_SRC = parsers/daap_parser.y parsers/smartpl_parser.y parsers/rsp_parser.y parsers/mpd_parser.y

# This flag is given to Bison and tells it to produce headers. Note that
# automake recognizes this flag too, and has special logic around it, so don't
Expand Down
Loading

0 comments on commit f37ca52

Please sign in to comment.