Home
last modified time | relevance | path

Searched refs:bcbuf (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/pkgconf/tests/api/
H A Dtest-bytecode.c37 pkgconf_buffer_reset(&v->bcbuf); in seed_variable()
38 pkgconf_bytecode_compile(&v->bcbuf, value); in seed_variable()
39 pkgconf_bytecode_from_buffer(&v->bc, &v->bcbuf); in seed_variable()
47 pkgconf_buffer_t bcbuf = PKGCONF_BUFFER_INITIALIZER; in test_emit_text_and_eval() local
51 TEST_ASSERT_TRUE(pkgconf_bytecode_emit_text(&bcbuf, "plain", 5)); in test_emit_text_and_eval()
52 pkgconf_bytecode_from_buffer(&bc, &bcbuf); in test_emit_text_and_eval()
59 pkgconf_buffer_finalize(&bcbuf); in test_emit_text_and_eval()
67 pkgconf_buffer_t bcbuf = PKGCONF_BUFFER_INITIALIZER; in test_emit_guards() local
69 TEST_ASSERT_TRUE(pkgconf_bytecode_emit_text(&bcbuf, NULL, 5)); in test_emit_guards()
70 TEST_ASSERT_TRUE(pkgconf_bytecode_emit_text(&bcbuf, "x", 0)); in test_emit_guards()
[all …]
H A Dtest-tuple.c201 pkgconf_buffer_reset(&v->bcbuf); in test_tuple_define_variable_overrides_local()
202 pkgconf_bytecode_compile(&v->bcbuf, "/usr"); in test_tuple_define_variable_overrides_local()
203 pkgconf_bytecode_from_buffer(&v->bc, &v->bcbuf); in test_tuple_define_variable_overrides_local()
H A Dtest-variable.c32 pkgconf_buffer_reset(&v->bcbuf); in seed_variable()
33 pkgconf_bytecode_compile(&v->bcbuf, value); in seed_variable()
34 pkgconf_bytecode_from_buffer(&v->bc, &v->bcbuf); in seed_variable()
/freebsd/contrib/pkgconf/libpkgconf/
H A Dtuple.c202 pkgconf_buffer_reset(&v->bcbuf); in pkgconf_tuple_add()
203 pkgconf_bytecode_emit_text(&v->bcbuf, dequote_value, strlen(dequote_value)); in pkgconf_tuple_add()
204 pkgconf_bytecode_from_buffer(&v->bc, &v->bcbuf); in pkgconf_tuple_add()
219 pkgconf_buffer_copy(&v->bcbuf, &old_bcbuf); in pkgconf_tuple_add()
238 pkgconf_buffer_copy(&rhs_bcbuf, &v->bcbuf); in pkgconf_tuple_add()
239 pkgconf_bytecode_from_buffer(&v->bc, &v->bcbuf); in pkgconf_tuple_add()
H A Dbytecode.c404 pkgconf_buffer_t bcbuf = PKGCONF_BUFFER_INITIALIZER; in pkgconf_bytecode_eval_str_to_buf() local
408 if (!pkgconf_bytecode_compile(&bcbuf, input)) in pkgconf_bytecode_eval_str_to_buf()
410 pkgconf_buffer_finalize(&bcbuf); in pkgconf_bytecode_eval_str_to_buf()
414 pkgconf_bytecode_from_buffer(&bc, &bcbuf); in pkgconf_bytecode_eval_str_to_buf()
418 pkgconf_buffer_finalize(&bcbuf); in pkgconf_bytecode_eval_str_to_buf()
496 pkgconf_bytecode_append_stream(pkgconf_buffer_t *dst, const pkgconf_buffer_t *bcbuf) in pkgconf_bytecode_append_stream() argument
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 Dvariable.c59 pkgconf_buffer_finalize(&v->bcbuf); in pkgconf_variable_free()
H A Dlibpkgconf.h151 pkgconf_buffer_t bcbuf; member