dthelp: Remove define M_PROTO that was always turned on (for all platforms) that enabled ANSI not K&R function prototypes

This commit is contained in:
Peter Howkins
2018-06-22 20:40:47 +01:00
parent de7e0dfcdd
commit 725b02e6bf
218 changed files with 2975 additions and 14075 deletions

View File

@@ -25,23 +25,11 @@
/* Entout has procedures to write generated entity TRIE */
void entptr(
#if defined(M_PROTO)
M_ENTITY *data
#endif
) ;
void entptr(M_ENTITY *data);
char *typetype(
#if defined(M_PROTO)
int n
#endif
) ;
char *typetype(int n);
char *typewhere(
#if defined(M_PROTO)
unsigned char n
#endif
) ;
char *typewhere(unsigned char n);
/* Macro names written to output file */
char xdbuild[] = "M_DBUILD" ;
@@ -212,12 +200,7 @@ char *typetype(n)
}
/* Typewhere returns a string indicating where the nth entity was defined.*/
#if defined(M_PROTO)
char *typewhere(unsigned char n)
#else
char *typewhere(n)
unsigned char n ;
#endif
{
switch(n) {
case M_DBUILD: return(xdbuild) ;