dthelp: Remove always on macro M_NOPAR which was just there to support ancient compilers that don't have 'void'
This commit is contained in:
@@ -47,8 +47,6 @@ typedef wchar_t M_WCHAR;
|
||||
/* For function prototypes */
|
||||
typedef char * M_POINTER;
|
||||
|
||||
#define M_NOPAR void
|
||||
|
||||
char *MakeMByteString(const M_WCHAR *from);
|
||||
|
||||
M_WCHAR *MakeWideCharString(const char *from);
|
||||
|
||||
@@ -39,7 +39,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||
|
||||
void countdown(M_TRIE *parent, int *count);
|
||||
|
||||
void dumpdlmptr(M_NOPAR);
|
||||
void dumpdlmptr(void);
|
||||
|
||||
void dumpnode(LOGICAL *first, FILE *file, M_TRIE *trieptr, int *count, void (*proc));
|
||||
|
||||
@@ -53,17 +53,17 @@ void m_err1(char *text, char *arg);
|
||||
|
||||
void getcode(int n);
|
||||
|
||||
void getcolon(M_NOPAR);
|
||||
void getcolon(void);
|
||||
|
||||
int getContext(M_NOPAR);
|
||||
int getContext(void);
|
||||
|
||||
LOGICAL getdname(M_NOPAR);
|
||||
LOGICAL getdname(void);
|
||||
|
||||
void inccon(M_NOPAR);
|
||||
void inccon(void);
|
||||
|
||||
void incdelim(M_NOPAR);
|
||||
void incdelim(void);
|
||||
|
||||
void loaddelim(M_NOPAR);
|
||||
void loaddelim(void);
|
||||
|
||||
int m_lower(int c);
|
||||
|
||||
@@ -81,7 +81,7 @@ void prtctxt(int column, int value);
|
||||
|
||||
int readchar(LOGICAL cap);
|
||||
|
||||
void skiptoend(M_NOPAR);
|
||||
void skiptoend(void);
|
||||
|
||||
void unread(int c);
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||
#include "cont.h"
|
||||
|
||||
/* Output declaration of dlmptr */
|
||||
void dumpdlmptr(M_NOPAR)
|
||||
void dumpdlmptr(void)
|
||||
{
|
||||
int n;
|
||||
|
||||
@@ -216,7 +216,7 @@ while (TRUE)
|
||||
} /* End proc getcode() */
|
||||
|
||||
/* Read the colon separating the two states in a transition pair */
|
||||
void getcolon(M_NOPAR)
|
||||
void getcolon(void)
|
||||
{
|
||||
int c ; /* c is int instead of char for use with ungetc */
|
||||
M_WCHAR wcl;
|
||||
@@ -240,7 +240,7 @@ if (c != wcl)
|
||||
}
|
||||
|
||||
/* Read a context name from an input line */
|
||||
int getContext(M_NOPAR)
|
||||
int getContext(void)
|
||||
{
|
||||
M_WCHAR name[CNAMELEN + 1];
|
||||
int c ; /* c is int instead of char for use with ungetc */
|
||||
@@ -309,7 +309,7 @@ return(ccount - 1);
|
||||
}
|
||||
|
||||
/* Read a delimiter name from the input line */
|
||||
LOGICAL getdname(M_NOPAR)
|
||||
LOGICAL getdname(void)
|
||||
{
|
||||
int c;
|
||||
M_WCHAR *p;
|
||||
@@ -353,7 +353,7 @@ return(TRUE);
|
||||
}
|
||||
|
||||
/* Out of context space. Increase. */
|
||||
void inccon(M_NOPAR)
|
||||
void inccon(void)
|
||||
{
|
||||
M_TRIE **newtrie = NULL;
|
||||
int *newtransit = NULL;
|
||||
@@ -400,7 +400,7 @@ void inccon(M_NOPAR)
|
||||
}
|
||||
|
||||
/* Increase delimiter space. */
|
||||
void incdelim(M_NOPAR)
|
||||
void incdelim(void)
|
||||
{
|
||||
int *newtransit = NULL;
|
||||
char **newdlm = NULL;
|
||||
@@ -447,7 +447,7 @@ dcount++;
|
||||
}
|
||||
|
||||
/* Read delimiter definitions from delim.dat */
|
||||
void loaddelim(M_NOPAR)
|
||||
void loaddelim(void)
|
||||
{
|
||||
int c;
|
||||
M_WCHAR *p;
|
||||
@@ -653,7 +653,7 @@ return(c);
|
||||
|
||||
/* Called by utility procedure m_error() -- has content in other programs
|
||||
that use m_error() */
|
||||
void skiptoend(M_NOPAR)
|
||||
void skiptoend(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ void msgline(char *text);
|
||||
|
||||
void msg1line(char *text, char *arg1);
|
||||
|
||||
void skiptoend(M_NOPAR);
|
||||
void skiptoend(void);
|
||||
|
||||
void m_wctrace(M_WCHAR *text);
|
||||
|
||||
@@ -185,7 +185,7 @@ m_free(mb_arg5,"multi-byte string");
|
||||
}
|
||||
|
||||
/* Write error message suffix */
|
||||
void esuffix(M_NOPAR)
|
||||
void esuffix(void)
|
||||
{
|
||||
fprintf(stderr, " (line %d) ****\n", m_line) ;
|
||||
fprintf(m_errfile, " (line %d) ****\n", m_line) ;
|
||||
|
||||
@@ -29,9 +29,9 @@
|
||||
#include "common.h"
|
||||
extern char m_chartype[M_CHARSETLEN] ;
|
||||
|
||||
void m_initctype(M_NOPAR);
|
||||
void m_initctype(void);
|
||||
|
||||
void m_initctype(M_NOPAR)
|
||||
void m_initctype(void)
|
||||
{
|
||||
int i ;
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ void m_exit(int status);
|
||||
|
||||
void m_free(void *block, char *msg);
|
||||
|
||||
void m_heapdump(M_NOPAR);
|
||||
void m_heapdump(void);
|
||||
|
||||
void *m_malloc(int size, char *msg);
|
||||
|
||||
@@ -79,7 +79,7 @@ void m_free(void *block, char *msg)
|
||||
}
|
||||
|
||||
#if defined(MSDOS)
|
||||
void m_heapdump(M_NOPAR)
|
||||
void m_heapdump(void)
|
||||
{
|
||||
struct _heapinfo hinfo ;
|
||||
int heapstatus ;
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
extern FILE *ifile;
|
||||
|
||||
/* Getachar returns the next character from the input stream */
|
||||
int getachar(M_NOPAR)
|
||||
int getachar(void)
|
||||
{
|
||||
int c;
|
||||
M_WCHAR wc,wnl;
|
||||
|
||||
@@ -85,7 +85,7 @@ void m_entercharintrie(M_TRIE **currentnode, M_WCHAR c)
|
||||
} /* end entertree */
|
||||
|
||||
/* Gets a new node for a trie */
|
||||
M_TRIE *m_gettrienode(M_NOPAR)
|
||||
M_TRIE *m_gettrienode(void)
|
||||
{
|
||||
M_TRIE *new ;
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ struct m_ptrie {
|
||||
} ;
|
||||
|
||||
|
||||
M_TRIE *m_gettrienode(M_NOPAR);
|
||||
M_TRIE *m_gettrienode(void);
|
||||
|
||||
void *m_lookfortrie(const M_WCHAR *p, const M_TRIE *xtrie);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user