X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fattributes.h;h=56d142e4c23ceb375e7c11e220fa4f34cde62346;hb=62b5101a28fc2c4a9b8b26a998fb6c4ec12d84c7;hp=ab7b12e301730cdfcc12d67e3e4ff2312bd19cc8;hpb=6be12778a162063cbdcd0e79043bd5a4ef2204a6;p=pspp diff --git a/src/data/attributes.h b/src/data/attributes.h index ab7b12e301..56d142e4c2 100644 --- a/src/data/attributes.h +++ b/src/data/attributes.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2008, 2011, 2012 Free Software Foundation, Inc. + Copyright (C) 2008, 2011, 2012, 2016 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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; }; @@ -52,7 +52,8 @@ void attrset_destroy (struct attrset *); size_t attrset_count (const struct attrset *); -struct attribute *attrset_lookup (struct attrset *, const char *); +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 *);