core: reader: Prepare for M2-Planet.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 12 Aug 2018 12:53:06 +0000 (14:53 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 12 Aug 2018 12:53:06 +0000 (14:53 +0200)
commit03ee240904b77c976f4425bb15179b06f73c60f0
treefe16de2c6194cab21984a632d428ca46f939802a
parent43f0c2d831d5a7ae67f2378990096de99d5847b4
core: reader: Prepare for M2-Planet.

* src/reader.c (MAX_STRING): New define.
(read_input_file_env_): Remove dead code.
(reader_read_line_comment): Refactor to remove recursion.
(reader_read_line_sexp_): Refactor to use if instead of switch.
(reader_read_hash): Likewise.
(reader_read_character): Refactor: cache peekchar () value, make
M2-Planet friendly.
(reader_read_binary): Make M2-Planet friendly.
(reader_read_octal): Likewise.
(reader_read_hex): Likewise.
(reader_read_string): Refactor.
(dump): Make M2-Planet friendly.
src/reader.c