2021-10-01 18:28:36 +08:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2017-12-15 02:47:46 +08:00
|
|
|
@@
|
|
|
|
expression s;
|
|
|
|
@@
|
|
|
|
- memset(&s, 0, sizeof(s))
|
|
|
|
+ zero(s)
|
|
|
|
@@
|
|
|
|
expression s;
|
|
|
|
@@
|
|
|
|
- memset(s, 0, sizeof(*s))
|
|
|
|
+ zero(*s)
|
|
|
|
@@
|
|
|
|
expression s;
|
|
|
|
@@
|
|
|
|
- bzero(&s, sizeof(s))
|
|
|
|
+ zero(s)
|
|
|
|
@@
|
|
|
|
expression s;
|
|
|
|
@@
|
|
|
|
- bzero(s, sizeof(*s))
|
|
|
|
+ zero(*s)
|
|
|
|
@@
|
|
|
|
expression a, b;
|
|
|
|
@@
|
2019-04-28 21:03:47 +08:00
|
|
|
(
|
|
|
|
#define memzero
|
|
|
|
&
|
2017-12-15 02:47:46 +08:00
|
|
|
- memset(a, 0, b)
|
|
|
|
+ memzero(a, b)
|
2019-04-28 21:03:47 +08:00
|
|
|
)
|
2017-12-15 02:47:46 +08:00
|
|
|
@@
|
|
|
|
expression a, b;
|
|
|
|
@@
|
2019-04-28 21:03:47 +08:00
|
|
|
(
|
|
|
|
#define memzero
|
|
|
|
&
|
2017-12-15 02:47:46 +08:00
|
|
|
- bzero(a, b)
|
|
|
|
+ memzero(a, b)
|
2019-04-28 21:03:47 +08:00
|
|
|
)
|