summaryrefslogtreecommitdiff
path: root/zwgc/xrevstack.c
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-01-21 03:11:44 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-01-21 03:11:44 +0000
commitb6ea75cfc9712b77a0886c4348d6fb519641e40e (patch)
tree65f68bb2db7c6118e80670cd5edc297159f43409 /zwgc/xrevstack.c
parent71f70d3066d1c038e1794c4ffe804591eda3d1af (diff)
de K&Rify, fix prototypes
Diffstat (limited to 'zwgc/xrevstack.c')
-rw-r--r--zwgc/xrevstack.c50
1 files changed, 26 insertions, 24 deletions
diff --git a/zwgc/xrevstack.c b/zwgc/xrevstack.c
index 1549956..2bd3f26 100644
--- a/zwgc/xrevstack.c
+++ b/zwgc/xrevstack.c
@@ -28,8 +28,8 @@ x_gram *bottom_gram = NULL;
x_gram *unlinked = NULL;
int reverse_stack = 0;
-void add_to_bottom(gram)
- x_gram *gram;
+void
+add_to_bottom(x_gram *gram)
{
if (bottom_gram) {
bottom_gram->below = gram;
@@ -44,17 +44,19 @@ void add_to_bottom(gram)
}
/*ARGSUSED*/
-void pull_to_top(gram)
- x_gram *gram;
-{}
+void
+pull_to_top(x_gram *gram)
+{
+}
/*ARGSUSED*/
-void push_to_bottom(gram)
- x_gram *gram;
-{}
+void
+push_to_bottom(x_gram *gram)
+{
+}
-void delete_gram(gram)
- x_gram *gram;
+void
+delete_gram(x_gram *gram)
{
if (gram == bottom_gram) {
if (gram->above) {
@@ -82,8 +84,8 @@ void delete_gram(gram)
gram->above = gram;
}
-void unlink_gram(gram)
- x_gram *gram;
+void
+unlink_gram(x_gram *gram)
{
delete_gram(gram);
@@ -111,8 +113,8 @@ x_gram *bottom_gram=NULL;
static x_gram *top_gram=NULL;
#ifdef DEBUG
-void print_gram_list(str)
-char *str;
+void
+print_gram_list(char *str)
{
x_gram *gram;
char buf[80];
@@ -135,8 +137,8 @@ char *str;
}
#endif
-void pull_to_top(gram)
-x_gram *gram;
+void
+pull_to_top(x_gram *gram)
{
if (gram==top_gram) {
/* already here */
@@ -166,8 +168,8 @@ x_gram *gram;
#endif
}
-void push_to_bottom(gram)
-x_gram *gram;
+void
+push_to_bottom(x_gram *gram)
{
if (gram==bottom_gram) {
/* already here */
@@ -199,8 +201,8 @@ x_gram *gram;
#endif
}
-void unlink_gram(gram)
-x_gram *gram;
+void
+unlink_gram(x_gram *gram)
{
if (top_gram==bottom_gram) {
/* the only gram in the stack */
@@ -222,8 +224,8 @@ x_gram *gram;
}
#ifdef notdef
-void add_to_top(gram)
-x_gram *gram;
+void
+add_to_top(x_gram *gram)
{
if (top_gram==NULL) {
gram->above=NULL;
@@ -242,8 +244,8 @@ x_gram *gram;
}
#endif
-void add_to_bottom(gram)
-x_gram *gram;
+void
+add_to_bottom(x_gram *gram)
{
if (bottom_gram==NULL) {
gram->above=NULL;