aboutsummaryrefslogtreecommitdiff
path: root/parse.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-15 21:44:19 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-15 21:44:19 +0100
commit00a0e19a6f59b725ef9ef463e96b89ec36b388a0 (patch)
tree0d0c5a3c1fbf3de86df52a696efe81c10d9d0fe6 /parse.h
parentAdd ERR_P macro. (diff)
downloadcalp-00a0e19a6f59b725ef9ef463e96b89ec36b388a0.tar.gz
calp-00a0e19a6f59b725ef9ef463e96b89ec36b388a0.tar.xz
Add character escaping.
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h8
1 files changed, 7 insertions, 1 deletions
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;