1
1
/* Normal-format output routines for GNU DIFF.
3
Copyright (C) 1988, 1989, 1993, 1995, 1998, 2001 Free Software
3
Copyright (C) 1988-1989, 1993, 1995, 1998, 2001, 2006, 2009-2010 Free
4
Software Foundation, Inc.
6
6
This file is part of GNU DIFF.
8
GNU DIFF is free software; you can redistribute it and/or modify
8
This program is free software: you can redistribute it and/or modify
9
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 2, or (at your option)
10
the Free Software Foundation, either version 3 of the License, or
11
(at your option) any later version.
13
GNU DIFF is distributed in the hope that it will be useful,
13
This program is distributed in the hope that it will be useful,
14
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
16
GNU General Public License for more details.
18
18
You should have received a copy of the GNU General Public License
19
along with this program; see the file COPYING.
20
If not, write to the Free Software Foundation,
21
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
along with this program. If not, see <http://www.gnu.org/licenses/>. */
53
51
/* Print out the line number header for this hunk */
54
52
print_number_range (',', &files[0], first0, last0);
55
fprintf (outfile, "%c", change_letter[changes]);
53
fputc (change_letter[changes], outfile);
56
54
print_number_range (',', &files[1], first1, last1);
57
fprintf (outfile, "\n");
55
fputc ('\n', outfile);
59
57
/* Print the lines that the first file has. */
62
60
print_1_line ("<", &files[0].linbuf[i]);
64
62
if (changes == CHANGED)
65
fprintf (outfile, "---\n");
63
fputs ("---\n", outfile);
67
65
/* Print the lines that the second file has. */