+Tue Apr 25 13:11:55 2006 Ben Pfaff <blp@gnu.org>
+
+ * print.c: Don't special-case MS-DOS line terminators.
+ (macro LINE_END_WIDTH) Removed.
+ (alloc_line) Line ends are 1 byte.
+ (print_trns_proc) Just output \n for line end.
+
Sun Apr 23 22:05:58 2006 Ben Pfaff <blp@gnu.org>
Continue reforming error message support. In this phase, get rid
tab_submit (t);
}
-/* PORTME: The number of characters in a line terminator. */
-#ifdef __MSDOS__
-#define LINE_END_WIDTH 2 /* \r\n */
-#else
-#define LINE_END_WIDTH 1 /* \n */
-#endif
-
/* Calculates the maximum possible line width and allocates a buffer
big enough to contain it */
static void
if (pot_w > w)
w = pot_w;
}
- prt.max_width = w + LINE_END_WIDTH + 1;
+ prt.max_width = w + 2;
prt.line = xmalloc (prt.max_width);
}
\f
{
if ((t->options & PRT_CMD_MASK) == PRT_PRINT
|| !(t->options & PRT_BINARY))
- {
- /* PORTME: Line ends. */
-#ifdef __MSDOS__
- buf[len++] = '\r';
-#endif
- buf[len++] = '\n';
- }
+ buf[len++] = '\n';
dfm_put_record (t->writer, buf, len);
}