The NetBSD Project

CVS log for src/include/assert.h

[BACK] Up to [cvs.NetBSD.org] / src / include

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21.24.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:48:51 2016 UTC (2 years, 4 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.21: +7 -1 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Sync with HEAD

Revision 1.22 / (download) - annotate - [select for diffs], Mon Oct 3 12:08:39 2016 UTC (2 years, 5 months ago) by kamil
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, HEAD
Changes since 1.21: +7 -1 lines
Diff to previous 1.21 (colored)

Add static_assert macro definition in <assert.h>

This declaration conforms to the C11 standard
Reference: ISO/IEC 9899:201x 7.2 Diagnostics <assert.h>

_Static_assert performs compile-time assertion checking.

According to ISO/IEC 9899:201x (draft) 7.2 Diagnostics <assert.h> defines
the static_assert macro which expands to _Static_assert. It's not
conditionalized by NDEBUG like the assert macro.

According to ISO/IEC N3242=11-0012 (C++1x) the <cassert> header shall
define only the assert macro, but not static_assert as it's already part
of the C++11 language.

Allow to define static_assert in C++ prior the C++11 standard. It might be
broken but a nonstandard C++ compiler might support C11-like _Static_assert
feature. Note that it's fatal for g++ 5.4, but it works for clang++ 3.8.1.

Approved by <joerg>.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Aug 26 01:10:49 2011 UTC (7 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, localcount-20160914, agc-symver-base, agc-symver
Branch point for: pgoyette-localcount
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

__assert and __assert13 are dead

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Sun Nov 2 14:27:45 2008 UTC (10 years, 4 months ago) by christos
Branch: christos-time_t
Changes since 1.20.2.1: +106 -0 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

include <sys/null.h> because _DIAGASSERT(foo == NULL) is too common and some
include it.

Revision 1.20.2.1, Sun Nov 2 14:27:44 2008 UTC (10 years, 4 months ago) by christos
Branch: christos-time_t
Changes since 1.20: +0 -106 lines
FILE REMOVED

file assert.h was added on branch christos-time_t on 2008-11-02 14:27:45 +0000

Revision 1.20 / (download) - annotate - [select for diffs], Sun Nov 2 14:27:44 2008 UTC (10 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, christos-time_t-nbase, christos-time_t-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: christos-time_t
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

include <sys/null.h> because _DIAGASSERT(foo == NULL) is too common and some
include it.

Revision 1.18.26.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:39:55 2008 UTC (10 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.18: +4 -2 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Aug 17 00:24:35 2008 UTC (10 years, 7 months ago) by gmcgarry
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Changes since 1.18: +4 -2 lines
Diff to previous 1.18 (colored)

Define away __assert_function__ if __lint__.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Feb 3 04:39:32 2005 UTC (14 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-revivesa
Changes since 1.17: +5 -5 lines
Diff to previous 1.17 (colored)

de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Fri Jul 2 18:13:28 2004 UTC (14 years, 8 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.15.2.1: +7 -7 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Pull up revision 1.17 (requested by kleink in ticket #580):
  Tidy up the namespace: lint -> __lint__.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jul 1 22:31:28 2004 UTC (14 years, 8 months ago) by kleink
Branch: MAIN
Changes since 1.16: +7 -7 lines
Diff to previous 1.16 (colored)

Tidy up the namespace: lint -> __lint__.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Sat May 22 16:10:37 2004 UTC (14 years, 10 months ago) by he
Branch: netbsd-2-0
Changes since 1.15: +1 -6 lines
Diff to previous 1.15 (colored)

Pull up revision 1.16 (requested by kleink in ticket #356):
  Remove _assert() again.  As has been noted by Ben Harris, this
  had been removed already in rev. 1.4 and was subsequently reinstated
  by the Lite-2 import.  Nothing uses it, and it pollutes user
  namespace.

Revision 1.16 / (download) - annotate - [select for diffs], Tue May 18 21:03:08 2004 UTC (14 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.15: +1 -6 lines
Diff to previous 1.15 (colored)

Remove _assert() again.  As has been noted by Ben Harris, this had been
removed already in rev. 1.4 and was subsequently reinstated by the
Lite-2 import.  Nothing uses it, and it pollutes user namespace.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Aug 7 09:44:09 2003 UTC (15 years, 7 months ago) by agc
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.14: +2 -6 lines
Diff to previous 1.14 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22270, verified by myself.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jun 5 18:37:45 2003 UTC (15 years, 9 months ago) by bjh21
Branch: MAIN
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored)

EBENISANIDIOT:  Remove a spurious '#endif' that crept in under the radar.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jun 5 17:27:14 2003 UTC (15 years, 9 months ago) by bjh21
Branch: MAIN
Changes since 1.12: +8 -5 lines
Diff to previous 1.12 (colored)

Namespace cleanup: _assert is in the application's namespace, and thus should
only be exposed if _NETBSD_SOURCE is defined.  To make life less complicated,
define _assert() in terms of assert(), since they always seem to have identical
definitions.

_assert() was removed back in 1993, but got reinstated with the 4.4Lite
import.  Maybe it should go again.  Nothing in the tree uses it.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Mon Oct 8 20:13:44 2001 UTC (17 years, 5 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.11: +15 -15 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Catch up to -current.

Revision 1.12 / (download) - annotate - [select for diffs], Sun May 6 15:31:09 2001 UTC (17 years, 10 months ago) by kleink
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.11: +15 -15 lines
Diff to previous 1.11 (colored)

Employ __static_cast(); suggested by Dave Sainty in PR lib/11766.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Dec 20 18:35:46 2000 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.10: +4 -1 lines
Diff to previous 1.10 (colored)

avoid multiple declarations.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Dec 19 14:32:59 2000 UTC (18 years, 3 months ago) by kleink
Branch: MAIN
Changes since 1.9: +23 -5 lines
Diff to previous 1.9 (colored)

C99: Print the name of the function enclosing the assertion, if possible.

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 7 16:21:32 2000 UTC (18 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

#ifdef __STDC__ -> #if __STDC__

Revision 1.8 / (download) - annotate - [select for diffs], Wed Sep 15 23:53:26 1999 UTC (19 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.7: +18 -1 lines
Diff to previous 1.7 (colored)

if _DIAGNOSTIC is defined, define _DIAGASSERT() to call __diagassert(),
otherwise it's a no-op.
prototype __diagassert().

Revision 1.7 / (download) - annotate - [select for diffs], Sat Nov 14 16:30:07 1998 UTC (20 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Changes since 1.6: +16 -11 lines
Diff to previous 1.6 (colored)

Define assert and _assert macros for lint when NDEBUG is present as nothing.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Mon Feb 2 07:23:05 1998 UTC (21 years, 1 month ago) by perry
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +65 -1 lines
Diff to previous 1.1.1.1 (colored)

import lite-2

Revision 1.6 / (download) - annotate - [select for diffs], Wed Oct 26 00:55:44 1994 UTC (24 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: nsswitch, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

new RCS ID format.

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 16 10:58:55 1994 UTC (24 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.4: +66 -1 lines
Diff to previous 1.4 (colored)

update all but ctype.h, dumprestore.h, time.h to 4.4-Lite versions.
USL copyright additions on those.  Kill varargs.h, because it can simply
be a link to the machine-dependent version.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 7 22:15:29 1993 UTC (25 years, 5 months ago) by jtc
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

Use _ASSERT_H_ guard macro so that <sys/cdefs.h> is only included once and
the __assert() helper function is declared once if <assert.h> is included
multiple times.
Don't support the _assert() macro, nothing uses it and it pollutes the
user's namespace.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Aug 1 18:45:00 1993 UTC (25 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

Add RCS identifiers.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 16 23:18:35 1993 UTC (25 years, 9 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

Make assert macro ansi complient.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (26 years ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (26 years ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>