From: Ben Pfaff Date: Fri, 8 Jul 2022 22:45:54 +0000 (-0700) Subject: attributes: New macro ATTRSET_INITIALIZER. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=20dffbf67fd2f091ae0328c28c689702919336a3 attributes: New macro ATTRSET_INITIALIZER. --- diff --git a/src/data/attributes.h b/src/data/attributes.h index 56d142e4c2..6da0b0ef9c 100644 --- a/src/data/attributes.h +++ b/src/data/attributes.h @@ -45,6 +45,7 @@ struct attrset { struct hmap map; }; +#define ATTRSET_INITIALIZER(ATTRSET) { .map = HMAP_INITIALIZER((ATTRSET).map) } void attrset_init (struct attrset *); void attrset_clone (struct attrset *, const struct attrset *);