aboutsummaryrefslogtreecommitdiff
path: root/booki.c
diff options
context:
space:
mode:
Diffstat (limited to 'booki.c')
-rw-r--r--booki.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/booki.c b/booki.c
index 770ea00..606471b 100644
--- a/booki.c
+++ b/booki.c
@@ -482,9 +482,6 @@ const char* get_last_word(const char* str) {
}
long parse_int(char* current_pos, char** new_pos) {
- char c;
- char* value;
-
// strtol can handle leading spaces
// will put the first non-digit into endptr
char* endptr;
@@ -515,8 +512,6 @@ long parse_int(char* current_pos, char** new_pos) {
struct es parse_string(char* current_pos, char** new_pos) {
// TODO handle failure
-
- char c;
char* value;
// leading spaces
@@ -570,7 +565,7 @@ struct es parse_strings(char* current_pos, char** new_pos) {
*new_pos = current_pos;
return head;
} else {
- printf("error at %x\n", current_pos);
+ printf("error! +/- 10 context:\n---\n%.21s\n---\n", current_pos - 10);
SEEK_UNTIL(current_pos, '\n');
*new_pos = current_pos;
return default_es;