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:
@@ -62,7 +62,7 @@ if (*flag)
|
||||
}
|
||||
|
||||
/* Program initialization */
|
||||
void initialize(M_NOPAR)
|
||||
void initialize(void)
|
||||
{
|
||||
char **mb_delims;
|
||||
M_WCHAR **wc_delims;
|
||||
@@ -90,7 +90,7 @@ ruleinit() ;
|
||||
|
||||
|
||||
/* Initialization before starting a new rule */
|
||||
void ruleinit(M_NOPAR)
|
||||
void ruleinit(void)
|
||||
{
|
||||
/* Reinitialize for next rule */
|
||||
lhs = NULL ;
|
||||
@@ -110,7 +110,7 @@ void ruleinit(M_NOPAR)
|
||||
}
|
||||
|
||||
/* Rule end processing */
|
||||
void rulend(M_NOPAR)
|
||||
void rulend(void)
|
||||
{
|
||||
STATE *fsa = NULL ;
|
||||
LOGICAL canbenull ;
|
||||
@@ -150,7 +150,7 @@ void rulend(M_NOPAR)
|
||||
}
|
||||
|
||||
/* Skip rest of statement after an error */
|
||||
void skiptoend(M_NOPAR)
|
||||
void skiptoend(void)
|
||||
{
|
||||
int i ;
|
||||
static int errlev = 0 ;
|
||||
|
||||
@@ -32,7 +32,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||
#include "build.h"
|
||||
|
||||
/* Add an exception (inclusion or exclusion) for the current element */
|
||||
void addex(M_NOPAR)
|
||||
void addex(void)
|
||||
{
|
||||
excount++ ;
|
||||
*nextex = (EXCEPTION *) m_malloc(sizeof(EXCEPTION), "exception") ;
|
||||
|
||||
@@ -176,7 +176,7 @@ void dellist(list)
|
||||
|
||||
/* Delstartarcs deletes the contents of the starta list of arcs from start
|
||||
states of a submodel */
|
||||
void delstartarcs(M_NOPAR)
|
||||
void delstartarcs(void)
|
||||
{
|
||||
ARC *arcptr ;
|
||||
ARC *discard ;
|
||||
@@ -190,7 +190,7 @@ void delstartarcs(M_NOPAR)
|
||||
}
|
||||
|
||||
/* Getand allocates and initializes a new andgroup structure */
|
||||
ANDGROUP *getand(M_NOPAR)
|
||||
ANDGROUP *getand(void)
|
||||
{
|
||||
ANDGROUP *new ;
|
||||
|
||||
@@ -203,7 +203,7 @@ ANDGROUP *getand(M_NOPAR)
|
||||
}
|
||||
|
||||
/* Getstate obtains an FSA state */
|
||||
STATE *getstate(M_NOPAR)
|
||||
STATE *getstate(void)
|
||||
{
|
||||
STATE *new ;
|
||||
|
||||
@@ -477,7 +477,7 @@ LOGICAL permitspcd(a)
|
||||
|
||||
/* Pop pops the submodel stack when the end of the current submodel is
|
||||
encountered */
|
||||
void pop(M_NOPAR)
|
||||
void pop(void)
|
||||
{
|
||||
STACK *discard ;
|
||||
|
||||
@@ -493,7 +493,7 @@ void pop(M_NOPAR)
|
||||
}
|
||||
|
||||
/* Push pushes the submodel stack when a new group is encountered */
|
||||
void push(M_NOPAR)
|
||||
void push(void)
|
||||
{
|
||||
STACK *new ;
|
||||
|
||||
@@ -647,7 +647,7 @@ void savelhs(LOGICAL param)
|
||||
/* Called when arcs are added to the start state of a submodel that is
|
||||
also a start state of the parent model to set the parent model's
|
||||
starta list */
|
||||
void savestartarcs(M_NOPAR)
|
||||
void savestartarcs(void)
|
||||
{
|
||||
ARC *carcptr, *parcptr ;
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ char *deftype(n)
|
||||
}
|
||||
|
||||
/* Called after all input is read to generate output */
|
||||
void done(M_NOPAR)
|
||||
void done(void)
|
||||
{
|
||||
|
||||
if (! eltree.data) {
|
||||
@@ -167,7 +167,7 @@ void eltblocks(tempfile)
|
||||
|
||||
|
||||
/* Writes data about elements */
|
||||
void eltreeout(M_NOPAR)
|
||||
void eltreeout(void)
|
||||
{
|
||||
M_WCHAR *p ;
|
||||
int enameindex = 0 ;
|
||||
@@ -245,7 +245,7 @@ char *enttype(n)
|
||||
}
|
||||
|
||||
/* Outputs exception lists */
|
||||
void exout(M_NOPAR)
|
||||
void exout(void)
|
||||
{
|
||||
EXCEPTION *ex ;
|
||||
int exindex = 0 ;
|
||||
@@ -268,7 +268,7 @@ void exout(M_NOPAR)
|
||||
}
|
||||
|
||||
/* Outputs FSA definitions */
|
||||
void fsa(M_NOPAR)
|
||||
void fsa(void)
|
||||
{
|
||||
int arcount = 0 ;
|
||||
STATE *pstate ;
|
||||
@@ -331,7 +331,7 @@ void fsa(M_NOPAR)
|
||||
}
|
||||
|
||||
/* Writes data about parameters */
|
||||
void parout(M_NOPAR)
|
||||
void parout(void)
|
||||
{
|
||||
PARAMETER *paramp ;
|
||||
LOGICAL first = TRUE ;
|
||||
@@ -480,7 +480,7 @@ char *partype(n)
|
||||
}
|
||||
|
||||
/* Write short reference information */
|
||||
void srefout(M_NOPAR)
|
||||
void srefout(void)
|
||||
{
|
||||
LOGICAL first = TRUE ;
|
||||
int *mapbysref = NULL;
|
||||
@@ -633,7 +633,7 @@ fputs(" <END-STRING><\\END-STRING>\n", tempfile) ;
|
||||
}
|
||||
|
||||
/* Write template */
|
||||
void template(M_NOPAR)
|
||||
void template(void)
|
||||
{
|
||||
FILE *tempfile ;
|
||||
M_ENTITY *ent ;
|
||||
|
||||
@@ -38,7 +38,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||
/* Add a keyword to the list of possible values of a keyword parameter for
|
||||
the current element
|
||||
*/
|
||||
void addkeyword(M_NOPAR)
|
||||
void addkeyword(void)
|
||||
{
|
||||
int length ;
|
||||
PARAMETER *par ;
|
||||
@@ -87,7 +87,7 @@ ptypelen++ ;
|
||||
}
|
||||
|
||||
/* Add a parameter to the current element */
|
||||
void addpar(M_NOPAR)
|
||||
void addpar(void)
|
||||
{
|
||||
PARAMETER *paramp, *last = NULL ;
|
||||
int length ;
|
||||
@@ -263,7 +263,7 @@ switch (newpar->type)
|
||||
}
|
||||
|
||||
/* Called at end of parameter attribute list rule */
|
||||
void prulend(M_NOPAR)
|
||||
void prulend(void)
|
||||
{
|
||||
LHS *lhsp ;
|
||||
LHS *discard ;
|
||||
|
||||
@@ -35,15 +35,15 @@ void adddefent(M_WCHAR *mapname);
|
||||
|
||||
LOGICAL addent(M_WCHAR *name);
|
||||
|
||||
void addex(M_NOPAR);
|
||||
void addex(void);
|
||||
|
||||
void addkeyword(M_NOPAR);
|
||||
void addkeyword(void);
|
||||
|
||||
LOGICAL addmapname(M_WCHAR *p, LOGICAL define);
|
||||
|
||||
void addndent(M_WCHAR *p);
|
||||
|
||||
void addpar(M_NOPAR);
|
||||
void addpar(void);
|
||||
|
||||
void addsref(M_WCHAR *p);
|
||||
|
||||
@@ -62,15 +62,15 @@ void copyintolist(STATELIST *from, STATELIST **to);
|
||||
|
||||
void countdown(M_TRIE *parent, int *count);
|
||||
|
||||
void defmapname(M_NOPAR);
|
||||
void defmapname(void);
|
||||
|
||||
char *deftype(int n);
|
||||
|
||||
void dellist(STATELIST **list);
|
||||
|
||||
void delstartarcs(M_NOPAR);
|
||||
void delstartarcs(void);
|
||||
|
||||
void done(M_NOPAR);
|
||||
void done(void);
|
||||
|
||||
void dumpentnode(FILE *file, M_TRIE *value);
|
||||
|
||||
@@ -90,9 +90,9 @@ void m_dumptrie(FILE *file,
|
||||
|
||||
void eltblocks(FILE *tempfile);
|
||||
|
||||
void eltreeout(M_NOPAR);
|
||||
void eltreeout(void);
|
||||
|
||||
void endmodel(M_NOPAR);
|
||||
void endmodel(void);
|
||||
|
||||
void entout(char *fname);
|
||||
|
||||
@@ -106,7 +106,7 @@ void m_mberr1(char *text, const char *arg);
|
||||
|
||||
void m_err2(const char *text, const M_WCHAR *arg1, const M_WCHAR *arg2);
|
||||
|
||||
void exout(M_NOPAR);
|
||||
void exout(void);
|
||||
|
||||
void m_free(void *block, char *msg);
|
||||
|
||||
@@ -114,23 +114,23 @@ void freetree(TREE *ruletree);
|
||||
|
||||
void found(LOGICAL *flag, char *delim);
|
||||
|
||||
void fsa(M_NOPAR);
|
||||
void fsa(void);
|
||||
|
||||
int getachar(M_NOPAR);
|
||||
int getachar(void);
|
||||
|
||||
ANDGROUP *getand(M_NOPAR);
|
||||
ANDGROUP *getand(void);
|
||||
|
||||
LOGICAL getname(int first);
|
||||
|
||||
STATE *getstate(M_NOPAR);
|
||||
STATE *getstate(void);
|
||||
|
||||
int gettoken(int *c, int context);
|
||||
|
||||
TREE *gettreenode(M_NOPAR);
|
||||
TREE *gettreenode(void);
|
||||
|
||||
void m_initctype(M_NOPAR);
|
||||
void m_initctype(void);
|
||||
|
||||
void initialize(M_NOPAR);
|
||||
void initialize(void);
|
||||
|
||||
LOGICAL litproc(int delim);
|
||||
|
||||
@@ -160,49 +160,49 @@ ELTSTRUCT *ntrelt(M_WCHAR *p);
|
||||
|
||||
void m_openchk(FILE **ptr, char *name, char *mode);
|
||||
|
||||
void parout(M_NOPAR);
|
||||
void parout(void);
|
||||
|
||||
char *partype(int n);
|
||||
|
||||
LOGICAL permitspcd(ARC *a);
|
||||
|
||||
void pop(M_NOPAR);
|
||||
void pop(void);
|
||||
|
||||
void prulend(M_NOPAR);
|
||||
void prulend(void);
|
||||
|
||||
void push(M_NOPAR);
|
||||
void push(void);
|
||||
|
||||
LOGICAL regenerate(TREE *start, TREE *stop);
|
||||
|
||||
void repeat(TREE *root);
|
||||
|
||||
void ruleinit(M_NOPAR);
|
||||
void ruleinit(void);
|
||||
|
||||
void rulend(M_NOPAR);
|
||||
void rulend(void);
|
||||
|
||||
LOGICAL samelabelarc(ARC *a, STATE *s);
|
||||
|
||||
void savelhs(LOGICAL param);
|
||||
|
||||
void savestartarcs(M_NOPAR);
|
||||
void savestartarcs(void);
|
||||
|
||||
int scan(M_NOPAR);
|
||||
int scan(void);
|
||||
|
||||
void setdefault(const M_WCHAR *string);
|
||||
|
||||
void simplebranch(TREE *root, ELTSTRUCT *value, ANDGROUP *group, int optional);
|
||||
|
||||
void skiptoend(M_NOPAR);
|
||||
void skiptoend(void);
|
||||
|
||||
int m_sprscon(int i, int j);
|
||||
|
||||
void srefout(M_NOPAR);
|
||||
void srefout(void);
|
||||
|
||||
STATE *startfsa(TREE *root, LOGICAL *canbenull);
|
||||
|
||||
void tempelt(ELTSTRUCT *eltp, FILE *tempfile);
|
||||
|
||||
void template(M_NOPAR);
|
||||
void template(void);
|
||||
|
||||
char *typecon(int n);
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ return(TRUE);
|
||||
}
|
||||
|
||||
/* Returns the next token to the main procedure */
|
||||
int scan(M_NOPAR)
|
||||
int scan(void)
|
||||
{
|
||||
int c;
|
||||
int n;
|
||||
|
||||
@@ -192,7 +192,7 @@ delim->data = thissref;
|
||||
|
||||
/* Prefix left-hand side with "M-" to create default short reference map
|
||||
name, truncating to M_NAMELEN characters if necessary */
|
||||
void defmapname(M_NOPAR)
|
||||
void defmapname(void)
|
||||
{
|
||||
if (!wc_prefix)
|
||||
{
|
||||
|
||||
@@ -36,7 +36,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||
|
||||
/* Called after a right parenthesis is read while scanning a content model.
|
||||
Resets curcon if it is the outermost submodel. */
|
||||
void endmodel(M_NOPAR)
|
||||
void endmodel(void)
|
||||
{
|
||||
curtree = curtree->parent ;
|
||||
if (! curtree->parent) curcon = LASTM ;
|
||||
@@ -58,7 +58,7 @@ void freetree(treep)
|
||||
}
|
||||
|
||||
/* Gettreenode obtains a node to use in the tree representation of a rule */
|
||||
TREE *gettreenode(M_NOPAR)
|
||||
TREE *gettreenode(void)
|
||||
{
|
||||
TREE *new ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user