pkgconf/libpkgconf
Dylan Baker 388bd61a61 dependency: Fix reference counting of dependency_addraw
We only want a reference to be added for the value inserted into the
list, not the one returned. The returned one is unowned until it reaches
the public dependency_add function, which returns an owned pointer
instead. This makes things semantically more correct.

Unfortunately, this means in a few cases we have to write some ugly
code like:
```c
pkgconf_dependency_t *dep = pkgcond_dependency_add("args");
pkgconf_dependency_unref(dep->owner, dep);
```
2022-08-04 15:19:05 -07:00
..
argvsplit.c fix missing backslashes in paths on Windows 2020-05-30 12:39:43 -06:00
audit.c libpkgconf: document audit module 2016-12-10 19:28:34 -06:00
bsdstubs.c bsdstubs: add pkgconf_reallocarray 2022-06-26 04:37:18 +00:00
bsdstubs.h bsdstubs: add pkgconf_reallocarray 2022-06-26 04:37:18 +00:00
cache.c cache: when removing a package from the cache unset the cached flag 2022-08-03 15:53:16 -07:00
client.c cache: free the cache table when it is empty and set to NULL 2022-08-03 15:53:16 -07:00
config.h.meson meson: check for reallocarray 2022-06-26 04:33:47 +00:00
dependency.c dependency: Fix reference counting of dependency_addraw 2022-08-04 15:19:05 -07:00
fileio.c libpkgconf: fileio: pkgconf_fgetline(): handle quoted=true when a comment introduction is encountered 2021-03-18 05:45:41 -06:00
fragment.c introduce PKG_CONFIG_PKGCONF1_SYSROOT_RULES for legacy pkgconf behavior 2022-07-26 18:00:22 +00:00
iter.h libpkgconf: Add a helper to zero `pkgconf_list_t`s 2022-06-26 03:12:34 +00:00
libpkgconf-api.h docs: mention Meson instead of CMake for Win build 2021-12-11 14:49:19 +01:00
libpkgconf.h libpkgconf: remove trailing ; from macro definition 2022-08-03 12:03:15 -07:00
meson.build meson: install headers into pkgconf/libpkgconf instead of just libpkgconf 2020-11-28 19:42:00 -07:00
parser.c libpkgconf: parser: fix out of boundary access 2020-05-24 14:10:18 -06:00
path.c libpkgconf: zero path lists after freeing 2022-06-26 03:12:34 +00:00
personality.c personality: use an unsigned to track initializations 2022-02-14 21:22:05 -08:00
pkg.c dependency: Fix reference counting of dependency_addraw 2022-08-04 15:19:05 -07:00
queue.c queue: fix ISO C conformance for fallthrough label 2022-06-26 18:39:00 +00:00
stdinc.h stdinc: include strings.h on POSIX 2022-02-21 04:42:26 -06:00
tuple.c introduce PKG_CONFIG_PKGCONF1_SYSROOT_RULES for legacy pkgconf behavior 2022-07-26 18:00:22 +00:00
win-dirent.h Update dirent.h to latest 2022-01-08 10:55:28 +05:00