/* Print a usage message and quit. */
static void
-usage (status)
- int status;
+usage (int status)
{
if (status != 0)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
/* Build the printf format string, based on `lineno_format'. */
static void
-build_print_fmt ()
+build_print_fmt (void)
{
/* 12 = 10 chars for lineno_width, 1 for %, 1 for \0. */
print_fmt = xmalloc (strlen (separator_str) + 12);
according to `optarg'. */
static int
-build_type_arg (typep, regexp)
- char **typep;
- struct re_pattern_buffer *regexp;
+build_type_arg (char **typep, struct re_pattern_buffer *regexp)
{
const char *errmsg;
int rval = TRUE;
/* Print and increment the line number. */
static void
-print_lineno ()
+print_lineno (void)
{
printf (print_fmt, line_no);
line_no += page_incr;
/* Switch to a header section. */
static void
-proc_header ()
+proc_header (void)
{
current_type = header_type;
current_regex = &header_regex;
/* Switch to a body section. */
static void
-proc_body ()
+proc_body (void)
{
current_type = body_type;
current_regex = &body_regex;
/* Switch to a footer section. */
static void
-proc_footer ()
+proc_footer (void)
{
current_type = footer_type;
current_regex = &footer_regex;
/* Process a regular text line in `line_buf'. */
static void
-proc_text ()
+proc_text (void)
{
static int blank_lines = 0; /* Consecutive blank lines so far. */
/* Return the type of line in `line_buf'. */
static enum section
-check_section ()
+check_section (void)
{
if (line_buf.length < 2 || memcmp (line_buf.buffer, section_del, 2))
return Text;
/* Read and process the file pointed to by FP. */
static void
-process_file (fp)
- FILE *fp;
+process_file (FILE *fp)
{
while (readline (&line_buf, fp))
{
Return 0 if successful, 1 if not. */
static int
-nl_file (file)
- char *file;
+nl_file (const char *file)
{
FILE *stream;
}
void
-main (argc, argv)
- int argc;
- char **argv;
+main (int argc, char **argv)
{
int c, exit_status = 0;