-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify lexer and parser API using fmemopen()
This patch is a refactor of the parser interface to the lexical analyzer. Prior to this patch the lexer had two entry points, one for file based access and one for buffer based access. The lexer is better suited for file operations and by using the fmemopen() API (POSIX 2008) buffers can be accessed in the same manner as a file. The resulting code is less complex and is further simplified and fixed (for leaks) in the following commit(s). Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
- Loading branch information
Showing
3 changed files
with
25 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters