History log of /openbsd-current/include/assert.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.15 06-Sep-2020 millert

Use __STDC_VERSION__ instead of __ISO_C_VISIBLE to guard _Static_assert.
We need to test what the compiler supports, not what the C library
provides. This prevents static_assert from being defined when compiling
with the in-tree gcc (4.2.1) which does not support _Static_assert.


# 1.14 05-Sep-2020 bentley

Add C11's static_assert.

tested in a bulk by naddy@
previously submitted by jsg@ and Martin Wanvik
ok millert@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.13 26-Jun-2011 espie

half-guard the actual function prototypes.
precludes -Wredundant-declarations with multiple includes.

okay millert@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.12 31-Jan-2006 hshoexer

Annotate _assert()/__assert2() as __dead.
As discussed with espie@, ok millert@


# 1.11 13-Jan-2006 millert

Include the function name in assert() output. From espie@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.10 15-Jul-2003 deraadt

proto _assert2()


# 1.9 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 10-Jun-2002 espie

back-out header change for now.


# 1.7 10-Jun-2002 espie

put back in the assert changes for ISO C 99 (put __func__ in it)


# 1.6 19-Apr-2002 deraadt

avoid cranking libc minors for another few weeks


# 1.5 17-Apr-2002 espie

Use __func__ in assert.
ok millert@


Revision tags: OPENBSD_3_1_BASE
# 1.4 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.3 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.2 21-Sep-1997 niklas

Well, as we are heading for a release people are encouraged to rebuild their
entire trees for testing anyway, I might as well do this intrusive touching
of include files now. Added openBSD tags.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.14 05-Sep-2020 bentley

Add C11's static_assert.

tested in a bulk by naddy@
previously submitted by jsg@ and Martin Wanvik
ok millert@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
# 1.13 26-Jun-2011 espie

half-guard the actual function prototypes.
precludes -Wredundant-declarations with multiple includes.

okay millert@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.12 31-Jan-2006 hshoexer

Annotate _assert()/__assert2() as __dead.
As discussed with espie@, ok millert@


# 1.11 13-Jan-2006 millert

Include the function name in assert() output. From espie@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.10 15-Jul-2003 deraadt

proto _assert2()


# 1.9 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 10-Jun-2002 espie

back-out header change for now.


# 1.7 10-Jun-2002 espie

put back in the assert changes for ISO C 99 (put __func__ in it)


# 1.6 19-Apr-2002 deraadt

avoid cranking libc minors for another few weeks


# 1.5 17-Apr-2002 espie

Use __func__ in assert.
ok millert@


Revision tags: OPENBSD_3_1_BASE
# 1.4 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.3 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.2 21-Sep-1997 niklas

Well, as we are heading for a release people are encouraged to rebuild their
entire trees for testing anyway, I might as well do this intrusive touching
of include files now. Added openBSD tags.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.13 26-Jun-2011 espie

half-guard the actual function prototypes.
precludes -Wredundant-declarations with multiple includes.

okay millert@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.12 31-Jan-2006 hshoexer

Annotate _assert()/__assert2() as __dead.
As discussed with espie@, ok millert@


# 1.11 13-Jan-2006 millert

Include the function name in assert() output. From espie@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.10 15-Jul-2003 deraadt

proto _assert2()


# 1.9 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 10-Jun-2002 espie

back-out header change for now.


# 1.7 10-Jun-2002 espie

put back in the assert changes for ISO C 99 (put __func__ in it)


# 1.6 19-Apr-2002 deraadt

avoid cranking libc minors for another few weeks


# 1.5 17-Apr-2002 espie

Use __func__ in assert.
ok millert@


Revision tags: OPENBSD_3_1_BASE
# 1.4 19-Feb-2002 millert

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


# 1.3 16-Feb-2002 millert

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.


Revision tags: OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.2 21-Sep-1997 niklas

Well, as we are heading for a release people are encouraged to rebuild their
entire trees for testing anyway, I might as well do this intrusive touching
of include files now. Added openBSD tags.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision