CVS Repository/ src/ include/ bitstring.h


OpenBSD release(s):
1.7 (79 78 77 76),  1.6 (75 74 73 72 71 70 69 68),  1.5 (67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34),  1.4 (33 32),  1.3 (31 30 29 28 27 26 25 24 23 22),  1.1.1.1 (21 20), 
Tags:
1.1.1.1 (netbsd_1_1), 
revision 1.7/ (Download) - annotate - Mon, 26 Aug 2024 11:52:54 UTC by bluhm
OpenBSD release(s): 79 78 77 76
Changes since 1.6: +13 -7 (diff)
Evaluate arguments of bitstring macros only once.

According to bit_alloc(3) man page the arguments to bitstring macros
are evaluated only once and may safely have side effects.  Fix the
implementation with temporary variables to fulfill this requirement.

OK florian@ deraadt@

revision 1.6/ (Download) - annotate - Sun, 10 May 2020 00:56:06 UTC by guenther
OpenBSD release(s): 75 74 73 72 71 70 69 68
Changes since 1.5: +23 -23 (diff)
Use a double-underscore prefix for local variables declared in macros
that have arguments.  Document this requirement/recommendation in style(9)

prompted by mpi@
ok deraadt@

revision 1.5/ (Download) - annotate - Mon, 02 Jun 2003 19:34:12 UTC by millert
OpenBSD release(s): 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34
Changes since 1.4: +2 -6 (diff)
Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

revision 1.4/ (Download) - annotate - Wed, 19 Jun 2002 02:50:10 UTC by millert
OpenBSD release(s): 33 32
Changes since 1.3: +40 -24 (diff)
Updates from lite2 via NetBSD; fixes license.

revision 1.3/ (Download) - annotate - Sun, 21 Sep 1997 10:45:26 UTC by niklas
OpenBSD release(s): 31 30 29 28 27 26 25 24 23 22
Changes since 1.2: +1 -0 (diff)
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.

revision 1.2/ (Download) - annotate - Wed, 28 May 1997 22:09:16 UTC by deraadt
Changes since 1.1: +8 -8 (diff)
do {} while (0); the macros; jarle@runit.sintef.no

revision 1.1/ (Download) - annotate - Wed, 18 Oct 1995 08:41:12 UTC by deraadt
Branch point for: 1.1.1.1
Initial revision

revision 1.1.1.1/ (Download) - annotate - Wed, 18 Oct 1995 08:41:12 UTC by deraadt
OpenBSD release(s): 21 20
Tags: netbsd_1_1
Changes since 1.1: None
initial import of NetBSD tree