Add comment about inlining C relative includes

This commit is contained in:
Nigel Tao committed 2017-12-01 11:36:12 +11:00
1 parent 7601fb45ce
commit 56a2a926c5
3 files changed
+15 -4

No files matched your search

+3
View File
@@ -23,6 +23,9 @@ for a C compiler $cc, such as clang or gcc.
#include <string.h>
#include <unistd.h>
// If building this program in an environment that doesn't easily accomodate
// relative includes, you can use the script/inline-c-relative-includes.go
// program to generate a stand-alone C file.
#include "../../gen/c/std/gif.c"
#ifdef __linux__
+6 -2
View File
@@ -37,8 +37,14 @@ the first "./a.out" with "./a.out -bench". Combine these changes with the
// !! wuffs mimic cflags: -DWUFFS_MIMIC -lz
// If building this program in an environment that doesn't easily accomodate
// relative includes, you can use the script/inline-c-relative-includes.go
// program to generate a stand-alone C file.
#include "../../../gen/c/std/flate.c"
#include "../testlib/testlib.c"
#ifdef WUFFS_MIMIC
#include "../mimiclib/flate.c"
#endif
// ---------------- Golden Tests
@@ -686,8 +692,6 @@ void test_wuffs_zlib_decode_pi() {
#ifdef WUFFS_MIMIC
#include "../mimiclib/flate.c"
void test_mimic_flate_decode_256_bytes() {
CHECK_FOCUS(__func__);
do_test_buf1_buf1(mimic_flate_decode, &flate_256_bytes_gt, 0, 0);
+6 -2
View File
@@ -37,8 +37,14 @@ the first "./a.out" with "./a.out -bench". Combine these changes with the
// !! wuffs mimic cflags: -DWUFFS_MIMIC -lgif
// If building this program in an environment that doesn't easily accomodate
// relative includes, you can use the script/inline-c-relative-includes.go
// program to generate a stand-alone C file.
#include "../../../gen/c/std/gif.c"
#include "../testlib/testlib.c"
#ifdef WUFFS_MIMIC
#include "../mimiclib/gif.c"
#endif
// ---------------- Basic Tests
@@ -562,8 +568,6 @@ void test_wuffs_gif_decode_input_is_a_png() {
#ifdef WUFFS_MIMIC
#include "../mimiclib/gif.c"
bool do_test_mimic_gif_decode(const char* filename) {
wuffs_base__buf1 src = {.ptr = global_src_buffer, .len = BUFFER_SIZE};
if (!read_file(&src, filename)) {