shada: Skip reading some items if needed

Avoids unneeded malloc()s/free()s and lots of code for parsing.
This commit is contained in:
ZyX
2015-04-29 23:40:20 +03:00
parent 46387b9aac
commit 94ed7ba03b
2 changed files with 146 additions and 81 deletions

View File

@@ -9,6 +9,7 @@ enum {
kShaDaWantMarks = 2, ///< Load file marks
kShaDaForceit = 4, ///< Overwrite info already read
kShaDaGetOldfiles = 8, ///< Load v:oldfiles.
kShaDaWantHeader = 16, ///< Do not skip header (shada_read_next_item).
};
#ifdef INCLUDE_GENERATED_DECLARATIONS