diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-15 21:44:19 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-15 21:44:19 +0100 |
commit | 00a0e19a6f59b725ef9ef463e96b89ec36b388a0 (patch) | |
tree | 0d0c5a3c1fbf3de86df52a696efe81c10d9d0fe6 /parse.h | |
parent | Add ERR_P macro. (diff) | |
download | calp-00a0e19a6f59b725ef9ef463e96b89ec36b388a0.tar.gz calp-00a0e19a6f59b725ef9ef463e96b89ec36b388a0.tar.xz |
Add character escaping.
Diffstat (limited to '')
-rw-r--r-- | parse.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; |