citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 8e9adc97aa0b95634f984a425b29ad85e7ec7cb4
parent c462065658e00942b453ce2306c90c46778626f5
Author: Kyle Milz <kyle@0x30.net>
Date:   Thu, 23 Jun 2016 19:33:10 -0600

lib: add citrun_start() prototype to runtime.h

Diffstat:
MTest/Project.pm | 4++--
Mlib/runtime.c | 2+-
Mlib/runtime.h | 1+
Msrc/runtime_h.h | 1+
4 files changed, 5 insertions(+), 3 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..28); + my $line = <$inst_fh> for (1..29); 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..28) { + for (1..29) { my $line = <$inst_fh>; $preamble .= $line; } diff --git a/lib/runtime.c b/lib/runtime.c @@ -4,7 +4,7 @@ #include <pthread.h> /* pthread_create */ #include <stdlib.h> /* getenv */ #include <string.h> /* strlcpy */ -#include <unistd.h> /* getpid, getppid, getpgrp, read, usleep, write */ +#include <unistd.h> /* getpid, getppid, getpgrp, read, write */ #include <sys/socket.h> /* socket */ #include <sys/un.h> /* sockaddr_un */ diff --git a/lib/runtime.h b/lib/runtime.h @@ -7,3 +7,4 @@ struct citrun_node { struct citrun_node *next; }; void citrun_node_add(struct citrun_node *); +void citrun_start(); diff --git a/src/runtime_h.h b/src/runtime_h.h @@ -9,4 +9,5 @@ static const char runtime_h[] = " struct citrun_node *next;\n" "};\n" "void citrun_node_add(struct citrun_node *);\n" +"void citrun_start();\n" ;