2 |
|
|
3 |
Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005 Free |
Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005 Free |
4 |
Software Foundation, Inc. |
Software Foundation, Inc. |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
8 |
the Free Software Foundation; either version 2, or (at your option) |
the Free Software Foundation; either version 2 of the License, or |
9 |
any later version. |
(at your option) any later version. |
10 |
|
|
11 |
This program is distributed in the hope that it will be useful, |
This program is distributed in the hope that it will be useful, |
12 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
GNU General Public License for more details. |
GNU General Public License for more details. |
15 |
|
|
16 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License |
17 |
along with this program; if not, write to the Free Software |
along with this program; if not, write to the Free Software |
18 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
19 |
|
02110-1301 USA |
20 |
*/ |
*/ |
21 |
|
|
22 |
#include "m4.h" |
#include "m4.h" |
33 |
|
|
34 |
/* Size of buffer size to use while copying files. */ |
/* Size of buffer size to use while copying files. */ |
35 |
#define COPY_BUFFER_SIZE (32 * 512) |
#define COPY_BUFFER_SIZE (32 * 512) |
36 |
|
|
37 |
#ifdef HAVE_TMPFILE |
#ifdef HAVE_TMPFILE |
38 |
extern FILE *tmpfile (); |
extern FILE *tmpfile (); |
39 |
#endif |
#endif |
40 |
|
|
41 |
/* Output functions. Most of the complexity is for handling cpp like |
/* Output functions. Most of the complexity is for handling cpp like |
42 |
sync lines. |
sync lines. |
43 |
|
|
44 |
This code is fairly entangled with the code in input.c, and maybe it |
This code is fairly entangled with the code in input.c, and maybe it |
45 |
belongs there? */ |
belongs there? */ |
46 |
|
|
560 |
int divnum; |
int divnum; |
561 |
struct diversion *diversion; |
struct diversion *diversion; |
562 |
struct stat file_stat; |
struct stat file_stat; |
563 |
|
|
564 |
saved_number = current_diversion; |
saved_number = current_diversion; |
565 |
last_inserted = 0; |
last_inserted = 0; |
566 |
make_diversion (0); |
make_diversion (0); |
593 |
if (saved_number != last_inserted) |
if (saved_number != last_inserted) |
594 |
fprintf (file, "D%d,0\n\n", saved_number); |
fprintf (file, "D%d,0\n\n", saved_number); |
595 |
} |
} |
|
|
|