diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-05-23 22:35:10 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-05-23 22:35:10 +0200 |
commit | 050c29036e59a340f27de7bb80ce7dd2aacb212e (patch) | |
tree | e577876cf6f9573883aea47a0dd2341408cdcec0 /src/loadsave.c | |
parent | b8b81ea1af5ca68e15a180cabf71df7e49197e02 (diff) |
Save stuff
Diffstat (limited to 'src/loadsave.c')
-rw-r--r-- | src/loadsave.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/loadsave.c b/src/loadsave.c index 86202ee..8ee089a 100644 --- a/src/loadsave.c +++ b/src/loadsave.c @@ -623,6 +623,13 @@ void serialize_b(struct serializer *ser, const char *key, int val) } +void serialize_i(struct serializer *ser, const char *key, int val) +{ + check_prefix_output(ser); + fprintf(ser->fh, "%s = %i\n", key, val); +} + + void serialize_end(struct serializer *ser) { free(ser->stack[--ser->stack_depth]); |