diff options
author | Carl Worth <cworth@cworth.org> | 2009-10-19 16:38:44 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-10-19 16:38:44 -0700 |
commit | 371091139abb00e0eb6b17cd19311e2a30fd7470 (patch) | |
tree | 8e7c33e71057657100061ec18eab0701ff891fe2 /notmuch-private.h | |
parent | 45f0d7bcab72ff6b8375804d3e518f961bd9a96f (diff) |
Rework message parsing to use getline rather than mmap.
The line-based parsing can be a bit awkward when wanting to peek
ahead, (say, for folded header values), but it's so convenient
to be able to trust that a string terminator exists on every
line so it cleans up the code considerably.
Diffstat (limited to 'notmuch-private.h')
-rw-r--r-- | notmuch-private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/notmuch-private.h b/notmuch-private.h index b7d27e9..449aff7 100644 --- a/notmuch-private.h +++ b/notmuch-private.h @@ -23,6 +23,8 @@ #include "notmuch.h" +#define _GNU_SOURCE /* For getline */ + #include <stdio.h> #include <stdlib.h> #include <stdarg.h> |