Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/common/expr.c
Commit message (Collapse)AuthorAgeFilesLines
* Support minus character in attribute expressionsArthur de Jong2021-10-171-7/+7
| | | | | This requires the attribute name is contained within a ${var-name} expression.
* Various spelling fixesArthur de Jong2019-09-171-2/+2
|
* Mark case blocks without break statementArthur de Jong2018-02-171-1/+2
| | | | | This avoids a gcc warning in non-empty case blocks without a break statement by explicitly marking those blocks.
* Support substituting expresions of type ${var:offset:length}Giovanni Mascellani2016-06-031-0/+51
|
* Refactor out expression parsing to functionsArthur de Jong2016-05-241-68/+101
| | | | | This moves the parsing of the various ${var...} expressions to separate functions so they can be extended more easily.
* update the trimming expressions code to follow the new ↵Arthur de Jong2013-03-031-44/+26
| | | | coding style
* allow trimming expressions with ${foo#bar} syntax in nslcdThorsten Glaser2013-03-031-0/+62
|
* update C coding style to a more commonly used styleArthur de Jong2012-12-221-72/+75
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1873 ef36b2f9-881f-0410-afb5-c4e39611909c
* allow attribute options in attribute mapping expressionsArthur de Jong2012-10-191-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1803 ef36b2f9-881f-0410-afb5-c4e39611909c
* handle expressions where the expander function returns ↵Arthur de Jong2011-06-051-0/+4
| | | | | | NULL (handle it as an empty string) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1471 ef36b2f9-881f-0410-afb5-c4e39611909c
* switch variable expander function type name because _t ↵Arthur de Jong2011-05-131-5/+5
| | | | | | suffix is reserved git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1458 ef36b2f9-881f-0410-afb5-c4e39611909c
* small code improvementsArthur de Jong2011-03-191-1/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1400 ef36b2f9-881f-0410-afb5-c4e39611909c
* also don't expand variables in rest of ${var:+rest} ↵Arthur de Jong2010-08-141-3/+12
| | | | | | expressions if var is not set or empty git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1169 ef36b2f9-881f-0410-afb5-c4e39611909c
* do not expand variables in rest of ${var:-rest} ↵Arthur de Jong2010-08-141-5/+18
| | | | | | expressions if var is not blank or empty git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1168 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement attribute mapping using shell-like expressionsArthur de Jong2009-12-281-0/+207
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1041 ef36b2f9-881f-0410-afb5-c4e39611909c