summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cvs/diff/diffrun.h
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1999-02-28 21:30:22 +0000
committertholo <tholo@openbsd.org>1999-02-28 21:30:22 +0000
commitc71bc7e269286e43816004eb0fcd7a55f036cd69 (patch)
tree794eb682ed86bb344bf2e65b4bee5ea179297b82 /gnu/usr.bin/cvs/diff/diffrun.h
parentconditionalize use of sbus_testdma() (diff)
downloadwireguard-openbsd-c71bc7e269286e43816004eb0fcd7a55f036cd69.tar.xz
wireguard-openbsd-c71bc7e269286e43816004eb0fcd7a55f036cd69.zip
Latest version from Cyclic
Diffstat (limited to 'gnu/usr.bin/cvs/diff/diffrun.h')
-rw-r--r--gnu/usr.bin/cvs/diff/diffrun.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/usr.bin/cvs/diff/diffrun.h b/gnu/usr.bin/cvs/diff/diffrun.h
index 28c1f45e5fd..08fbd0db70a 100644
--- a/gnu/usr.bin/cvs/diff/diffrun.h
+++ b/gnu/usr.bin/cvs/diff/diffrun.h
@@ -13,9 +13,7 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-You should have received a copy of the GNU General Public License
-along with GNU DIFF; see the file COPYING. If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+*/
#ifndef DIFFRUN_H
#define DIFFRUN_H
@@ -41,12 +39,14 @@ struct diff_callbacks
{
/* Write output. This function just writes a string of a given
length to the output file. The default is to fwrite to OUTFILE.
- If this callback is defined, flush_output must also be defined. */
+ If this callback is defined, flush_output must also be defined.
+ If the length is zero, output zero bytes. */
void (*write_output) DIFFPARAMS((char const *, size_t));
/* Flush output. The default is to fflush OUTFILE. If this
callback is defined, write_output must also be defined. */
void (*flush_output) DIFFPARAMS((void));
- /* Write to stdout. This is called for version and help messages. */
+ /* Write a '\0'-terminated string to stdout.
+ This is called for version and help messages. */
void (*write_stdout) DIFFPARAMS((char const *));
/* Print an error message. The first argument is a printf format,
and the next two are parameters. The default is to print a