| /freebsd/contrib/pkgconf/tests/api/ |
| H A D | test-buffer.c | 28 TEST_ASSERT_NULL(pkgconf_buffer_str(&buf)); in test_buffer_empty() 41 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "hello"); in test_buffer_append() 45 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "hello world"); in test_buffer_append() 59 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "abc"); in test_buffer_append_slice() 62 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "abc"); in test_buffer_append_slice() 73 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "x=42"); in test_buffer_append_fmt() 76 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "x=42 ok"); in test_buffer_append_fmt() 88 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "hello world"); in test_buffer_prepend() 101 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "abc"); in test_buffer_push_byte() 114 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "hello"); in test_buffer_trim_byte() [all …]
|
| H A D | test-fileio.c | 40 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "hello"); in test_fgetline_no_trailing_newline() 68 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "hello"); in test_fgetline_lf() 72 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "world"); in test_fgetline_lf() 88 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "hello"); in test_fgetline_crlf() 92 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "world"); in test_fgetline_crlf() 108 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "hello"); in test_fgetline_lone_cr() 112 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "world"); in test_fgetline_lone_cr() 128 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "foobar"); in test_fgetline_backslash_continuation_lf() 141 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "foobar"); in test_fgetline_backslash_continuation_crlf() 157 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "foobar"); in test_fgetline_backslash_continuation_lone_cr() [all …]
|
| H A D | test-path-utils.c | 50 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "/usr/lib/pkgconfig"); in test_path_trim_basename() 52 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "/usr/lib"); in test_path_trim_basename() 54 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "/usr"); in test_path_trim_basename() 56 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), ""); in test_path_trim_basename() 58 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), ""); in test_path_trim_basename() 63 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "foo.pc"); in test_path_trim_basename() 76 TEST_ASSERT_STRCMP_EQ(pkgconf_path_find_basename(pkgconf_buffer_str(&buf)), "pkgconfig"); in test_determine_prefix_logic() 79 TEST_ASSERT_STRCMP_EQ(pkgconf_buffer_str(&buf), "/opt/foo"); in test_determine_prefix_logic() 85 TEST_ASSERT_STRCMP_EQ(pkgconf_path_find_basename(pkgconf_buffer_str(&buf)), "pkgconfig"); in test_determine_prefix_logic() 93 TEST_ASSERT_STRCMP_EQ(pkgconf_path_find_basename(pkgconf_buffer_str(&buf)), "pkgconfig"); in test_determine_prefix_logic() [all …]
|
| H A D | test-fragment.c | 59 if (pkgconf_buffer_str(&buf) == NULL) in render_to_string() 62 char *out = strdup(pkgconf_buffer_str(&buf)); in render_to_string()
|
| /freebsd/contrib/pkgconf/tests/ |
| H A D | test-runner.c | 227 pkgconf_buffer_append(dest, pkgconf_buffer_str(buffer)); in write_handler() 263 {"%TEST_FIXTURES_DIR%", pkgconf_buffer_str(&test_fixtures_dir)}, in handle_substs() 274 pkgconf_buffer_append(&workbuf_dest, pkgconf_buffer_str(src)); in handle_substs() 279 pkgconf_buffer_append(&workbuf_src, pkgconf_buffer_str(&workbuf_dest)); in handle_substs() 285 pkgconf_buffer_append(dest, pkgconf_buffer_str(&workbuf_dest)); in handle_substs() 449 pkgconf_path_add(pkgconf_buffer_str(&pathbuf), dirlist, false); in prefixed_path_split() 466 prefixed_path_split(value, dest, pkgconf_buffer_str(&test_fixtures_dir)); in test_keyword_set_path_list() 628 return pkgconf_cross_personality_find(pkgconf_buffer_str(&testcase->want_personality)); in personality_for_test() 766 if (_access(pkgconf_buffer_str(&child), 0) == 0) in rmdir_recursive() 769 int size = MultiByteToWideChar(CP_ACP, 0, pkgconf_buffer_str(&child), -1, NULL, 0); in rmdir_recursive() [all …]
|
| /freebsd/contrib/pkgconf/libpkgconf/ |
| H A D | personality.c | 77 pkgconf_path_add(pkgconf_buffer_str(&pathbuf), dirlist, true); in build_default_search_path() 81 pkgconf_path_add(pkgconf_buffer_str(&pathbuf), dirlist, true); in build_default_search_path() 118 pkgconf_path_add(pkgconf_buffer_str(&path1), dirlist, false); in build_default_search_path() 125 pkgconf_path_add(pkgconf_buffer_str(&path2), dirlist, false); in build_default_search_path() 328 f = fopen(pkgconf_buffer_str(&pathbuf), "rb"); in load_personality_with_path() 336 …pkgconf_parser_parse(f, p, personality_parser_ops, personality_warn_func, pkgconf_buffer_str(&path… in load_personality_with_path() 387 pkgconf_path_add(pkgconf_buffer_str(&pathbuf), &plist, true); in pkgconf_cross_personality_find() 423 pkgconf_path_add(pkgconf_buffer_str(&path), &plist, true); in pkgconf_cross_personality_find()
|
| H A D | path.c | 46 if (!strcmp(pkgconf_buffer_str(text), pn->path)) in path_list_contains_entry() 78 if (lstat(pkgconf_buffer_str(&pathbuf), &st) == -1) in prepare_path_node() 87 char *linkdest = realpath(pkgconf_buffer_str(&pathbuf), realpathbuf); in prepare_path_node() 271 cpath = pkgconf_buffer_str(&relocated); in pkgconf_path_match_list() 274 cpath = pkgconf_buffer_str(&relocated); in pkgconf_path_match_list() 409 const char *path = pkgconf_buffer_str(pathbuf); in normpath() 591 s = pkgconf_buffer_str(buf); in pkgconf_path_is_plausible()
|
| H A D | buffer.c | 297 if (fputs(pkgconf_buffer_str(buffer), out) == EOF) in pkgconf_buffer_fputs() 330 if (pkgconf_buffer_str(buffer) != NULL) in pkgconf_buffer_vjoin() 488 return pkgconf_buffer_append(dest, pkgconf_buffer_str(src)); in pkgconf_buffer_subst() 526 const char *p = pkgconf_buffer_str(src); in pkgconf_buffer_escape()
|
| H A D | output.c | 28 pkgconf_buffer_append(&buf, pkgconf_buffer_str(buffer)); in pkgconf_output_putbuf() 92 const char *str = pkgconf_buffer_str(buffer); in pkgconf_output_stdio_write()
|
| H A D | bufferset.c | 40 if (!pkgconf_buffer_append(&set->buffer, pkgconf_buffer_str(buffer))) in pkgconf_bufferset_extend()
|
| H A D | pkg.c | 507 if (is_path_prefix_equal(pkgconf_buffer_str(&canonicalized_value), op, oplen)) in pkgconf_pkg_parser_value_set() 512 pkgconf_buffer_append(&newvalue, pkgconf_buffer_str(&canonicalized_value) + oplen); in pkgconf_pkg_parser_value_set() 514 …pkgconf_tuple_add(pkg->owner, &pkg->vars, keyword, pkgconf_buffer_str(&newvalue), false, pkg->flag… in pkgconf_pkg_parser_value_set() 529 const char *relvalue = pkgconf_buffer_str(&pathbuf); in pkgconf_pkg_parser_value_set() 532 pkgconf_buffer_append(&pkg->orig_prefix, pkgconf_buffer_str(&canonicalized_value)); in pkgconf_pkg_parser_value_set() 917 if (!str_has_suffix(pkgconf_buffer_str(&filebuf), PKG_CONFIG_EXT)) in pkgconf_pkg_scan_dir() 923 PKGCONF_TRACE(client, "trying file [%s]", pkgconf_buffer_str(&filebuf)); in pkgconf_pkg_scan_dir() 925 pkg = pkgconf_pkg_new_from_path(client, pkgconf_buffer_str(&filebuf), 0); in pkgconf_pkg_scan_dir()
|
| H A D | dependency.c | 51 return pkgconf_buffer_str(buf); in dependency_to_buf() 418 compare = pkgconf_pkg_comparator_lookup_by_name(pkgconf_buffer_str(&cmpname)); in pkgconf_dependency_parse_str()
|
| H A D | bytecode.c | 498 if (dst == NULL || bcbuf == NULL || pkgconf_buffer_str(bcbuf) == NULL) in pkgconf_bytecode_append_stream() 501 return pkgconf_buffer_append_slice(dst, pkgconf_buffer_str(bcbuf), pkgconf_buffer_len(bcbuf)); in pkgconf_bytecode_append_stream()
|
| H A D | license.c | 200 cur_word = (char *)pkgconf_buffer_str(&out_buffer); in pkgconf_license_evaluate_str()
|
| H A D | libpkgconf.h | 623 static inline const char *pkgconf_buffer_str(const pkgconf_buffer_t *buffer) in pkgconf_buffer_str() function 712 char *out = pkgconf_strndup(pkgconf_buffer_str(buffer), pkgconf_buffer_len(buffer)); in pkgconf_buffer_freeze() 731 return pkgconf_buffer_append_slice(newptr, pkgconf_buffer_str(buffer), pkgconf_buffer_len(buffer)); in pkgconf_buffer_copy()
|
| H A D | fragment.c | 910 pkgconf_fragment_add(client, list, vars, pkgconf_buffer_str(&greedybuf), flags); in pkgconf_fragment_parse()
|
| /freebsd/contrib/pkgconf/cli/spdxtool/ |
| H A D | main.c | 214 pkgconf_queue_push(&pkgq, pkgconf_buffer_str(&queryparams)); in main()
|
| H A D | generate.c | 180 bool ret = pkgconf_output_file_fmt(out, "%s\n", pkgconf_buffer_str(&buffer)); in spdxtool_generate()
|
| /freebsd/contrib/pkgconf/cli/bomtool/ |
| H A D | main.c | 469 pkgconf_queue_push(&pkgq, pkgconf_buffer_str(&queryparams)); in main()
|
| /freebsd/contrib/pkgconf/cli/ |
| H A D | core.c | 849 pkgconf_buffer_append(&render_buf, pkgconf_buffer_str(&tag->buffer)); in apply_link_abi()
|