summaryrefslogtreecommitdiff
path: root/usr.bin/m4/trace.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2002-04-26 16:15:17 +0000
committerMarc Espie <espie@cvs.openbsd.org>2002-04-26 16:15:17 +0000
commit751f1207fc4315779434d03c633db0f5a685a704 (patch)
tree6a606fc3547a1303a7c7a83a07c10fc0a685293e /usr.bin/m4/trace.c
parentf9893f673eaa78484fd40b361e55bb60053d9266 (diff)
use ansi function declarations. ok millert@
Diffstat (limited to 'usr.bin/m4/trace.c')
-rw-r--r--usr.bin/m4/trace.c32
1 files changed, 10 insertions, 22 deletions
diff --git a/usr.bin/m4/trace.c b/usr.bin/m4/trace.c
index 35c3ecb0d62..99c72aba2db 100644
--- a/usr.bin/m4/trace.c
+++ b/usr.bin/m4/trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trace.c,v 1.5 2002/04/26 13:12:33 espie Exp $ */
+/* $OpenBSD: trace.c,v 1.6 2002/04/26 16:15:16 espie Exp $ */
/*
* Copyright (c) 2001 Marc Espie.
*
@@ -62,8 +62,7 @@ static int frame_level(void);
static unsigned int flags = TRACE_QUOTE | TRACE_EXPANSION;
static struct t *
-find_trace_entry(name)
- const char *name;
+find_trace_entry(const char *name)
{
struct t *n;
@@ -75,9 +74,7 @@ find_trace_entry(name)
void
-mark_traced(name, on)
- const char *name;
- int on;
+mark_traced(const char *name, int on)
{
struct t *n, *n2;
@@ -109,8 +106,7 @@ mark_traced(name, on)
}
int
-is_traced(name)
- const char *name;
+is_traced(const char *name)
{
struct t *n;
@@ -121,8 +117,7 @@ is_traced(name)
}
void
-trace_file(name)
- const char *name;
+trace_file(const char *name)
{
if (traceout != stderr)
@@ -133,8 +128,7 @@ trace_file(name)
}
static unsigned int
-letter_to_flag(c)
- int c;
+letter_to_flag(int c)
{
switch(c) {
case 'a':
@@ -165,8 +159,7 @@ letter_to_flag(c)
}
void
-set_trace_flags(s)
- const char *s;
+set_trace_flags(const char *s)
{
char mode = 0;
unsigned int f = 0;
@@ -203,8 +196,7 @@ frame_level()
}
static void
-print_header(inp)
- struct input_file *inp;
+print_header(struct input_file *inp)
{
fprintf(traceout, "m4trace:");
if (flags & TRACE_FILENAME)
@@ -217,10 +209,7 @@ print_header(inp)
}
ssize_t
-trace(argv, argc, inp)
- const char **argv;
- int argc;
- struct input_file *inp;
+trace(const char *argv[], int argc, struct input_file *inp)
{
print_header(inp);
if (flags & TRACE_CONT) {
@@ -259,8 +248,7 @@ trace(argv, argc, inp)
}
void
-finish_trace(mark)
-size_t mark;
+finish_trace(size_t mark)
{
fprintf(traceout, " -> ");
if (flags & TRACE_QUOTE)