summaryrefslogtreecommitdiff
path: root/src/diff.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@gnu.org>2012-08-14 00:30:46 +0200
committerJim Meyering <meyering@redhat.com>2012-09-10 14:31:23 +0200
commite17295dc5529b252c269f12e081184bbde42d575 (patch)
tree5d8492c0bdada2f5e78333e22ff21121da17f810 /src/diff.h
parentbaeaa83e31da3a1a36d2a1f76140b67ff76859fe (diff)
downloaddiffutils-e17295dc5529b252c269f12e081184bbde42d575.tar.gz
diff: encode file names with special characters
* src/util.c (c_escape_char): New function. (c_escape): New function. (begin_output): Escape file names when needed. * src/context.c (print_context_header): New names parameter. (print_context_label): New name parameter. * src/diff.h (print_context_header): Change prototype. * tests/filename-quoting: New file. * NEWS: Document this change.
Diffstat (limited to 'src/diff.h')
-rw-r--r--src/diff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.h b/src/diff.h
index 4b6595c..212a8d0 100644
--- a/src/diff.h
+++ b/src/diff.h
@@ -332,7 +332,7 @@ XTERN FILE *outfile;
extern int diff_2_files (struct comparison *);
/* context.c */
-extern void print_context_header (struct file_data[], bool);
+extern void print_context_header (struct file_data[], char const * const *, bool);
extern void print_context_script (struct change *, bool);
/* dir.c */