iMake verbose variable available to all translation units - dedup - deduplicating backup program Err bitreich.org 70 hgit clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ URL:git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ bitreich.org 70 1Log /scm/dedup/log.gph bitreich.org 70 1Files /scm/dedup/files.gph bitreich.org 70 1Refs /scm/dedup/refs.gph bitreich.org 70 1Tags /scm/dedup/tag bitreich.org 70 1README /scm/dedup/file/README.gph bitreich.org 70 1LICENSE /scm/dedup/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 617a4c0156ded44bc631696a4caa59ba3f706cce /scm/dedup/commit/617a4c0156ded44bc631696a4caa59ba3f706cce.gph bitreich.org 70 1parent 20a85fa453b901904957822d2ab31165209852b4 /scm/dedup/commit/20a85fa453b901904957822d2ab31165209852b4.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Wed, 27 Feb 2019 15:01:08 +0000 Err bitreich.org 70 i Err bitreich.org 70 iMake verbose variable available to all translation units Err bitreich.org 70 i Err bitreich.org 70 iOther units may want to print verbose information when verbose is non Err bitreich.org 70 izero. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M dedup.c | 3 ++- Err bitreich.org 70 i M dedup.h | 3 +++ Err bitreich.org 70 i Err bitreich.org 70 i2 files changed, 5 insertions(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/dedup.c b/dedup.c /scm/dedup/file/dedup.c.gph bitreich.org 70 i@@ -36,10 +36,11 @@ static struct cache *cache; Err bitreich.org 70 i static int ifd; Err bitreich.org 70 i static int sfd; Err bitreich.org 70 i static int cfd; Err bitreich.org 70 i-static int verbose; Err bitreich.org 70 i static int cache_dirty; Err bitreich.org 70 i static unsigned long long cache_hits; Err bitreich.org 70 i static unsigned long long cache_misses; Err bitreich.org 70 i+ Err bitreich.org 70 i+int verbose; Err bitreich.org 70 i char *argv0; Err bitreich.org 70 i Err bitreich.org 70 i static size_t Err bitreich.org 70 1diff --git a/dedup.h b/dedup.h /scm/dedup/file/dedup.h.gph bitreich.org 70 i@@ -59,6 +59,9 @@ struct cache_entry { Err bitreich.org 70 i uint64_t size; Err bitreich.org 70 i }; Err bitreich.org 70 i Err bitreich.org 70 i+/* dedup.c */ Err bitreich.org 70 i+extern int verbose; Err bitreich.org 70 i+ Err bitreich.org 70 i /* cache.c */ Err bitreich.org 70 i struct cache *alloc_cache(void); Err bitreich.org 70 i void free_cache(struct cache *cache); Err bitreich.org 70 .