diff options
| author | David Bremner <david@tethera.net> | 2017-06-04 09:32:24 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-08-01 21:17:47 -0400 |
| commit | 4034a7cec75b785c9f935186a4daad7c325df56c (patch) | |
| tree | af829cc8130451562a691f3de22dbb26e4cc33fc /lib/Makefile.local | |
| parent | 4a101ec7aabef163ffbdafe1b0a732bb23b3b0bc (diff) | |
lib: isolate n_d_add_message and helper functions into own file
'database.cc' is becoming a monster, and it's hard to follow what the
various static functions are used for. It turns out that about 1/3 of
this file notmuch_database_add_message and helper functions not used
by any other function. This commit isolates this code into it's own
file.
Some side effects of this refactoring:
- find_doc_ids becomes the non-static (but still private)
_notmuch_database_find_doc_ids
- a few instances of 'string' have 'std::' prepended, avoiding the
need for 'using namespace std;' in the new file.
Diffstat (limited to 'lib/Makefile.local')
| -rw-r--r-- | lib/Makefile.local | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Makefile.local b/lib/Makefile.local index bf6e0649..9dd68286 100644 --- a/lib/Makefile.local +++ b/lib/Makefile.local @@ -50,6 +50,7 @@ libnotmuch_cxx_srcs = \ $(dir)/directory.cc \ $(dir)/index.cc \ $(dir)/message.cc \ + $(dir)/add-message.cc \ $(dir)/message-property.cc \ $(dir)/query.cc \ $(dir)/query-fp.cc \ |
