changeset: 6367:0dc2dafab53a user: Brendan Cully <[email protected]> date: Sat Oct 11 10:58:38 2014 -0700 link: http://dev.mutt.org/hg/mutt/rev/0dc2dafab53a
ignore gnu global tags changeset: 6368:bb7f59864d47 user: Brendan Cully <[email protected]> date: Sat Oct 11 10:59:34 2014 -0700 link: http://dev.mutt.org/hg/mutt/rev/bb7f59864d47 ignore generated pgpewrap/pgpring man pages changeset: 6369:85393e522337 user: Brendan Cully <[email protected]> date: Sat Oct 11 11:05:21 2014 -0700 link: http://dev.mutt.org/hg/mutt/rev/85393e522337 add check-syntax target for flymake changeset: 6370:3a46874d5845 user: Brendan Cully <[email protected]> date: Sat Oct 11 13:20:54 2014 -0700 link: http://dev.mutt.org/hg/mutt/rev/3a46874d5845 hcache tcdb debug logging diffs (95 lines): diff -r 4a814b05874f -r 3a46874d5845 .hgignore --- a/.hgignore Sun Sep 07 12:00:28 2014 -0700 +++ b/.hgignore Sat Oct 11 13:20:54 2014 -0700 @@ -37,6 +37,8 @@ ^doc/manual\.(txt|xml|aux|log|out|tex|pdf)$ ^doc/mutt\.1$ ^doc/muttrc\.man$ +^doc/pgpewrap\.1$ +^doc/pgpring\.1$ ^doc/.*\.html$ ^doc/stamp- ^doc/smime_keys\.1$ @@ -53,6 +55,9 @@ syntax: glob .deps Makefile +GPATH +GRTAGS +GTAGS TAGS cscope.* *.swp diff -r 4a814b05874f -r 3a46874d5845 Makefile.am --- a/Makefile.am Sun Sep 07 12:00:28 2014 -0700 +++ b/Makefile.am Sat Oct 11 13:20:54 2014 -0700 @@ -1,5 +1,6 @@ ## Process this file with automake to produce Makefile.in ## Use aclocal -I m4; automake --foreign +include $(top_srcdir)/flymake.am AUTOMAKE_OPTIONS = 1.6 foreign EXTRA_PROGRAMS = mutt_dotlock pgpring pgpewrap mutt_md5 diff -r 4a814b05874f -r 3a46874d5845 doc/Makefile.am --- a/doc/Makefile.am Sun Sep 07 12:00:28 2014 -0700 +++ b/doc/Makefile.am Sat Oct 11 13:20:54 2014 -0700 @@ -1,3 +1,5 @@ +include $(top_srcdir)/flymake.am + subdir = doc DSLROOT = @DSLROOT@ diff -r 4a814b05874f -r 3a46874d5845 flymake.am --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flymake.am Sat Oct 11 13:20:54 2014 -0700 @@ -0,0 +1,12 @@ +get_cs_flags = $(foreach target,$(subst .,_,$(subst -,_,$($(2)))),$($(target)_$(1)FLAGS)) +get_cs_all_flags = $(foreach type,$(2),$(call get_cs_flags,$(1),$(type))) +get_cs_compile = $(if $(subst C,,$(1)),$($(1)COMPILE),$(COMPILE)) +get_cs_cmdline = $(call get_cs_compile,$(1)) $(call get_cs_all_flags,$(1),check_PROGRAMS bin_PROGRAMS lib_LTLIBRARIES) -fsyntax-only + +check-syntax: + s=$(suffix $(CHK_SOURCES));\ + if [ "$$s" = ".c" ]; then \ + $(call get_cs_cmdline,C) $(call get_cs_cmdline,CPP) $(CHK_SOURCES);\ + else exit 1; fi + +.PHONY: check-syntax diff -r 4a814b05874f -r 3a46874d5845 hcache.c --- a/hcache.c Sun Sep 07 12:00:28 2014 -0700 +++ b/hcache.c Sat Oct 11 13:20:54 2014 -0700 @@ -911,12 +911,15 @@ hcache_open_tc (struct header_cache* h, const char* path) { h->db = tcbdbnew(); + if (!h->db) + return -1; if (option(OPTHCACHECOMPRESS)) tcbdbtune(h->db, 0, 0, 0, -1, -1, BDBTDEFLATE); if (tcbdbopen(h->db, path, BDBOWRITER | BDBOCREAT)) return 0; else { + dprint(2, (debugfile, "tcbdbopen %s failed: %s\n", path, errno)); tcbdbdel(h->db); return -1; } @@ -928,7 +931,8 @@ if (!h) return; - tcbdbclose(h->db); + if (!tcbdbclose(h->db)) + dprint (2, (debugfile, "tcbdbclose failed for %s: %d\n", h->folder, errno)); tcbdbdel(h->db); FREE(&h->folder); FREE(&h); diff -r 4a814b05874f -r 3a46874d5845 imap/Makefile.am --- a/imap/Makefile.am Sun Sep 07 12:00:28 2014 -0700 +++ b/imap/Makefile.am Sat Oct 11 13:20:54 2014 -0700 @@ -1,4 +1,5 @@ ## Process this file with automake to produce Makefile.in +include $(top_srcdir)/flymake.am AR=@AR@
