commit 5b32375a57be655863c914f554336bdfebbd85b6
parent f8bcb43e69c4afcf26686271dfecd343abf59840
Author: Kyle Milz <kyle@0x30.net>
Date: Sat, 2 Jul 2016 15:34:20 -0600
src: sync runtime header
Diffstat:
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/Test/Project.pm b/Test/Project.pm
@@ -65,7 +65,7 @@ sub instrumented_src {
open( my $inst_fh, "<", "$self->{tmp_dir}/source_0.c" );
# Knock off the instrumentation preamble
- my $line = <$inst_fh> for (1..29);
+ my $line = <$inst_fh> for (1..28);
my $inst_src;
while (my $line = <$inst_fh>) {
@@ -81,7 +81,7 @@ sub inst_src_preamble {
open( my $inst_fh, "<", "$self->{tmp_dir}/source_0.c" );
my $preamble;
- for (1..29) {
+ for (1..28) {
my $line = <$inst_fh>;
$preamble .= $line;
}
diff --git a/src/runtime_h.h b/src/runtime_h.h
@@ -1,6 +1,5 @@
static const char runtime_h[] =
"#include <stdint.h>\n"
-"#include <stddef.h>\n"
"struct citrun_node {\n"
" uint64_t *lines_ptr;\n"
" uint32_t size;\n"
diff --git a/t/inst_preamble.t b/t/inst_preamble.t
@@ -26,7 +26,6 @@ my $preamble_good = <<EOF;
extern "C" {
#endif
#include <stdint.h>
-#include <stddef.h>
struct citrun_node {
uint64_t *lines_ptr;
uint32_t size;