summaryrefslogtreecommitdiff
path: root/src/colm.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2019-05-25 21:13:16 -0400
committerAdrian Thurston <thurston@colm.net>2019-05-25 21:13:16 -0400
commitf0926b394144cbf11bcdfe65892624b1f4e0cc72 (patch)
tree6f016104709671cec1d71206318fbdaf955bb461 /src/colm.h
parente52169ed10b0bf0011c2471e1fa7644971d0c7ac (diff)
downloadcolm-f0926b394144cbf11bcdfe65892624b1f4e0cc72.tar.gz
support _IN_ _EX_ indentation in string accumulators
Diffstat (limited to 'src/colm.h')
-rw-r--r--src/colm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/colm.h b/src/colm.h
index aac0ee2c..55368840 100644
--- a/src/colm.h
+++ b/src/colm.h
@@ -35,6 +35,13 @@ struct colm_sections;
struct colm_tree;
struct colm_location;
+struct indent_impl
+{
+ /* Indentation. */
+ int level;
+ int indent;
+};
+
extern struct colm_sections colm_object;
typedef unsigned long colm_value_t;
@@ -59,6 +66,7 @@ struct colm_print_args
int comm;
int attr;
int trim;
+ struct indent_impl *indent;
void (*out)( struct colm_print_args *args, const char *data, int length );
void (*open_tree)( struct colm_program *prg, struct colm_tree **sp,