char *mktemp ();
-static char *xmalloc ();
-static char *xrealloc ();
-static void xwrite ();
-
int full_write ();
int safe_read ();
};
static void
-usage (status)
- int status;
+usage (int status)
{
if (status != 0)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
}
static RETSIGTYPE
-cleanup ()
+cleanup (void)
{
unlink (tempfile);
exit (1);
/* Allocate N bytes of memory dynamically, with error checking. */
static char *
-xmalloc (n)
- unsigned n;
+xmalloc (unsigned int n)
{
char *p;
/* Change the size of memory area P to N bytes, with error checking. */
static char *
-xrealloc (p, n)
- char *p;
- unsigned n;
+xrealloc (char *p, unsigned int n)
{
p = realloc (p, n);
if (p == 0)
}
static void
-xwrite (desc, buffer, size)
- int desc;
- char *buffer;
- int size;
+xwrite (int desc, char *buffer, int size)
{
if (full_write (desc, buffer, size) < 0)
{
If START is NULL, just flush the buffer. */
static void
-output (start, past_end)
- char *start;
- char *past_end;
+output (char *start, char *past_end)
{
static char buffer[WRITESIZE];
static int bytes_in_buffer = 0;
Return 0 if ok, 1 if an error occurs. */
static int
-tac (fd, file)
- int fd;
- char *file;
+tac (int fd, char *file)
{
/* Pointer to the location in `buffer' where the search for
the next separator will begin. */
Return 0 if ok, 1 if an error occurs. */
static int
-tac_file (file)
- char *file;
+tac_file (char *file)
{
int fd, errors;
/* Make a copy of the standard input in `tempfile'. */
static void
-save_stdin ()
+save_stdin (void)
{
static char *template = NULL;
static char *tempdir;
Return 0 if ok, 1 if an error occurs. */
static int
-tac_stdin ()
+tac_stdin (void)
{
/* Previous values of signal handlers. */
RETSIGTYPE (*sigint) (), (*sighup) (), (*sigpipe) (), (*sigterm) ();
}
void
-main (argc, argv)
- int argc;
- char **argv;
+main (int argc, char **argv)
{
const char *error_message; /* Return value from re_compile_pattern. */
int optc, errors;