projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b660484
)
attributes: New macro ATTRSET_INITIALIZER.
author
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 8 Jul 2022 22:45:54 +0000
(15:45 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Fri, 8 Jul 2022 22:48:09 +0000
(15:48 -0700)
src/data/attributes.h
patch
|
blob
|
history
diff --git
a/src/data/attributes.h
b/src/data/attributes.h
index 56d142e4c23ceb375e7c11e220fa4f34cde62346..6da0b0ef9cd71b362b45122bd93c1d8300e17620 100644
(file)
--- 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 *);