~ubuntu-branches/ubuntu/maverick/texinfo/maverick

« back to all changes in this revision

Viewing changes to info/dribble.c

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2005-10-28 15:10:30 UTC
  • mto: (2.1.1 dapper) (3.1.4 hardy)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051028151030-9nsf2s2k2z3fktjt
Tags: upstream-4.8
ImportĀ upstreamĀ versionĀ 4.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* dribble.c -- dribble files for Info.
 
2
   $Id: dribble.c,v 1.3 2004/04/11 17:56:45 karl Exp $
2
3
 
3
 
   Copyright (C) 1993, 98 Free Software Foundation, Inc.
 
4
   Copyright (C) 1993, 1998, 2004 Free Software Foundation, Inc.
4
5
 
5
6
   This program is free software; you can redistribute it and/or modify
6
7
   it under the terms of the GNU General Public License as published by
28
29
/* Open a dribble file named NAME, perhaps closing an already open one.
29
30
   This sets the global variable INFO_DRIBBLE_FILE to the open stream. */
30
31
void
31
 
open_dribble_file (name)
32
 
     char *name;
 
32
open_dribble_file (char *name)
33
33
{
34
34
  /* Perhaps close existing dribble file. */
35
35
  close_dribble_file ();
49
49
 
50
50
/* If there is a dribble file already open, close it. */
51
51
void
52
 
close_dribble_file ()
 
52
close_dribble_file (void)
53
53
{
54
54
  if (info_dribble_file)
55
55
    {
61
61
 
62
62
/* Write some output to our existing dribble file. */
63
63
void
64
 
dribble (byte)
65
 
     unsigned char byte;
 
64
dribble (unsigned char byte)
66
65
{
67
66
  if (info_dribble_file)
68
67
    fwrite (&byte, sizeof (unsigned char), 1, info_dribble_file);