Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-05-18 00:05:17 +0400
committerRussell Belfer <rb@github.com>2012-05-18 00:05:17 +0400
commit706a9974a297ea1b38c6aab886b54598409725e8 (patch)
tree206597edf7b85241b6b00039eae76b67e2274dfe /examples/diff.c
parentdb756d5898fa6e0bdd2aeaa2cccfa55ece6c09a2 (diff)
Basic setup for profiling
This fixes the examples so they will build and adds a PROFILE option to the CMakeFile that enabled gprof info on non-Windows
Diffstat (limited to 'examples/diff.c')
-rw-r--r--examples/diff.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/diff.c b/examples/diff.c
index 20e14e511..1b4ab549b 100644
--- a/examples/diff.c
+++ b/examples/diff.c
@@ -61,7 +61,13 @@ char *colors[] = {
"\033[36m" /* cyan */
};
-int printer(void *data, char usage, const char *line)
+int printer(
+ void *data,
+ git_diff_delta *delta,
+ git_diff_range *range,
+ char usage,
+ const char *line,
+ size_t line_len)
{
int *last_color = data, color = 0;