sys-file-reader: Avoid assert-fail for duplicate attribute names.
[pspp] / src / data / attributes.h
index a5cebc5bcc2eb15296ce1341555ad79bd7a900dc..56d142e4c23ceb375e7c11e220fa4f34cde62346 100644 (file)
@@ -41,7 +41,7 @@ void attribute_set_value (struct attribute *, size_t index, const char *);
 void attribute_del_value (struct attribute *, size_t index);
 size_t attribute_get_n_values (const struct attribute *);
 
-struct attrset 
+struct attrset
   {
     struct hmap map;
   };
@@ -53,6 +53,7 @@ void attrset_destroy (struct attrset *);
 size_t attrset_count (const struct attrset *);
 
 struct attribute *attrset_lookup (const struct attrset *, const char *);
+bool attrset_try_add (struct attrset *, struct attribute *);
 void attrset_add (struct attrset *, struct attribute *);
 void attrset_delete (struct attrset *, const char *);
 void attrset_clear (struct attrset *);