comparison proto.h @ 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 4410c9c7750d
children 0990d9322fc8
comparison
equal deleted inserted replaced
1:cfcae2ef1c2b 2:ec2f8f6f1dc9
29 * Finland 29 * Finland
30 \*/ 30 \*/
31 31
32 #include "structures.h" 32 #include "structures.h"
33 33
34 #ifdef __STDC__
35 #define PROTO(x) x
36 #else
37 #define PROTO(x) ()
38 #endif
39
40 /* scan.c */ 34 /* scan.c */
41 35
42 int ScanSpecified PROTO((void)); /* scan all "sure" routines */ 36 int ScanSpecified(void); /* scan all "sure" routines */
43 void ScanPotentials PROTO((void)); /* scan the "potential" routines */ 37 void ScanPotentials(void); /* scan the "potential" routines */
44 void ScanTheRest PROTO((void)); /* scan unprocessed memory places 38 void ScanTheRest(void); /* scan unprocessed memory places
45 for routines */ 39 for routines */
46 40
47 /* table.c */ 41 /* table.c */
48 42
49 table *FindNextEntryType PROTO((table *entry, unsigned char andmask, 43 table *FindNextEntryType(table *entry, unsigned char andmask,
50 unsigned char eormask)); 44 unsigned char eormask);
51 table *FindNextEntryTypeParent PROTO((table *entry, ADDR_T parent, 45 table *FindNextEntryTypeParent(table *entry, ADDR_T parent,
52 unsigned char andmask, 46 unsigned char andmask,
53 unsigned char eormask)); 47 unsigned char eormask);
54 table *FindNextEntry PROTO((table *entry, ADDR_T address, 48 table *FindNextEntry(table *entry, ADDR_T address,
55 unsigned char andmask, unsigned char eormask)); 49 unsigned char andmask, unsigned char eormask);
56 void AddEntry PROTO((ADDR_T address, ADDR_T parent, unsigned char type)); 50 void AddEntry(ADDR_T address, ADDR_T parent, unsigned char type);
57 void DeleteEntry PROTO((table *entry)); 51 void DeleteEntry(table *entry);
58 52
59 /* label.c */ 53 /* label.c */
60 54
61 void AddLabel PROTO((ADDR_T address, char *name)); 55 void AddLabel(ADDR_T address, char *name);
62 char *Label PROTO((ADDR_T address, int admode)); 56 char *Label(ADDR_T address, int admode);
63 void Collect PROTO((void)); /* garbage collection */ 57 void Collect(void); /* garbage collection */
64 58
65 /* vector.c */ 59 /* vector.c */
66 60
67 void SearchVectors PROTO((void)); 61 void SearchVectors(void);
68 ADDR_T WordTableEnd PROTO((ADDR_T Start)); 62 ADDR_T WordTableEnd(ADDR_T Start);
69 63
70 /* dump.c */ 64 /* dump.c */
71 65
72 void Dump PROTO((void)); /* dump the program */ 66 void Dump(void); /* dump the program */