Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/common/dict.c
Commit message (Collapse)AuthorAgeFilesLines
* implement dict_getany() and set_pop() functions to be ↵Arthur de Jong2010-10-151-0/+11
| | | | | | able to pick and remove entries git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1279 ef36b2f9-881f-0410-afb5-c4e39611909c
* make DICTs and SETs case-sensitiveArthur de Jong2010-10-151-6/+5
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1278 ef36b2f9-881f-0410-afb5-c4e39611909c
* change dict and set API to perform loops with a list of ↵Arthur de Jong2009-12-131-27/+42
| | | | | | strings instead of loop_first() and loop_next() functions git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1028 ef36b2f9-881f-0410-afb5-c4e39611909c
* rename software to nss-pam-ldapdArthur de Jong2009-08-311-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@978 ef36b2f9-881f-0410-afb5-c4e39611909c
* miscellaneous portability improvementsArthur de Jong2008-06-061-1/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@742 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix problem where first item in the hashtable could be ↵Arthur de Jong2008-04-231-1/+1
| | | | | | returned twice while looping git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@694 ef36b2f9-881f-0410-afb5-c4e39611909c
* allocate room for key string just after entry to save on ↵Arthur de Jong2008-04-211-72/+12
| | | | | | calls to malloc() and make it simpler git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@691 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix wrapping and indenting of commentsArthur de Jong2008-04-191-19/+18
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@684 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement new dict module that uses a hashtable which is ↵Arthur de Jong2008-04-191-92/+252
| | | | | | around 40 times faster for large (around 2000) entries but with around 40% more memory used git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@680 ef36b2f9-881f-0410-afb5-c4e39611909c
* change dict_values_first() and dict_values_next() into ↵Arthur de Jong2008-04-171-4/+8
| | | | | | dict_loop_first() and dict_loop_next() to have a looping mechanism over keys and values git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@675 ef36b2f9-881f-0410-afb5-c4e39611909c
* simple check for validity of key value in dict_put()Arthur de Jong2007-12-011-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@482 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix a serious bug in dict_values_next() that would ↵Arthur de Jong2007-07-231-3/+11
| | | | | | return map pointers instead of values and write a test for it git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@315 ef36b2f9-881f-0410-afb5-c4e39611909c
* add support for removing entries from a DICT by setting ↵Arthur de Jong2007-07-231-4/+6
| | | | | | the value to NULL (this does not free any memory) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@313 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix casts of types where neededArthur de Jong2007-06-121-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@285 ef36b2f9-881f-0410-afb5-c4e39611909c
* move dict into the common directoryArthur de Jong2007-06-111-0/+151
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@279 ef36b2f9-881f-0410-afb5-c4e39611909c