A number of fixes + win32 compat #1

Merged
mgorny merged 7 commits from master into master 2012-05-02 14:49:46 +00:00

7 Commits (master)

Author SHA1 Message Date
Michał Górny 3707ccd221 Fix PKG_CONFIG_PATH precedence, simplify.
PKG_CONFIG_PATH paths must take precedence over the default path.
Otherwise, we would be unable to override default .pc files.

And while I'm at it, simplify the whole code. It is pointless to
introduce another buffer and a lot of string mangling for one additional
path.
2012-05-02 16:02:05 +02:00
Michał Górny ee62bedd59 parse_file() no longer needs to handle f == NULL.
That condition is now handled within pkg_find() completely.
2012-05-02 16:02:05 +02:00
Michał Górny 0e0bf1b0fb Omit empty paths in file lookup.
This avoids looking for '/foo.pc'.
2012-05-02 11:45:31 +02:00
Michał Górny 218b3ccd25 Remove unnecessary buffer zeroing.
We always replace that current pos with a null terminator, so it doesn't
matter what follows it.
2012-05-02 11:42:52 +02:00
Michał Górny f26001c3f8 File lookup: wind in last occurence to the loop.
Instead of repeating the parsing stage after reaching the null
terminator, just handle it inside the loop and terminate the loop
afterwards.
2012-05-02 11:40:38 +02:00
Michał Górny 742fad9251 Fix uninitialized vars in deplist parsing. 2012-05-02 11:38:54 +02:00
Michał Górny 353ba1eafe Use ';' as path separator on win32.
This is what pkg-config does, and it is necessary because ':' is part of
path specification on win32.
2012-05-02 11:24:58 +02:00