time_t ltoday;
char from[MAX_DATA_LEN], labels[MAX_DATA_LEN], data[MAX_DATA_LEN], *p, *today;
+int
main (argc, argv)
int argc;
char **argv;
if (printing)
puts (data);
}
+ return 0;
}
char *malloc ();
char *realloc ();
+char *getenv ();
+
char *xmalloc ();
char *xrealloc ();
-char *getenv ();
+void skip_to_lf ();
+int
main (argc, argv)
int argc;
char *argv[];
FILE *mddf;
FILE *mfilef;
FILE *cff;
- char pre[10], post[100];
+ char pre[10];
char name[14];
int c;
return 0;
}
+void
skip_to_lf (stream)
FILE *stream;
{
;
}
+
+void
+error (s1, s2)
+ char *s1, *s2;
+{
+ fprintf (stderr, "cvtmail: ");
+ fprintf (stderr, s1, s2);
+ fprintf (stderr, "\n");
+}
+
+/* Print error message and exit. */
+
+void
+fatal (s1, s2)
+ char *s1, *s2;
+{
+ error (s1, s2);
+ exit (1);
+}
+
char *
xmalloc (size)
unsigned size;
fatal ("virtual memory exhausted");
return result;
}
-
-/* Print error message and exit. */
-
-fatal (s1, s2)
- char *s1, *s2;
-{
- error (s1, s2);
- exit (1);
-}
-
-error (s1, s2)
- char *s1, *s2;
-{
- fprintf (stderr, "cvtmail: ");
- fprintf (stderr, s1, s2);
- fprintf (stderr, "\n");
-}
but in texinfo format and sorted by function/variable name. */
#include <stdio.h>
+
+int
main ()
{
register int ch;
extern char *strerror ();
extern int errno;
+int
main (argc, argv)
int argc;
char **argv;
while (str = fgets (string, BUFSIZ, out))
printf ("%s", str);
- exit (0);
+ return 0;
}
#else /* This is the SYSV IPC section */
#include "getopt.h"
extern char *getenv ();
+char *malloc (), *realloc ();
/* Define CTAGS to make the program "ctags" compatible with the usual one.
Let it undefined to make the program "etags", which makes emacs-style
char *relative_filename (), *absolute_filename (), *absolute_dirname ();
char *xmalloc (), *xrealloc ();
int total_size_of_entries ();
+int string_numeric_p ();
+int substr ();
+int prestr ();
long readline ();
void Asm_labels ();
#if defined (BSD) && !defined (BSD4_1) && !defined (USE_FAKEMAIL)
/* This program isnot used in BSD, so just avoid loader complaints. */
+void
main ()
{
}
#else /* not BSD 4.2 (or newer) */
#ifdef MSDOS
+void
main ()
{
}
int group_by = DEFAULT_GROUPING;
char *progname;
+void usage();
+
+int
main (argc, argv)
int argc;
char *argv[];
return 0;
}
+void
usage ()
{
fprintf (stderr, "usage: %s [-de] [-iso]\n", progname);
#define READ_BINARY "r"
#endif /* not MSDOS */
+int scan_file ();
+int scan_lisp_file ();
+int scan_c_file ();
+
FILE *outfile;
+int
main (argc, argv)
int argc;
char **argv;
#ifndef VMS
exit (err_count); /* see below - shane */
#endif /* VMS */
+ return err_count;
}
/* Read file FILENAME and output its doc strings to outfile. */
/* Return 1 if file is not found, 0 if it is found. */
+int
scan_file (filename)
char *filename;
{
Convert escape sequences \n and \t to newline and tab;
discard \ followed by newline. */
+int
read_c_string (infile, printflag)
FILE *infile;
int printflag;
/* Write to file OUT the argument names of function FUNC, whose text is in BUF.
MINARGS and MAXARGS are the minimum and maximum number of arguments. */
+void
write_c_args (out, func, buf, minargs, maxargs)
FILE *out;
char *func, *buf;
Looks for DEFUN constructs such as are defined in ../src/lisp.h.
Accepts any word starting DEF... so it finds DEFSIMPLE and DEFPRED. */
+int
scan_c_file (filename, mode)
char *filename, *mode;
{
skip_white (infile);
}
-
+int
scan_lisp_file (filename, mode)
char *filename, *mode;
{
while (!feof (infile))
{
char buffer [BUFSIZ];
- char *fillp = buffer;
char type;
if (c != '\n')
* directories have lost mail when over quota because these checks were
* not made in previous versions of movemail. */
+#ifdef BSD
if (fsync (mbfi) < 0)
{
error ("Error in fsync: %s", strerror (errno));
return (1);
}
+#endif
if (close (mbfi) == -1)
{
/* Reset the stopwatch to zero. */
-int
+void
reset_watch ()
{
EMACS_GET_TIME (TV1);
};
\f
-/* Print error message and exit. */
-
-fatal (s1, s2)
- char *s1, *s2;
-{
- error (s1, s2);
- exit (1);
-}
-
/* Print error message. `s1' is printf control string, `s2' is arg for it. */
+void
error (s1, s2)
char *s1, *s2;
{
fprintf (stderr, "\n");
}
+/* Print error message and exit. */
+
+void
+fatal (s1, s2)
+ char *s1, *s2;
+{
+ error (s1, s2);
+ exit (1);
+}
+
/* Like malloc but get fatal error if memory is exhausted. */
char *
}
char *
-strsav (str)
+xstrdup (str)
char * str;
{
char *buf = xmalloc (strlen (str) + 1);
"WAITING", "BEG_NAME", "NAME_GET", "BEG_DESC", "DESC_GET"
};
+int
main ()
{
register DOCSTR *dp = NULL; /* allocated DOCSTR */
register LINE *lp = NULL; /* allocated line */
register char *bp; /* ptr inside line buffer */
- int notfirst = 0; /* set after read something */
register enum state state = WAITING; /* state at start */
int cnt = 0; /* number of DOCSTRs read */
else /* saving and changing state */
{
*bp = NUL;
- bp = strsav (buf);
+ bp = xstrdup (buf);
if (state == NAME_GET)
dp->name = bp;
}
}
+int
main (argc, argv)
int argc;
char **argv;
close (fd);
#ifdef VMS
exit (1); /* On VMS, success is 1. */
-#else
- exit (0);
#endif
+ return (0);
}
getevent ()
{
int i;
- int n_events;
/* In principle the itimer should be disabled on entry to this
function, but it really doesn't make any important difference
struct tm *localtime ();
+void
main (argc, argv)
int argc;
char **argv;
&res;})
#endif
+int
main (argc, argv)
int argc;
char *argv[];
setup_yow(fp);
yow(fp);
fclose(fp);
- exit(0);
+ return 0;
}
static long len = -1;