Skip to content

Commit

Permalink
Fixes as suggested by mytchel
Browse files Browse the repository at this point in the history
1. A critical bug in toml_parse_file when the file is empty
2. Add toml_cat.c to makefile
3. Other misc fixes related to error handling
  • Loading branch information
cktan committed Aug 7, 2017
1 parent e6a6db8 commit a0b4522
Show file tree
Hide file tree
Showing 3 changed files with 213 additions and 98 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CFLAGS = -std=c99 -Wall -Wextra
CFLAGS += -O2 -DNDEBUG
#CFLAGS += -O0 -g

EXEC = toml_json
EXEC = toml_json toml_cat

LIB = libtoml.a

Expand All @@ -17,6 +17,8 @@ libtoml.a: toml.o

toml_json: toml_json.c $(LIB)

toml_cat: toml_cat.c $(LIB)

prefix ?= /usr/local

install: all
Expand Down
Loading

0 comments on commit a0b4522

Please sign in to comment.