1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-04 23:35:36 -08:00
Commit Graph

15 Commits

Author SHA1 Message Date
millert
9f1f2f9e44 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.
2020-09-06 12:57:25 +00:00
bentley
18b823aed1 Add C11's static_assert.
tested in a bulk by naddy@
previously submitted by jsg@ and Martin Wanvik
ok millert@
2020-09-05 10:41:31 +00:00
espie
ca9d9491d5 half-guard the actual function prototypes.
precludes -Wredundant-declarations with multiple includes.

okay millert@
2011-06-26 21:11:41 +00:00
hshoexer
4c5dd6d35e Annotate _assert()/__assert2() as __dead.
As discussed with espie@, ok millert@
2006-01-31 10:53:51 +00:00
millert
db31c4c77d Include the function name in assert() output. From espie@ 2006-01-13 17:54:30 +00:00
deraadt
f0fbfa0279 proto _assert2() 2003-07-15 17:31:18 +00:00
millert
e33d3bd3b8 Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.
2003-06-02 19:34:12 +00:00
espie
f36e4a465b back-out header change for now. 2002-06-10 19:47:45 +00:00
espie
023a5a1dbf put back in the assert changes for ISO C 99 (put __func__ in it) 2002-06-10 14:59:01 +00:00
deraadt
3c14093828 avoid cranking libc minors for another few weeks 2002-04-19 15:48:34 +00:00
espie
bcb9deaf80 Use __func__ in assert.
ok millert@
2002-04-17 16:00:34 +00:00
millert
e7beb4a7d5 We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft. 2002-02-19 19:39:35 +00:00
millert
c72b5b24e1 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. 2002-02-16 21:27:05 +00:00
niklas
5ea2d675e0 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.
1997-09-21 10:45:23 +00:00
deraadt
df930be708 initial import of NetBSD tree 1995-10-18 08:37:01 +00:00