Lines Matching refs:bcbuf

37 	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()
71 TEST_ASSERT_TRUE(pkgconf_bytecode_emit_var(&bcbuf, NULL, 3)); in test_emit_guards()
72 TEST_ASSERT_TRUE(pkgconf_bytecode_emit_var(&bcbuf, "x", 0)); in test_emit_guards()
74 TEST_ASSERT_EQ(pkgconf_buffer_len(&bcbuf), 0); in test_emit_guards()
76 pkgconf_buffer_finalize(&bcbuf); in test_emit_guards()
84 pkgconf_buffer_t bcbuf = PKGCONF_BUFFER_INITIALIZER; in test_emit_var_and_eval() local
90 TEST_ASSERT_TRUE(pkgconf_bytecode_emit_text(&bcbuf, "hello ", 6)); in test_emit_var_and_eval()
91 TEST_ASSERT_TRUE(pkgconf_bytecode_emit_var(&bcbuf, "name", 4)); in test_emit_var_and_eval()
92 pkgconf_bytecode_from_buffer(&bc, &bcbuf); in test_emit_var_and_eval()
99 pkgconf_buffer_finalize(&bcbuf); in test_emit_var_and_eval()
109 pkgconf_buffer_t bcbuf = PKGCONF_BUFFER_INITIALIZER; in test_emit_sysroot_and_eval() local
115 TEST_ASSERT_TRUE(pkgconf_bytecode_emit_sysroot(&bcbuf)); in test_emit_sysroot_and_eval()
116 TEST_ASSERT_TRUE(pkgconf_bytecode_emit_text(&bcbuf, "/usr/include", 12)); in test_emit_sysroot_and_eval()
117 pkgconf_bytecode_from_buffer(&bc, &bcbuf); in test_emit_sysroot_and_eval()
125 pkgconf_buffer_finalize(&bcbuf); in test_emit_sysroot_and_eval()
332 pkgconf_buffer_t bcbuf = PKGCONF_BUFFER_INITIALIZER; in test_references_var() local
334 pkgconf_bytecode_compile(&bcbuf, "-I${includedir} -L${libdir}"); in test_references_var()
336 TEST_ASSERT_TRUE(pkgconf_bytecode_references_var(&bcbuf, "includedir")); in test_references_var()
337 TEST_ASSERT_TRUE(pkgconf_bytecode_references_var(&bcbuf, "libdir")); in test_references_var()
338 TEST_ASSERT_FALSE(pkgconf_bytecode_references_var(&bcbuf, "prefix")); in test_references_var()
341 TEST_ASSERT_FALSE(pkgconf_bytecode_references_var(&bcbuf, NULL)); in test_references_var()
343 pkgconf_buffer_finalize(&bcbuf); in test_references_var()
349 pkgconf_buffer_t bcbuf = PKGCONF_BUFFER_INITIALIZER; in test_references_var_text_only() local
351 pkgconf_bytecode_compile(&bcbuf, "just plain text"); in test_references_var_text_only()
353 TEST_ASSERT_FALSE(pkgconf_bytecode_references_var(&bcbuf, "anything")); in test_references_var_text_only()
355 pkgconf_buffer_finalize(&bcbuf); in test_references_var_text_only()
588 pkgconf_buffer_reset(&v->bcbuf); in test_compile_eval_roundtrip()
589 pkgconf_bytecode_compile(&v->bcbuf, "hello ${name}"); in test_compile_eval_roundtrip()
590 pkgconf_bytecode_from_buffer(&v->bc, &v->bcbuf); in test_compile_eval_roundtrip()