Lines Matching refs:pathbuf
62 pkgconf_buffer_t pathbuf = PKGCONF_BUFFER_INITIALIZER; in pkg_get_parent_dir() local
76 pkgconf_buffer_reset(&pathbuf); in pkg_get_parent_dir()
77 pkgconf_buffer_append(&pathbuf, buf.base); in pkg_get_parent_dir()
79 targetfilename = strrchr(pathbuf.base, '/'); in pkg_get_parent_dir()
83 targetdir = pathbuf.base; in pkg_get_parent_dir()
90 targetfilename = pathbuf.base; in pkg_get_parent_dir()
128 pkgconf_buffer_finalize(&pathbuf); in pkg_get_parent_dir()
362 determine_prefix(const pkgconf_pkg_t *pkg, pkgconf_buffer_t *pathbuf) in determine_prefix() argument
364 pkgconf_buffer_append(pathbuf, pkg->filename); in determine_prefix()
365 pkgconf_path_relocate(pathbuf); in determine_prefix()
367 pkgconf_path_trim_basename(pathbuf); in determine_prefix()
369 if (strcmp(pkgconf_path_find_basename(pkgconf_buffer_str_or_empty(pathbuf)), "pkgconfig")) in determine_prefix()
372 if (!pkgconf_path_trim_basename(pathbuf)) in determine_prefix()
375 if (!pkgconf_path_trim_basename(pathbuf)) in determine_prefix()
525 pkgconf_buffer_t pathbuf = PKGCONF_BUFFER_INITIALIZER; in pkgconf_pkg_parser_value_set() local
527 if (determine_prefix(pkg, &pathbuf)) in pkgconf_pkg_parser_value_set()
529 const char *relvalue = pkgconf_buffer_str(&pathbuf); in pkgconf_pkg_parser_value_set()
541 pkgconf_buffer_finalize(&pathbuf); in pkgconf_pkg_parser_value_set()