From 00a0e19a6f59b725ef9ef463e96b89ec36b388a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 15 Feb 2019 21:44:19 +0100 Subject: Add character escaping. --- parse.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'parse.h') diff --git a/parse.h b/parse.h index fae7485f..ae48a351 100644 --- a/parse.h +++ b/parse.h @@ -19,7 +19,7 @@ #define SEGSIZE 75 typedef enum { - p_key, p_value, p_param_name, p_param_value + p_key, p_value, p_param_name, p_param_value, p_escape } part_context; /* @@ -31,8 +31,14 @@ typedef struct { LLIST(strbuf) key_stack; LLIST(vcomponent) comp_stack; + /* Number for unfolded lines */ int line; int column; + + /* Actuall lines and columns from file */ + int pline; + int pcolumn; + strbuf str; } parse_ctx; -- cgit v1.2.3