Mercurial > hg > forks > dxa
diff label.c @ 2:ec2f8f6f1dc9
Cleanup pass #1: Get rid of some ancient K&R-isms.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 24 Feb 2015 20:28:57 +0200 |
parents | cfcae2ef1c2b |
children | 0990d9322fc8 |
line wrap: on
line diff
--- a/label.c Tue Feb 24 18:54:50 2015 +0200 +++ b/label.c Tue Feb 24 20:28:57 2015 +0200 @@ -43,14 +43,8 @@ char defaultlabel[6]; unsigned numLabels = 0; -#ifndef __STDC__ -void -AddLabel (address, name) - ADDR_T address; - char *name; -#else + void AddLabel (ADDR_T address, char *name) -#endif { label *entry; char *buffer; @@ -72,14 +66,8 @@ while ((*buffer++ = *name++)); } -#ifndef __STDC__ -char * -Label (address, admode) - ADDR_T address; - int admode; -#else + char *Label (ADDR_T address, int admode) -#endif { label *entry; @@ -103,12 +91,8 @@ return defaultlabel; } -#ifndef __STDC__ -void -Collect () -#else + void Collect (void) -#endif { unsigned counter = 0; table *entry = NULL, *entry2;