Changeset 3869:eb33a92c7ab9
- Timestamp:
- 2005-01-30 18:40:14 (4 years ago)
- Branch:
- HEAD
- Files:
-
- 1 added
- 1 removed
- 5 modified
-
acconfig.h (deleted)
-
configure.in (modified) (5 diffs)
-
hcache.c (modified) (6 diffs)
-
imap/imap_private.h (modified) (1 diff)
-
imap/message.c (modified) (2 diffs)
-
m4/types.m4 (added)
-
protos.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
configure.in
r3858 r3869 4 4 dnl !!! TO DUMP THEIR RESULTS WHEN MUTT -V IS CALLED !!! 5 5 6 AC_PREREQ( 2.12)7 AC_INIT( mutt.h)8 AM_CONFIG_HEADER( config.h)6 AC_PREREQ([2.54]) 7 AC_INIT([mutt.h]) 8 AM_CONFIG_HEADER([config.h]) 9 9 10 10 mutt_cv_version=`cat $srcdir/VERSION` 11 12 11 13 12 AM_INIT_AUTOMAKE(mutt, $mutt_cv_version) 14 13 AC_GNU_SOURCE 15 14 16 ifdef([AC_LIBOBJ], , [define([AC_LIBOBJ], [LIB[]OBJS="$LIBOBJS $1.o"])])17 18 15 ALL_LINGUAS="de ru it es uk fr pl nl cs id sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca bg" 19 16 20 17 AC_CANONICAL_HOST 21 18 22 AC_MSG_CHECKING( for prefix)19 AC_MSG_CHECKING([for prefix]) 23 20 if test x$prefix = xNONE; then 24 mutt_cv_prefix=$ac_default_prefix21 mutt_cv_prefix=$ac_default_prefix 25 22 else 26 mutt_cv_prefix=$prefix23 mutt_cv_prefix=$prefix 27 24 fi 28 25 AC_MSG_RESULT($mutt_cv_prefix) … … 59 56 fi 60 57 61 AC_SUBST(DEBUGGER) 62 63 # The following templates should be used with newer automakes 64 # instead of acconfig.h 65 # 66 #AH_TEMPLATE([sig_atomic_t], 67 # [/* Define to `int' if <signal.h> doesn't define.]) 68 #AH_TEMPLATE([HAVE_START_COLOR], 69 # [Define if you have start_color, as a function or macro.]) 70 #AH_TEMPLATE([HAVE_TYPEAHEAD], 71 # [Define if you have typeahead, as a function or macro.]) 72 #AH_TEMPLATE([HAVE_BKGDSET], 73 # [Define if you have bkgdset, as a function or macro.]) 74 #AH_TEMPLATE([HAVE_CURS_SET], 75 # [Define if you have curs_set, as a function or macro.]) 76 #AH_TEMPLATE([HAVE_META], 77 # [Define if you have meta, as a function or macro.]) 78 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS], 79 # [Define if you have use_default_colors, as a function or macro.]) 80 #AH_TEMPLATE([HAVE_RESIZETERM], 81 # [Define if you have resizeterm, as a function or macro.]) 82 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T], 83 # [Some systems declare sig_atomic_t as volatile, some others -- no. 84 # This define will have value `sig_atomic_t' or 85 # `volatile sig_atomic_t' accordingly.]) 86 #AH_TEMPLATE([ICONV_NONTRANS], 87 # [Define as 1 if iconv() only converts exactly and we should treat 88 # all return values other than (size_t)(-1) as equivalent.]) 89 58 AC_SUBST([DEBUGGER]) 59 60 AH_TEMPLATE([sig_atomic_t], 61 [/* Define to `int' if <signal.h> doesn't define.]) 62 AH_TEMPLATE([HAVE_START_COLOR], 63 [Define if you have start_color, as a function or macro.]) 64 AH_TEMPLATE([HAVE_TYPEAHEAD], 65 [Define if you have typeahead, as a function or macro.]) 66 AH_TEMPLATE([HAVE_BKGDSET], 67 [Define if you have bkgdset, as a function or macro.]) 68 AH_TEMPLATE([HAVE_CURS_SET], 69 [Define if you have curs_set, as a function or macro.]) 70 AH_TEMPLATE([HAVE_META], 71 [Define if you have meta, as a function or macro.]) 72 AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS], 73 [Define if you have use_default_colors, as a function or macro.]) 74 AH_TEMPLATE([HAVE_RESIZETERM], 75 [Define if you have resizeterm, as a function or macro.]) 76 AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T], 77 [Some systems declare sig_atomic_t as volatile, some others -- no. 78 This define will have value `sig_atomic_t' or 79 `volatile sig_atomic_t' accordingly.]) 80 AH_TEMPLATE([ICONV_NONTRANS], 81 [Define as 1 if iconv() only converts exactly and we should treat 82 all return values other than (size_t)(-1) as equivalent.]) 83 84 MUTT_C99_INTTYPES 90 85 91 86 ac_aux_path_sendmail=/usr/sbin:/usr/lib … … 167 162 # We now require all OPS 168 163 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT " 169 AC_SUBST( OPS)164 AC_SUBST([OPS]) 170 165 171 166 … … 174 169 175 170 AC_DEFINE_UNQUOTED(SUBVERSION,"$SUBVERSION",[ Is this the international version? ]) 176 AC_SUBST( SUBVERSION)171 AC_SUBST([SUBVERSION]) 177 172 178 173 AC_PATH_PROG(ISPELL, ispell, no) … … 327 322 328 323 AC_DECL_SYS_SIGLIST 329 330 dnl For MD5 and SHA1 on 64-bit systems331 AC_C_BIGENDIAN332 AC_CHECK_HEADERS(inttypes.h stdint.h)333 dnl This is the method autoconf-2.50's new AC_CHECK_TYPE macro uses.334 dnl We need to be backwards compatible to autoconf 2.13, though. -lh335 AC_MSG_CHECKING(for uint32_t)336 AC_TRY_COMPILE([337 #include <sys/types.h>338 #if HAVE_INTTYPES_H339 #include <inttypes.h>340 #else341 #if HAVE_STDINT_H342 #include <stdint.h>343 #endif344 #endif],345 [if ((uint32_t *) 0)346 return 0;347 if (sizeof (uint32_t))348 return 0;349 ],[350 AC_DEFINE(HAVE_UINT32_T,1,[ Define if you have the uint32_t type. ])351 AC_MSG_RESULT(yes)352 ], AC_MSG_RESULT(no)353 )354 AC_CHECK_SIZEOF(int)355 AC_CHECK_SIZEOF(long)356 324 357 325 AC_TYPE_PID_T -
hcache.c
r3867 r3869 61 61 { 62 62 struct timeval timeval; 63 u nsigned long longuid_validity;63 uint64_t uid_validity; 64 64 } validate; 65 65 … … 278 278 restore_int(&offset, d, off); 279 279 (*b)->dptr = (*b)->data + offset; 280 restore_int( &(*b)->dsize, d, off);280 restore_int((unsigned int *) &(*b)->dsize, d, off); 281 281 restore_int((unsigned int *) &(*b)->destroy, d, off); 282 282 } … … 548 548 static void * 549 549 mutt_hcache_dump(void *_db, HEADER * h, int *off, 550 u nsigned long longuid_validity)550 uint64_t uid_validity) 551 551 { 552 552 struct header_cache *db = _db; … … 557 557 558 558 if (uid_validity) 559 memcpy(d, &uid_validity, sizeof ( long long));559 memcpy(d, &uid_validity, sizeof (uint64_t)); 560 560 else 561 561 { … … 694 694 int 695 695 mutt_hcache_store(void *db, const char *filename, HEADER * header, 696 u nsigned long longuid_validity,696 uint64_t uid_validity, 697 697 size_t(*keylen) (const char *fn)) 698 698 { … … 884 884 int 885 885 mutt_hcache_store(void *db, const char *filename, HEADER * header, 886 u nsigned long longuid_validity,886 uint64_t uid_validity, 887 887 size_t(*keylen) (const char *fn)) 888 888 { -
imap/imap_private.h
r3810 r3869 181 181 unsigned int noclose : 1; 182 182 #ifdef USE_HCACHE 183 u nsigned long longuid_validity;183 uint64_t uid_validity; 184 184 #endif 185 185 -
imap/message.c
r3810 r3869 66 66 #if USE_HCACHE 67 67 void *hc = NULL; 68 u nsigned long long*uid_validity = NULL;68 uint64_t *uid_validity = NULL; 69 69 char uid_buf[64]; 70 70 #endif /* USE_HCACHE */ … … 151 151 152 152 sprintf(uid_buf, "/%u", h.data->uid); /* XXX --tg 21:41 04-07-11 */ 153 uid_validity = (u nsigned long long*) mutt_hcache_fetch (hc, uid_buf, &imap_hcache_keylen);153 uid_validity = (uint64_t *) mutt_hcache_fetch (hc, uid_buf, &imap_hcache_keylen); 154 154 155 155 if (uid_validity != NULL -
protos.h
r3810 r3869 18 18 19 19 20 #ifdef HAVE_CONFIG_H 21 # include "config.h" 22 #endif 23 24 #ifdef HAVE_INTTYPES_H 25 # include <inttypes.h> 26 #endif 27 20 28 #include "mbyte.h" 21 29 … … 108 116 HEADER *mutt_hcache_restore(const unsigned char *d, HEADER **oh); 109 117 void *mutt_hcache_fetch(void *db, const char *filename, size_t (*keylen)(const char *fn)); 110 int mutt_hcache_store(void *db, const char *filename, HEADER *h, u nsigned long longuid_validity, size_t (*keylen)(const char *fn));118 int mutt_hcache_store(void *db, const char *filename, HEADER *h, uint64_t uid_validity, size_t (*keylen)(const char *fn)); 111 119 int mutt_hcache_delete(void *db, const char *filename, size_t (*keylen)(const char *fn)); 112 120 #endif /* USE_HCACHE */
