log src/lib/macros.h @ 22664:fea53c2725c0

age author description
Thu, 17 Aug 2017 13:14:16 +0300 Timo Sirainen lib: Fix compiler warning about mixing boolean with multiplication
Fri, 07 Apr 2017 09:11:53 +0300 Timo Sirainen lib: Add a common HAVE_TYPE_CHECKS
Sun, 18 Dec 2016 13:20:20 +0100 Stephan Bosch lib: Created i_zero() wrapper for memset(p, 0, sizeof(*p)).
Mon, 05 Dec 2016 17:29:08 +0200 Phil Carmody lib/macros.h - protect old compilers from use of modern features
Sat, 19 Nov 2016 01:39:42 +0200 Timo Sirainen lib: Add ATTR_UNSIGNED_WRAPS for disabling clang -fsanitize=integer
Mon, 14 Nov 2016 14:54:37 +0100 Timo Sirainen lib: Assert-crash in i_close_fd() if fd == 0
Fri, 01 Jul 2016 01:11:02 +0300 Timo Sirainen configure: Check if C99 "static" keyword is supported for array sizes.
Tue, 10 May 2016 10:19:57 +0300 Martti Rannanjärvi [LEN] to [static LEN] on some function parameters
Wed, 03 Feb 2016 17:56:49 +0200 Timo Sirainen lib: Avoid typeof() if HAVE_TYPEOF isn't set, even if gcc version is high enough.
Fri, 11 Jul 2014 12:10:02 +0300 Timo Sirainen lib: Added fd=-1 assert to i_close_fd() macro.
Mon, 16 Jun 2014 18:01:58 +0300 Timo Sirainen lib: Use __attribute__((returns_nonnull)) for the common memory/string functions.
Mon, 09 Jun 2014 22:59:59 +0300 Phil Carmody lib: Fix MEM_ALIGN to cope with huge allocations
Wed, 04 Sep 2013 22:13:01 +0300 Timo Sirainen i_close_fd() didn't handle errors correctly with gcc.
Wed, 29 May 2013 03:18:04 +0300 Timo Sirainen Fixed compiling with gcc v3.3 and older.
Fri, 05 Apr 2013 00:13:16 +0300 Timo Sirainen Merged changes from v2.1 tree.
Sun, 30 Oct 2011 12:39:53 +0100 Dennis Schridde Add DOVECOT_PREREQ to src/lib/macros.h - convenience macro to test the version of dovecot
Mon, 25 Feb 2013 16:12:49 +0200 Timo Sirainen Reverted the recent hash.h changes. Instead use -Wno-duplicate-decl-specifier with clang.
Sun, 24 Feb 2013 08:46:28 +0200 Timo Sirainen Fixed "duplicate const" warnings with new clang.
Sun, 24 Feb 2013 08:44:27 +0200 Timo Sirainen Use proper HAVE_TYPEOF check instead of checking with gcc versions.
Sun, 19 Aug 2012 16:17:32 +0300 Timo Sirainen Removed CONTEXT_TYPE_SAFETY macro and reimplemented its functionality better.
Sun, 19 Aug 2012 13:55:34 +0300 Timo Sirainen Hash table API is now (mostly) type safe.
Thu, 28 Jun 2012 00:27:13 +0300 Timo Sirainen Changed i_close_fd() API to set the fd to -1 after closing.
Mon, 25 Jun 2012 02:52:33 +0300 Timo Sirainen Replaced (void)close(fd) and close_keep_errno() with i_close_fd().
Mon, 25 Jun 2012 02:20:30 +0300 Timo Sirainen Added ATTR_NOWARN_UNUSED_RESULT, which expands to nowarn_unused_result attribute if supported.
Sun, 24 Jun 2012 00:52:57 +0300 Timo Sirainen Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
Tue, 10 Jan 2012 22:51:52 +0200 Timo Sirainen Added t_strflocaltime().
Sun, 05 Dec 2010 23:53:47 +0000 Timo Sirainen Removed unused BITS_IN_UINT and CLAMP macros.
Sun, 05 Dec 2010 23:53:25 +0000 Timo Sirainen Unexpand BITS_IN_SIZE_T in the only place it's used and remove the macro.
Sun, 05 Dec 2010 23:52:37 +0000 Timo Sirainen Moved a global NVL() macro to the few places in lib-imap where it was actually used.
Sat, 27 Mar 2010 01:40:04 +0200 Timo Sirainen Added CONST_STRUCT_MEMBER_P() and removed unused (broken) STRUCT_MEMBER(). HEAD
Mon, 22 Mar 2010 01:46:17 +0200 Timo Sirainen Asserts now use __FUNCTION__ instead of __PRETTY_FUNCTION__. HEAD
Mon, 22 Mar 2010 01:45:11 +0200 Timo Sirainen Removed unused GNUC_FUNCTION* macros. HEAD
Sun, 31 Jan 2010 19:09:44 +0200 Timo Sirainen Added CONTEXT_CALLBACK2() helper macro. HEAD
Fri, 04 Dec 2009 13:52:35 -0600 Timo Sirainen Removed MEMBER() macro. Require C99 style struct initializer. HEAD
Tue, 29 Sep 2009 13:21:16 -0400 Timo Sirainen Added ATTR_HOT and ATTR_COLD macros. Use them in a couple of places. HEAD
Fri, 20 Jun 2008 10:41:27 +0300 Timo Sirainen Added ATTR_PURE macro, which expands to pure attribute if available. HEAD
Fri, 13 Jun 2008 11:01:36 +0300 Timo Sirainen MEMBER(): Don't try to use the C99 "." feature with HP-UX. HEAD
Thu, 31 Jan 2008 17:33:12 +0200 Timo Sirainen Use malloc attribute, __builtin_expect() and __builtin_types_compatible_p() HEAD
Mon, 26 Nov 2007 20:19:19 +0200 Timo Sirainen unlikely() and likely() were broken with non-gcc. HEAD
Sun, 11 Nov 2007 23:29:41 +0200 Timo Sirainen Added likely() and unlikely() macros. Use unlikely() with asserts. HEAD
Sun, 16 Sep 2007 11:40:56 +0300 Timo Sirainen Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED. HEAD
Sun, 16 Sep 2007 11:31:27 +0300 Timo Sirainen Changed .h ifdef/defines to use <NAME>_H format. HEAD
Fri, 20 Jul 2007 17:21:53 +0300 Timo Sirainen Added N_ELEMENTS() macro. HEAD
Mon, 04 Jun 2007 14:50:50 +0300 Timo Sirainen Added missing __attr_*__ macros for non-GCC compilers. HEAD
Thu, 29 Mar 2007 14:48:18 +0300 Timo Sirainen Added HAVE_TYPEOF, COMPILE_ERROR_IF_TRUE() and HEAD
Thu, 22 Feb 2007 17:59:54 +0200 Timo Sirainen warn_unused_result attribute exists only with gcc 4.0 and later. HEAD
Fri, 15 Dec 2006 20:10:51 +0200 Timo Sirainen Type safe callbacks weren't as easy as I thought. Only callback(void HEAD
Fri, 15 Dec 2006 18:55:29 +0200 Timo Sirainen Added context parameter type safety checks for most callback APIs. HEAD
Sat, 18 Nov 2006 16:05:14 +0200 Timo Sirainen Define __attrs_used__ if the compiler actually supports attributes. HEAD
Wed, 01 Nov 2006 21:19:35 +0200 Timo Sirainen Use malloc attribute for the most commonly used memory and string allocation HEAD
Wed, 01 Nov 2006 20:47:37 +0200 Timo Sirainen Added sentinel GCC attribute to *_strconcat() functions. Added HEAD
Sat, 16 Oct 2004 17:59:32 +0300 Timo Sirainen i_unreached(): show also file and line number in error message HEAD
Tue, 27 Apr 2004 23:25:52 +0300 Timo Sirainen importing new index code. mbox still broken. HEAD
Mon, 28 Apr 2003 19:32:20 +0300 Timo Sirainen Added __attr_scanf__ HEAD
Thu, 30 Jan 2003 19:51:32 +0200 Timo Sirainen Removed STRUCT_OFFSET, offsetof() is ANSI-C for the same purpose. Added HEAD
Tue, 28 Jan 2003 21:32:18 +0200 Timo Sirainen No i_memmove here, just memmove. HEAD
Sun, 05 Jan 2003 15:09:51 +0200 Timo Sirainen Naming style changes, finally got tired of most of the typedefs. Also the HEAD
Sat, 04 Jan 2003 19:46:34 +0200 Timo Sirainen If PEDANTIC is defined, don't use (void)(..) with STMT_START/END. HEAD
Fri, 27 Dec 2002 18:02:25 +0200 Timo Sirainen We weren't using va_list properly, especially gcc/PowerPC didn't like it. HEAD
Mon, 04 Nov 2002 09:11:32 +0200 Timo Sirainen Several minor fixes: signess, casting away const, missing static, etc. HEAD