summaryrefslogtreecommitdiff
path: root/usr.bin/m4/main.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2001-09-19 13:14:19 +0000
committerMarc Espie <espie@cvs.openbsd.org>2001-09-19 13:14:19 +0000
commitda231eb3fbafc2ed237757c0af027b53eae6cd27 (patch)
treef5fc7d0dea4bfbae908a892487a7225c80633898 /usr.bin/m4/main.c
parentb9db33145250dcbd571b4fed4e5ef762283401d5 (diff)
inline some very common putback/chrsave. Worth roughly 10%
Diffstat (limited to 'usr.bin/m4/main.c')
-rw-r--r--usr.bin/m4/main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/m4/main.c b/usr.bin/m4/main.c
index 363c9e38484..e6987b8bd50 100644
--- a/usr.bin/m4/main.c
+++ b/usr.bin/m4/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.47 2001/09/18 20:59:32 espie Exp $ */
+/* $OpenBSD: main.c,v 1.48 2001/09/19 13:14:18 espie Exp $ */
/* $NetBSD: main.c,v 1.12 1997/02/08 23:54:49 cgd Exp $ */
/*-
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.47 2001/09/18 20:59:32 espie Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.48 2001/09/19 13:14:18 espie Exp $";
#endif
#endif /* not lint */
@@ -394,7 +394,7 @@ macro()
if (sp < 0)
putc(l, active);
else
- chrsave(l);
+ CHRSAVE(l);
}
}
}
@@ -474,10 +474,10 @@ macro()
}
if (t == EOF)
break;
- chrsave(t);
+ CHRSAVE(t);
}
} else
- chrsave(t); /* stack the char */
+ CHRSAVE(t); /* stack the char */
break;
}
}
@@ -495,7 +495,7 @@ outputstr(s)
putc(*s++, active);
else
while (*s)
- chrsave(*s++);
+ CHRSAVE(*s++);
}
/*
@@ -517,7 +517,7 @@ inspect(c, tp)
while ((isalnum(c = gpbc()) || c == '_') && tp < etp)
h = (h << 5) + h + (*tp++ = c);
- putback(c);
+ PUTBACK(c);
*tp = EOS;
/* token is too long, it won't match anything, but it can still
* be output. */
@@ -527,7 +527,7 @@ inspect(c, tp)
if (sp < 0)
putc(c, active);
else
- chrsave(c);
+ CHRSAVE(c);
}
*name = EOS;
return nil;