[dev] [PATCH 2/2] diff: changes edits are grouped automatically since we do not recognise substitution

2016-01-27 Thread maandree
Signed-off-by: Mattias Andrée --- diff.c | 50 +++--- 1 file changed, 15 insertions(+), 35 deletions(-) diff --git a/diff.c b/diff.c index 27ad8cf..cd0166c 100644 --- a/diff.c +++ b/diff.c @@ -107,9 +107,9 @@ diff2(char **a, char **b, size_t an, size_t

[dev] [PATCH 1/2] diff: remove printf-macro, fshut reports the potential error

2016-01-27 Thread maandree
Signed-off-by: Mattias Andrée --- diff.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/diff.c b/diff.c index b6da7b9..27ad8cf 100644 --- a/diff.c +++ b/diff.c @@ -10,8 +10,6 @@ #define END_OF_PATH 127 -#define printf(...) do {if (printf(__VA_ARGS__) < 0) perror("printf"), exit(EXI

[dev] [PATCH] diff: optimisations

2016-01-27 Thread maandree
Signed-off-by: Mattias Andrée --- diff.c | 48 1 file changed, 20 insertions(+), 28 deletions(-) diff --git a/diff.c b/diff.c index 21f9849..b6da7b9 100644 --- a/diff.c +++ b/diff.c @@ -4,6 +4,7 @@ #include #include #include +#include #i