aboutsummaryrefslogtreecommitdiff
path: root/src/dirvec.c
Commit message (Collapse)AuthorAge
* dirvec: dirvec_find() compares basenameMax Kellermann2008-10-13
| | | | | | It is invalid to pass a path with the wrong dirname to dirvec_find(). To be able to find a subdirectory only by its basename, compare only the basename of both paths.
* dirvec: constant pointers in dirvec_find()Max Kellermann2008-10-09
| | | | | dirvec_find() does not modify the object, thus it should get a const pointer.
* directory: eliminate CamelCaseMax Kellermann2008-10-08
| | | | CamelCase is ugly, rename the functions.
* don't include os_compat.hMax Kellermann2008-10-08
| | | | | When there are standardized headers, use these instead of the bloated os_compat.h.
* directory: converted typedef Directory to struct directoryMax Kellermann2008-10-08
| | | | | The struct can be forward-declared by other headers, which relaxes the header dependencies.
* dirvec: moved code to dirvec.cMax Kellermann2008-10-08
Having all functions as static (non-inline) functions generates GCC warnings, and duplicates binary code across several object files. Most of dirvec's methods are too complex for becoming inline functions. Move them all to dirvec.c and publish the prototypes in dirvec.h.