dthelp: Remove always on macro M_NOPAR which was just there to support ancient compil...
authorPeter Howkins <flibble@users.sf.net>
Fri, 22 Jun 2018 23:48:36 +0000 (00:48 +0100)
committerPeter Howkins <flibble@users.sf.net>
Fri, 22 Jun 2018 23:48:36 +0000 (00:48 +0100)
173 files changed:
cde/programs/dthelp/parser.ccdf/htag/build/buildutl.c
cde/programs/dthelp/parser.ccdf/htag/build/except.c
cde/programs/dthelp/parser.ccdf/htag/build/fsa.c
cde/programs/dthelp/parser.ccdf/htag/build/out.c
cde/programs/dthelp/parser.ccdf/htag/build/param.c
cde/programs/dthelp/parser.ccdf/htag/build/proto.h
cde/programs/dthelp/parser.ccdf/htag/build/scan.c
cde/programs/dthelp/parser.ccdf/htag/build/sref.c
cde/programs/dthelp/parser.ccdf/htag/build/tree.c
cde/programs/dthelp/parser.ccdf/htag/eltdef/context.dat
cde/programs/dthelp/parser.ccdf/htag/eltdef/eltdef.h
cde/programs/dthelp/parser.ccdf/htag/eltdef/eltutil.c
cde/programs/dthelp/parser.ccdf/htag/eltdef/entity.c
cde/programs/dthelp/parser.ccdf/htag/eltdef/proto.h
cde/programs/dthelp/parser.ccdf/htag/eltdef/scan.c
cde/programs/dthelp/parser.ccdf/htag/helptag/custom.c
cde/programs/dthelp/parser.ccdf/htag/helptag/fproto.h
cde/programs/dthelp/parser.ccdf/htag/helptag/help.c
cde/programs/dthelp/parser.ccdf/htag/helptag/out.c
cde/programs/dthelp/parser.ccdf/htag/helptag/xref.c
cde/programs/dthelp/parser.ccdf/htag/parser/actutil.c
cde/programs/dthelp/parser.ccdf/htag/parser/eprefix.c
cde/programs/dthelp/parser.ccdf/htag/parser/error.c
cde/programs/dthelp/parser.ccdf/htag/parser/esuffix.c
cde/programs/dthelp/parser.ccdf/htag/parser/getsign.c
cde/programs/dthelp/parser.ccdf/htag/parser/input.c
cde/programs/dthelp/parser.ccdf/htag/parser/minim.c
cde/programs/dthelp/parser.ccdf/htag/parser/openfrst.c
cde/programs/dthelp/parser.ccdf/htag/parser/param.c
cde/programs/dthelp/parser.ccdf/htag/parser/parutil.c
cde/programs/dthelp/parser.ccdf/htag/parser/proto.h
cde/programs/dthelp/parser.ccdf/htag/parser/scan.c
cde/programs/dthelp/parser.ccdf/htag/parser/setopt.c
cde/programs/dthelp/parser.ccdf/htag/parser/startdoc.c
cde/programs/dthelp/parser.ccdf/htag/parser/struct.c
cde/programs/dthelp/parser.ccdf/htag/util/basic.h
cde/programs/dthelp/parser.ccdf/htag/util/cont.h
cde/programs/dthelp/parser.ccdf/htag/util/conutil.c
cde/programs/dthelp/parser.ccdf/htag/util/error.c
cde/programs/dthelp/parser.ccdf/htag/util/initct.c
cde/programs/dthelp/parser.ccdf/htag/util/malloc.c
cde/programs/dthelp/parser.ccdf/htag/util/scanutil.c
cde/programs/dthelp/parser.ccdf/htag/util/trie.c
cde/programs/dthelp/parser.ccdf/htag/util/trie.h
cde/programs/dthelp/parser/canon1/build/buildutl.c
cde/programs/dthelp/parser/canon1/build/except.c
cde/programs/dthelp/parser/canon1/build/fsa.c
cde/programs/dthelp/parser/canon1/build/out.c
cde/programs/dthelp/parser/canon1/build/param.c
cde/programs/dthelp/parser/canon1/build/proto.h
cde/programs/dthelp/parser/canon1/build/scan.c
cde/programs/dthelp/parser/canon1/build/sref.c
cde/programs/dthelp/parser/canon1/build/tree.c
cde/programs/dthelp/parser/canon1/eltdef/context.dat
cde/programs/dthelp/parser/canon1/eltdef/eltdef.h
cde/programs/dthelp/parser/canon1/eltdef/eltutil.c
cde/programs/dthelp/parser/canon1/eltdef/entity.c
cde/programs/dthelp/parser/canon1/eltdef/proto.h
cde/programs/dthelp/parser/canon1/eltdef/scan.c
cde/programs/dthelp/parser/canon1/helptag/custom.c
cde/programs/dthelp/parser/canon1/helptag/fproto.h
cde/programs/dthelp/parser/canon1/helptag/help.c
cde/programs/dthelp/parser/canon1/helptag/out.c
cde/programs/dthelp/parser/canon1/helptag/xref.c
cde/programs/dthelp/parser/canon1/parser/actutil.c
cde/programs/dthelp/parser/canon1/parser/eprefix.c
cde/programs/dthelp/parser/canon1/parser/error.c
cde/programs/dthelp/parser/canon1/parser/esuffix.c
cde/programs/dthelp/parser/canon1/parser/getsign.c
cde/programs/dthelp/parser/canon1/parser/input.c
cde/programs/dthelp/parser/canon1/parser/minim.c
cde/programs/dthelp/parser/canon1/parser/openfrst.c
cde/programs/dthelp/parser/canon1/parser/param.c
cde/programs/dthelp/parser/canon1/parser/parutil.c
cde/programs/dthelp/parser/canon1/parser/proto.h
cde/programs/dthelp/parser/canon1/parser/scan.c
cde/programs/dthelp/parser/canon1/parser/setopt.c
cde/programs/dthelp/parser/canon1/parser/startdoc.c
cde/programs/dthelp/parser/canon1/parser/struct.c
cde/programs/dthelp/parser/canon1/util/basic.h
cde/programs/dthelp/parser/canon1/util/cont.h
cde/programs/dthelp/parser/canon1/util/conutil.c
cde/programs/dthelp/parser/canon1/util/error.c
cde/programs/dthelp/parser/canon1/util/initct.c
cde/programs/dthelp/parser/canon1/util/malloc.c
cde/programs/dthelp/parser/canon1/util/scanutil.c
cde/programs/dthelp/parser/canon1/util/trie.c
cde/programs/dthelp/parser/canon1/util/trie.h
cde/programs/dthelp/parser/pass1/build/buildutl.c
cde/programs/dthelp/parser/pass1/build/except.c
cde/programs/dthelp/parser/pass1/build/fsa.c
cde/programs/dthelp/parser/pass1/build/out.c
cde/programs/dthelp/parser/pass1/build/param.c
cde/programs/dthelp/parser/pass1/build/proto.h
cde/programs/dthelp/parser/pass1/build/scan.c
cde/programs/dthelp/parser/pass1/build/sref.c
cde/programs/dthelp/parser/pass1/build/tree.c
cde/programs/dthelp/parser/pass1/eltdef/context.dat
cde/programs/dthelp/parser/pass1/eltdef/eltdef.h
cde/programs/dthelp/parser/pass1/eltdef/eltutil.c
cde/programs/dthelp/parser/pass1/eltdef/entity.c
cde/programs/dthelp/parser/pass1/eltdef/proto.h
cde/programs/dthelp/parser/pass1/eltdef/scan.c
cde/programs/dthelp/parser/pass1/helptag/custom.c
cde/programs/dthelp/parser/pass1/helptag/fproto.h
cde/programs/dthelp/parser/pass1/helptag/help.c
cde/programs/dthelp/parser/pass1/helptag/out.c
cde/programs/dthelp/parser/pass1/helptag/xref.c
cde/programs/dthelp/parser/pass1/parser/actutil.c
cde/programs/dthelp/parser/pass1/parser/eprefix.c
cde/programs/dthelp/parser/pass1/parser/error.c
cde/programs/dthelp/parser/pass1/parser/esuffix.c
cde/programs/dthelp/parser/pass1/parser/getsign.c
cde/programs/dthelp/parser/pass1/parser/input.c
cde/programs/dthelp/parser/pass1/parser/minim.c
cde/programs/dthelp/parser/pass1/parser/openfrst.c
cde/programs/dthelp/parser/pass1/parser/param.c
cde/programs/dthelp/parser/pass1/parser/parutil.c
cde/programs/dthelp/parser/pass1/parser/proto.h
cde/programs/dthelp/parser/pass1/parser/scan.c
cde/programs/dthelp/parser/pass1/parser/setopt.c
cde/programs/dthelp/parser/pass1/parser/startdoc.c
cde/programs/dthelp/parser/pass1/parser/struct.c
cde/programs/dthelp/parser/pass1/util/basic.h
cde/programs/dthelp/parser/pass1/util/cont.h
cde/programs/dthelp/parser/pass1/util/conutil.c
cde/programs/dthelp/parser/pass1/util/error.c
cde/programs/dthelp/parser/pass1/util/initct.c
cde/programs/dthelp/parser/pass1/util/malloc.c
cde/programs/dthelp/parser/pass1/util/scanutil.c
cde/programs/dthelp/parser/pass1/util/trie.c
cde/programs/dthelp/parser/pass1/util/trie.h
cde/programs/dthelp/parser/pass2/build/buildutl.c
cde/programs/dthelp/parser/pass2/build/except.c
cde/programs/dthelp/parser/pass2/build/fsa.c
cde/programs/dthelp/parser/pass2/build/out.c
cde/programs/dthelp/parser/pass2/build/param.c
cde/programs/dthelp/parser/pass2/build/proto.h
cde/programs/dthelp/parser/pass2/build/scan.c
cde/programs/dthelp/parser/pass2/build/sref.c
cde/programs/dthelp/parser/pass2/build/tree.c
cde/programs/dthelp/parser/pass2/eltdef/context.dat
cde/programs/dthelp/parser/pass2/eltdef/eltdef.h
cde/programs/dthelp/parser/pass2/eltdef/eltutil.c
cde/programs/dthelp/parser/pass2/eltdef/entity.c
cde/programs/dthelp/parser/pass2/eltdef/proto.h
cde/programs/dthelp/parser/pass2/eltdef/scan.c
cde/programs/dthelp/parser/pass2/htag2/custom.c
cde/programs/dthelp/parser/pass2/htag2/fproto.h
cde/programs/dthelp/parser/pass2/parser/actutil.c
cde/programs/dthelp/parser/pass2/parser/eprefix.c
cde/programs/dthelp/parser/pass2/parser/error.c
cde/programs/dthelp/parser/pass2/parser/esuffix.c
cde/programs/dthelp/parser/pass2/parser/getsign.c
cde/programs/dthelp/parser/pass2/parser/input.c
cde/programs/dthelp/parser/pass2/parser/minim.c
cde/programs/dthelp/parser/pass2/parser/openfrst.c
cde/programs/dthelp/parser/pass2/parser/param.c
cde/programs/dthelp/parser/pass2/parser/parutil.c
cde/programs/dthelp/parser/pass2/parser/proto.h
cde/programs/dthelp/parser/pass2/parser/scan.c
cde/programs/dthelp/parser/pass2/parser/setopt.c
cde/programs/dthelp/parser/pass2/parser/startdoc.c
cde/programs/dthelp/parser/pass2/parser/struct.c
cde/programs/dthelp/parser/pass2/util/basic.h
cde/programs/dthelp/parser/pass2/util/cont.h
cde/programs/dthelp/parser/pass2/util/conutil.c
cde/programs/dthelp/parser/pass2/util/error.c
cde/programs/dthelp/parser/pass2/util/initct.c
cde/programs/dthelp/parser/pass2/util/malloc.c
cde/programs/dthelp/parser/pass2/util/scanutil.c
cde/programs/dthelp/parser/pass2/util/trie.c
cde/programs/dthelp/parser/pass2/util/trie.h

index 5ceb2601cab42729fefa928fd8087afa02b8c55e..7ba1b45e8ad67692ef98610f2e8fac8f02188cb3 100644 (file)
@@ -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 ;
     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 errlev = 0 ;
index 035f330679cafae7c71698c0fcd047bb81e7646d..48437cc12e5549114e7da488ec1c04551f59287d 100644 (file)
@@ -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") ;
index 42488ace04b1217ace38ca8de06f71e74409a6ed..e89448a014c3f6a07874bbd4f38b83d41f880321 100644 (file)
@@ -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 ;
 
index 47d65f5ca7a29b962608581ef7870a609114bd34..e2503cea07f2ec560087ff53178c4af52e14f20d 100644 (file)
@@ -86,7 +86,7 @@ char *deftype(n)
     }
 
 /* Called after all input is read to generate output */
-void done(M_NOPAR)
+void done(void)
   {
 
     if (! eltree.data) {
@@ -166,7 +166,7 @@ void eltblocks(tempfile)
 
 
 /* Writes data about elements */
-void eltreeout(M_NOPAR)
+void eltreeout(void)
   {
     M_WCHAR *p ;
     int enameindex = 0 ;
@@ -244,7 +244,7 @@ char *enttype(n)
     }
 
 /* Outputs exception lists */
-void exout(M_NOPAR)
+void exout(void)
   {
     EXCEPTION *ex ;
     int exindex = 0 ;
@@ -267,7 +267,7 @@ void exout(M_NOPAR)
     }
 
 /* Outputs FSA definitions */
-void fsa(M_NOPAR)
+void fsa(void)
   {
     int arcount = 0 ;
     STATE *pstate ;
@@ -330,7 +330,7 @@ void fsa(M_NOPAR)
     }
 
 /* Writes data about parameters */
-void parout(M_NOPAR)
+void parout(void)
 {
 PARAMETER *paramp ;
 LOGICAL first = TRUE ;
@@ -479,7 +479,7 @@ char *partype(n)
     }
 
 /* Write short reference information */
-void srefout(M_NOPAR)
+void srefout(void)
   {
     LOGICAL first = TRUE ;
     int *mapbysref ;
@@ -626,7 +626,7 @@ fputs("  <END-STRING><\\END-STRING>\n", tempfile) ;
 }
 
 /* Write template */
-void template(M_NOPAR)
+void template(void)
   {
     FILE *tempfile ;
     M_ENTITY *ent ;
index 4d6d9a8e52b296ed4917ebfc22e6e187b3ee604b..2fb2d549df82803c4b7cbb81f0ee403fd3caa542 100644 (file)
@@ -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 ;
 int length ;
@@ -259,7 +259,7 @@ switch (newpar->type)
 }
 
 /* Called at end of parameter attribute list rule */
-void prulend(M_NOPAR)
+void prulend(void)
 {
 LHS *lhsp ;
 LHS *discard ;
index 2297a7224fbd2f7b7827a0d47cebcec97aa40298..a8b7c96c27fac07a05b3943b92bdf4097b468547 100644 (file)
@@ -36,15 +36,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);
 
@@ -63,15 +63,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);
 
@@ -91,9 +91,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);
 
@@ -107,7 +107,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);
 
@@ -115,23 +115,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);
 
@@ -161,49 +161,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);
 
index d13b6fe57dd60b18dcae7fc601227e6e25a01a42..df96b1370f0f51eeb8c48a3a3a737ec732133f2a 100644 (file)
@@ -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;
index c31ced7bf8e7fded4c6173676b03bc99899fd7c6..bcfac4565b861a23d3c2e480ebac935a0d844259 100644 (file)
@@ -191,7 +191,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)
     {
index 9dcdc172c42df38433dba1727369d6b044f1b194..052c70299f10e2b1d6165c6598c5f5df40cb3f69 100644 (file)
@@ -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 ;
 
index 0d2f2bf5d8376890eb35121d4d41ef611fee955f..f0d4fdb2ab0b16366b675609627a9865d12e8676 100644 (file)
@@ -398,7 +398,7 @@ tagc
   postent:start
   codetagc:inentc {
             startcode(entity->codeindex, &inent, entfile,
-                      "c", nopar, nopar, "") ;
+                      "c", "void", "void", "") ;
             }
   close:preparam
   sschain:inss {
@@ -420,11 +420,11 @@ tagc
             }
   scchain:insc {
             *getaction(scarray) = ++sactions ;
-            startcode(sactions, &insc, sfile, "s", nopar, nopar, "") ;
+            startcode(sactions, &insc, sfile, "s", "void", "void", "") ;
             }
   ecchain:inec {
             *getaction(ecarray) = ++eactions ;
-            startcode(eactions, &inec, efile, "e", nopar, nopar, "") ;
+            startcode(eactions, &inec, efile, "e", "void", "void", "") ;
             }
   stcchain:instc {
             *getaction(stcarray) = ++stactions ;
index 4edb7d4bcbf09e06ce913f291627e77ad560d854..17921b2d38901c62e6d48840535d3c192bb32c0f 100644 (file)
@@ -215,7 +215,6 @@ ELTEXTERN int restart ELTINIT(RENTITY) ;
 #define stproto "M_WCHAR *m_string, LOGICAL M_START, LOGICAL M_END"
 #define stformal "m_string, M_START, M_END"
 #define stft "  M_WCHAR *m_string ;\n  LOGICAL M_START ;\n  LOGICAL M_END ;\n"
-#define nopar "M_NOPAR"
 
 /* Structures for generating defines for parameter values */
 ELTEXTERN M_TRIE parval ;
index 4ae71e5afd25614c0cfd52e5e8b7e66d571131c1..d5684d9848f4ba327a927d42bf4975b8a58f85d0 100644 (file)
@@ -92,7 +92,7 @@ void closeiffile(LOGICAL flag, FILE *file, int count, char *table, char *proto)
 
 /* Called when the C identifier to be #define'd to a parameter value is
    scanned */
-void cvalue(M_NOPAR)
+void cvalue(void)
   {
     PARVAL *new;
 
@@ -111,18 +111,18 @@ void cvalue(M_NOPAR)
 
 /* Called after last input character is read to place closing punctuation
    at end of output files and close them */
-void done(M_NOPAR)
+void done(void)
   {
     M_ENTITY *ent;
     ACTION *actp;
     LOGICAL first;
     int i;
 
-    closeiffile(inent, entfile, codeent, "c", nopar);
+    closeiffile(inent, entfile, codeent, "c", "void");
     closeiffile(intext, tfile, tactions, "t", tproto);
     closeiffile(inpc, pfile, pactions, "p", pproto);
-    closeiffile(insc, sfile, sactions, "s", nopar);
-    closeiffile(inec, efile, eactions, "e", nopar);
+    closeiffile(insc, sfile, sactions, "s", "void");
+    closeiffile(inec, efile, eactions, "e", "void");
     closeiffile(instc, stfile, stactions, "st", stproto);
 
     endstring();
@@ -190,7 +190,7 @@ void endcode(LOGICAL flag, FILE *file)
     }
 
 /* Called at the end of all initial fields in the interface definition */
-void endini(M_NOPAR)
+void endini(void)
   {
     if (finitext) 
       fputs("    putc(m_textchar, m_outfile);\n", tfile);
@@ -209,7 +209,7 @@ void endini(M_NOPAR)
 
 /* End the sign-on message */
 #include <time.h>
-void endsignon(M_NOPAR)
+void endsignon(void)
   {
     long storetime;
     char *p;
@@ -255,7 +255,7 @@ void endsignon(M_NOPAR)
     }
 
 /* Closes a start-string or end-string */
-void endstring(M_NOPAR)
+void endstring(void)
   {
     if (instring) {
       if (stringstart) stringstart = FALSE;
@@ -282,7 +282,7 @@ void enttype(type)
     }
 
 /* Free storage used for a context-specification chain */
-void freechain(M_NOPAR)
+void freechain(void)
   {
     CHAIN *chainp, *dchainp;
 
@@ -333,7 +333,7 @@ int *getaction(array)
     }
 
 /* Allocate new action structure */
-ACTION *getactstruct(M_NOPAR)
+ACTION *getactstruct(void)
   {
     ACTION *new;
 
@@ -347,7 +347,7 @@ ACTION *getactstruct(M_NOPAR)
     }
 
 /* Program initialization */
-void initialize(M_NOPAR)
+void initialize(void)
 {
 char    **mb_delims;
 M_WCHAR **wc_delims;
@@ -411,13 +411,13 @@ fputs("#endif\n", ifh);
 
 startcode(pactions, &inpc, pfile, "p", pproto, pformal, pftype);
 startcode(tactions, &intext, tfile, "t", tproto, tformal, tftype);
-startcode(sactions, &insc, sfile, "s", nopar, nopar, "");
-startcode(eactions, &inec, efile, "e", nopar, nopar, "");
+startcode(sactions, &insc, sfile, "s", "void", "void", "");
+startcode(eactions, &inec, efile, "e", "void", "void", "");
 startcode(stactions, &instc, stfile, "st", stproto, stformal, stft);
 }
 
 /* Output definitions for strings */
-void outstring(M_NOPAR)
+void outstring(void)
   {
     int c;
 
@@ -480,7 +480,7 @@ for ( ; p ; p = p->next)
 }
 
 /* Skip rest of statement after an error */
-void skiptoend(M_NOPAR)
+void skiptoend(void)
   {
     int i;
     static errlev = 0;
@@ -581,7 +581,7 @@ fprintf(file, "{\n/* line %d \"%s\" */\n", m_line, iffile); /* balance "}" */
 }
 
 /* Begins processing a new element */
-void startelement(M_NOPAR)
+void startelement(void)
   {
     CVARSTRUCT *cvarp;
     CVARSTRUCT *discard;
@@ -602,7 +602,7 @@ void startelement(M_NOPAR)
     }
 
 /* Stores the name of a C variable read from the input file */
-void storecvar(M_NOPAR)
+void storecvar(void)
   {
     CVARSTRUCT *new;
 
@@ -617,7 +617,7 @@ void storecvar(M_NOPAR)
 /* Compares the parameter name associated with a C variable in the input
    file with the names of all parameters of the current element.  Stores
    result for later output with code segments */
-void storepname(M_NOPAR)
+void storepname(void)
   {
     int i, par;
 
index 1b3857f96ec02ec033a91f05c9f594023f15fcc6..ca391efe8ab842ebd650c659a327105e12e0db1f 100644 (file)
@@ -35,7 +35,7 @@
 #include "entext.h"
 
 /* Add an entity */
-void addent(M_NOPAR)
+void addent(void)
   {
     M_ENTITY *new ;
 
index ba94579ae3caeacfa1125ee50d6273bf1d0ba813..1a42c193439b122dcc23f7a5be781b43e17f9199 100644 (file)
@@ -30,7 +30,7 @@
 
 void actptrout(ACTION **array, char *name);
 
-void addent(M_NOPAR);
+void addent(void);
 
 LOGICAL m_allwhite(const M_WCHAR *string);
 
@@ -38,19 +38,19 @@ void closeiffile(LOGICAL flag, FILE *file, int count, char *table, char *proto);
 
 void countdown(M_TRIE *parent, int *count);
 
-void cvalue(M_NOPAR);
+void cvalue(void);
 
-void done(M_NOPAR);
+void done(void);
 
 void m_dumptrie(FILE *file, M_TRIE *xtrie, char *extname, int *count, void (*proc)(M_ENTITY *));
 
 void endcode(LOGICAL flag, FILE *file);
 
-void endini(M_NOPAR);
+void endini(void);
 
-void endsignon(M_NOPAR);
+void endsignon(void);
 
-void endstring(M_NOPAR);
+void endstring(void);
 
 void entout(char *fname);
 
@@ -72,21 +72,21 @@ void m_exit(int status);
 
 void m_free(void *block, char *msg);
 
-void freechain(M_NOPAR);
+void freechain(void);
 
-int getachar(M_NOPAR);
+int getachar(void);
 
 int *getaction(ACTION **array);
 
-ACTION *getactstruct(M_NOPAR);
+ACTION *getactstruct(void);
 
 void getname(int first);
 
 int gettoken(int *c, int context);
 
-void m_initctype(M_NOPAR);
+void m_initctype(void);
 
-void initialize(M_NOPAR);
+void initialize(void);
 
 LOGICAL m_letter(M_WCHAR c);
 
@@ -100,24 +100,24 @@ void m_openchk(FILE **ptr, char *name, char *mode);
 
 void outpval(M_TRIE *p);
 
-void outstring(M_NOPAR);
+void outstring(void);
 
 int m_packedlook(M_PTRIE *xptrie, M_WCHAR *name);
 
 const M_WCHAR *m_partype(const int par, const M_WCHAR *string);
 
-int scan(M_NOPAR);
+int scan(void);
 
-void skiptoend(M_NOPAR);
+void skiptoend(void);
 
 void startcode(int caseno, LOGICAL *flag, FILE *file, char *prefix, char *proto,
   char *formal, char *formtype);
 
-void startelement(M_NOPAR);
+void startelement(void);
 
-void storecvar(M_NOPAR);
+void storecvar(void);
 
-void storepname(M_NOPAR);
+void storepname(void);
 
 void undodelim(M_WCHAR *delim);
 
index 43c22160cf151d6c1727905c08f1014c42b91d2f..654986ba93d4a67c539ca77d91bf177cfe922b7d 100644 (file)
@@ -85,7 +85,7 @@ ungetachar(c);
 }
 
 /* Reads the next token and returns it to the main procedure */
-int scan(M_NOPAR)
+int scan(void)
 {
 int c;
 int n;
index 4003d649ade592e23b83d9c3b5b670a14c9fc4e9..8c992f71a5695368e9f199a4a3c5c8822c3f1149 100644 (file)
@@ -37,7 +37,7 @@ Copyright (c) 1988, 1989 Hewlett-Packard Co.
 /* Standard startup code doesn't have room to load inherited environments
    in some cases.  Since they're not used, don't bother.  (Using Microsoft
    C compiler).  */
-void _setenvp(M_NOPAR);
+void _setenvp(void);
 void _setenvp(){}
 #endif
 
@@ -72,7 +72,7 @@ else
 }
 
 /* Write error message prefix */
-void m_eprefix(M_NOPAR)
+void m_eprefix(void)
 {
 m_errline("\n*****\n");
 m_dumpline(m_thisfile(), m_thisline());
@@ -96,7 +96,7 @@ for ( ; *p ; p++)
 #include <process.h>
 #endif
 /* Write error message suffix */
-void m_esuffix(M_NOPAR)
+void m_esuffix(void)
 {
 m_errline(":\n");
 m_lastchars();
@@ -245,7 +245,7 @@ return(NULL);
 }
 
 /* Open input file */
-void *m_openfirst(M_NOPAR)
+void *m_openfirst(void)
 {
 FILE *first;
 char *input;
index a44475b39706cf2c1af6654ae6f27cee108f8316..0ca272a26361230091dd912cd49dd1ea857c2ea3 100644 (file)
 
 void appstart(M_WCHAR *id, M_WCHAR *letter);
 
-void assert_hometopic_exists(M_NOPAR);
+void assert_hometopic_exists(void);
 
 void badgraphic(int filestat);
 
-void basename(M_NOPAR);
+void basename(void);
 
 void calcdisp (M_WCHAR *file, M_WCHAR *startrow, M_WCHAR *endrow,
   M_WCHAR *clip, M_WCHAR *margin);
 
-void callndbeg (M_NOPAR);
+void callndbeg (void);
 
-void callndend (M_NOPAR);
+void callndend (void);
 
 /* used by ccompspec(), cmenlspec(), and cwmenlspec() */
 char *ccharspec(M_WCHAR textchar);
@@ -61,11 +61,11 @@ M_WCHAR *mb_checkdimen(M_WCHAR *val, char *paramname, char *elt);
 
 M_WCHAR *checkent(M_WCHAR *entcontent);
 
-void checkgloss(M_NOPAR);
+void checkgloss(void);
 
 M_WCHAR *checkid(M_WCHAR *id);
 
-void checkmsghead (M_NOPAR);
+void checkmsghead (void);
 
 M_WCHAR *checkreal (M_WCHAR *val, M_WCHAR *paramname, LOGICAL msgout, M_WCHAR *elt);
 
@@ -91,17 +91,17 @@ void cwmloutchar(M_WCHAR textchar, FILE *outfile);
 
 void defxref(FILE *xfile, M_WCHAR *id, struct xref *xref);
 
-int do_esc_seq(M_NOPAR);
+int do_esc_seq(void);
 
-void dumpxref(M_NOPAR);
+void dumpxref(void);
 
 void echohead(M_WCHAR *p);
 
 void mb_echohead(char *p);
 
-void endhead(M_NOPAR);
+void endhead(void);
 
-void endhelpnode(M_NOPAR);
+void endhelpnode(void);
 
 void esoutchar(M_WCHAR textchar);
 
@@ -163,7 +163,7 @@ void itoletter(int n, char start, char *dest, int length);
 
 LOGICAL m_letter(M_WCHAR c);
 
-void loadxref(M_NOPAR);
+void loadxref(void);
 
 int m_lower(int c);
 
@@ -179,7 +179,7 @@ void onlygraphic(char    *param,    M_WCHAR *magnify, M_WCHAR *video,     M_WCHA
   M_WCHAR *margin,   M_WCHAR *clip,    M_WCHAR *penwidth,  M_WCHAR *autoscale,
   M_WCHAR *plottype, M_WCHAR *hadjust, M_WCHAR *vadjust);
 
-void open_new_helpfile(M_NOPAR);
+void open_new_helpfile(void);
                       
 void notallow(char *param1, char *param2);
 
@@ -191,11 +191,11 @@ void outchar(M_WCHAR textchar, FILE *outfile);
 
 void outpi(int enttype, M_WCHAR *pi, M_WCHAR *entname);
 
-void parspace(M_NOPAR);
+void parspace(void);
 
 LOGICAL pushndok(LOGICAL val);
 
-LOGICAL popndok(M_NOPAR);
+LOGICAL popndok(void);
 
 void prfigborder(int val);
 
@@ -223,9 +223,9 @@ void realoutchar(M_WCHAR textchar, FILE *outfile);
 
 void rsectstart(M_WCHAR *id, M_WCHAR *pagebreak);
 
-void rseqend(M_NOPAR);
+void rseqend(void);
 
-void rshnewclear(M_NOPAR);
+void rshnewclear(void);
 
 M_WCHAR *searchforfile(M_WCHAR *file);
 
@@ -294,7 +294,7 @@ void svhdstring(M_WCHAR *string);
 
 void svtcstring(M_WCHAR *string);
 
-void taboutre(M_NOPAR);
+void taboutre(void);
 
 void termchar(M_WCHAR textchar);
 
@@ -302,7 +302,7 @@ void termpi(int m_enttype, M_WCHAR *m_pi, M_WCHAR *m_entname);
 
 void testindexfile(FILE *first);
 
-void texinit(M_NOPAR);
+void texinit(void);
 
 void unimp(M_WCHAR *eltname);
 
@@ -336,11 +336,11 @@ double mb_usertopt(char *s);
 
 long usertosp(char *s);
 
-void whereneedused(M_NOPAR);
+void whereneedused(void);
 
 void t_addnotes(M_WCHAR *tnoteid);
 
-void t_prntnotes(M_NOPAR);
+void t_prntnotes(void);
 
 LOGICAL t_want_a_Q(int span_count);   
 
@@ -349,21 +349,21 @@ void t_xrefnotes(M_WCHAR *tnoteid);
 
 int t_getnum(char *s);
 
-void t_insertcellmarkup(M_NOPAR);
+void t_insertcellmarkup(void);
 
-void t_newpage(M_NOPAR);
+void t_newpage(void);
 
-void t_startcolh(M_NOPAR);
+void t_startcolh(void);
 
-void t_start_tabhead_colh(M_NOPAR);
+void t_start_tabhead_colh(void);
 
-void t_nextcell(M_NOPAR);
+void t_nextcell(void);
 
-void t_checkcaption(M_NOPAR);
+void t_checkcaption(void);
 
-void t_preamble(M_NOPAR);
+void t_preamble(void);
 
-void t_getstyle(M_NOPAR);
+void t_getstyle(void);
 
 void t_dospan(LOGICAL in_colh);
 
@@ -371,7 +371,7 @@ void t_startcell(M_WCHAR *span, M_WCHAR *vspan, char *msg);
 
 void t_endcell(M_WCHAR *span, M_WCHAR *vspan);
 
-void t_startrow(M_NOPAR);
+void t_startrow(void);
 
 void t_endrow(M_WCHAR *taglevone);
 
@@ -382,11 +382,11 @@ void t_tabstart(M_WCHAR *style, M_WCHAR *id, M_WCHAR *number, M_WCHAR *box, M_WC
   M_WCHAR *spacing, M_WCHAR *width, M_WCHAR *position, 
   M_WCHAR *tonumber, M_WCHAR *divide, M_WCHAR *textsize);
 
-void t_tablebody(M_NOPAR);
+void t_tablebody(void);
 
-void t_sendout_rowrule(M_NOPAR);
+void t_sendout_rowrule(void);
 
-void showmemavail(M_NOPAR);
+void showmemavail(void);
 
 int m_upper(int c);
 
@@ -395,7 +395,7 @@ char *GetDefaultHeaderString(char          *elementName,
   char          *defaultString);
 
 
-void SetDefaultLocale(M_NOPAR);
+void SetDefaultLocale(void);
 
 char *MakeMByteString(const M_WCHAR *from);
 
index 3b785f7013994d50e5cc2cc7019dd70fb90b143d..e3b2c77c17aaec7009be27e0c3c0dcd2a390292f 100644 (file)
@@ -95,7 +95,7 @@ tableno = 0;
 footnoteno = 1;
 }
 
-void assert_hometopic_exists(M_NOPAR)
+void assert_hometopic_exists(void)
 {
 char *string =
     GetDefaultHeaderString("UntitledElementDefaultHeadingString",
@@ -123,7 +123,7 @@ m_free(string, "GetDefaultHeaderString return");
 
 /* Determine base name for files (i.e., input name without extension).
    Open output and error files */
-void basename(M_NOPAR)
+void basename(void)
   {
     char *p, *q;
     int n;
@@ -816,7 +816,7 @@ return(NULL);
 
 /* Called at end of manual to report terms that occurred in the document
    but not entered in the glossary */
-void checkgloss(M_NOPAR)
+void checkgloss(void)
 {
 int n;
 M_WCHAR id[MAXTERM + 1];
@@ -853,7 +853,7 @@ while (TRUE)
                
 /* End Error _DtMessage macro \starterrmsg call, check to see if Error _DtMessage
    head is user specified or default */
-void checkmsghead(M_NOPAR)
+void checkmsghead(void)
 {
 char *string =
     GetDefaultHeaderString("MessagesElementDefaultHeadingString",
@@ -920,7 +920,7 @@ return ( valid );
 
 
 /* end a help node */
-void endhelpnode(M_NOPAR)
+void endhelpnode(void)
 {
 }
 
@@ -1735,7 +1735,7 @@ chapst = TRUE;
 
 /* Called at the end of a chapter, appendix, or section to end an open
    sequence of rsects */
-void rseqend(M_NOPAR)
+void rseqend(void)
 {
 if (rsectseq)
     {
@@ -1748,7 +1748,7 @@ if (rsectseq)
    sequence is not immediately followed by a new <rsect>.  Hence can output
    the \newpage macro call without concern about side effects on the
    page header */
-void rshnewclear(M_NOPAR)
+void rshnewclear(void)
 {
 if (rsectholdnew)
     {
@@ -1802,7 +1802,7 @@ return(NULL);
 
 
 /* show how much memory is available */
-void showmemavail(M_NOPAR)
+void showmemavail(void)
 {
 int amount=0;
 char *p;
@@ -2105,7 +2105,7 @@ m_entdupchk = FALSE;
 }
 
 /* Open and initialize TeX file */
-void texinit(M_NOPAR)
+void texinit(void)
 {
 LOGICAL init = TRUE;
 unsigned char type;
index 0745e70becc15cd8ce06024eb502d5877531ae1b..97cc0da1eebb0a7786f3aed729ded4fbd3bd2102 100644 (file)
@@ -57,7 +57,7 @@ m_free(wc,"wide character string");
 
 /* Called at end of a head in a chapter, appendix, section, or
    reference section */
-void endhead(M_NOPAR)
+void endhead(void)
 {
 if (savid)
     {
@@ -229,7 +229,7 @@ if (echo)
 }
 
 /* Called for normal paragraph spacing */
-void parspace(M_NOPAR)
+void parspace(void)
 {
 if (unleaded)  /* unleaded is a one-shot flag */
     unleaded = FALSE;
index 37b0c4b011725d155c22d9c56d18f8a0d8f5cb66..87d409490322cc5fb476b7ccf82d1c39a90cf74d 100644 (file)
@@ -143,7 +143,7 @@ m_free(csname, "csname");
 
 /* Write cross-reference file for next time document is processed
    and TeX macro file for post-processing this pass */
-void dumpxref(M_NOPAR)
+void dumpxref(void)
 {
 int n;
 M_WCHAR id[M_NAMELEN + 1];
@@ -213,7 +213,7 @@ xstrlen += length;
 
 /* Initializes cross-reference table reading in file output from previous
    pass through document */
-void loadxref(M_NOPAR)
+void loadxref(void)
 {
 M_WCHAR id[M_NAMELEN + 1];
 char c, d;
index 3197d333905231bc1652d2f47c6acd1da0405ad2..e6ea1529174c348c5114c6a5630f7ccb68aaa91c 100644 (file)
@@ -137,7 +137,7 @@ void m_findchain(M_PARSE *stackptr, int start, int chainin, int *chainout, int *
 /* Process global end string.  In separate procedure to keep all references
    to if.h in one source file and minimize recompilation if interface
    changes. */
-void m_globes(M_NOPAR)
+void m_globes(void)
 {
 M_WCHAR *wc_string;
 
@@ -149,7 +149,7 @@ m_free(wc_string,"wide character string");
 /* Process global start string.  In separate procedure to keep all references
    to if.h in one source file and minimize recompilation if interface
    changes. */
-void m_globss(M_NOPAR)
+void m_globss(void)
 {
 M_WCHAR *wc_string;
 
index a92f068281634de1931a4f2e047720bb97738ab9..e8b6ce5583be8076fa02e927b2292e0048802d77 100644 (file)
@@ -29,7 +29,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "globdec.h"
 
 /* Write error message prefix */
-void m_eprefix(M_NOPAR)
+void m_eprefix(void)
   {
     m_errline("\n*****\n") ;
     }
index d44058fcda124c02b1d77b4677693dc9afee649f..ce5dba91809b193f9e5f1c15c22ea8a852ac21bd 100644 (file)
@@ -336,7 +336,7 @@ void m_getline(file, line)
 
 /* Dump last characters read from input stream to give context to
    an error message */
-void m_lastchars(M_NOPAR)
+void m_lastchars(void)
 {
 int i;
 M_WCHAR buffer[2];
@@ -385,14 +385,14 @@ if ((m_svlncnt[m_sysecnt] &&
 }
 
 /* Display information about the current element */
-void m_showcurelt(M_NOPAR)
+void m_showcurelt(void)
   {
     if (m_stacktop->oldtop)
       m_dispcurelt(m_stacktop->file, m_stacktop->line);
     }    
 
 /* Start an error message */
-void m_startmsg(M_NOPAR)
+void m_startmsg(void)
   {
     m_eprefix();
     m_errexit = TRUE;
@@ -400,7 +400,7 @@ void m_startmsg(M_NOPAR)
 
 /* Return the name of the current input file (most recently opened, but
    unclosed SYSTEM entity) */
-M_WCHAR *m_thisfile(M_NOPAR)
+M_WCHAR *m_thisfile(void)
   {
     int i;
 
@@ -413,7 +413,7 @@ M_WCHAR *m_thisfile(M_NOPAR)
     }
 
 /* Return the line number in the current input file */
-int m_thisline(M_NOPAR)
+int m_thisline(void)
   {
     return(m_line[m_sysecnt]);
     }
index 6f1726924d19e4ce94d89a8eb9a35423bb3a0d8e..ddcb99892200e6d899d2e57c8f0a818d6ca85246 100644 (file)
@@ -32,7 +32,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #endif
 
 /* Write error message suffix */
-void m_esuffix(M_NOPAR)
+void m_esuffix(void)
   {
     m_errline("\n") ;
     m_dumpline(m_thisfile(), m_thisline()) ;
index 4cde83c182b6555f5e28b9126357523624d2ddf6..9606d682315295e4e2f957cd0371c5e84d1f4c3c 100644 (file)
@@ -34,7 +34,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "parser.h"
 #include "signonx.h"
 
-void m_getsignon(M_NOPAR)
+void m_getsignon(void)
   {
     m_errline(m_signon) ;
     }
index eeb4adcee8d6ab5d3286ee1866eaeed794142ef7..4a0c70559cefc87d9feec6f2b9ebf3bfe9c2038f 100644 (file)
@@ -39,7 +39,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "parser.h"
 
 /* M_etcomplete is called when a complete end-tag has been read */
-void m_etcomplete(M_NOPAR)
+void m_etcomplete(void)
   {
     if (! m_scanel) {
       M_WCHAR *wc_etago, *wc_tagc;
@@ -91,7 +91,7 @@ void m_frcend(val)
 
 /* M_frcstart is called to force the start of an element when that element
    cannot legally occur in the current context but does appear in the text*/
-void m_frcstart(M_NOPAR)
+void m_frcstart(void)
   {
     m_push(m_scanel, m_element[m_scanel - 1].start, m_scannet) ;
     if (m_scannet) m_netlevel++ ;
@@ -108,7 +108,7 @@ void m_frcstart(M_NOPAR)
 
 /* M_holdproc processes a RE that was saved to test if it was the last
    RE in an element's content */
-void m_holdproc(M_NOPAR)
+void m_holdproc(void)
   {
     if (m_stacktop->holdre) {
       m_stacktop->holdre = FALSE ;
@@ -122,7 +122,7 @@ void m_holdproc(M_NOPAR)
     }
 
 /* M_stcomplete is called when a complete start tag has been recognized */
-void m_stcomplete(M_NOPAR)
+void m_stcomplete(void)
   {
     if (! m_scanel) return ;
     if (m_strtproc(m_scanel))
index 446307c8a6e722216066ca5e40d627153196b412..4bfcee79d2291bd77fe3ee55ee72eea88d533606 100644 (file)
@@ -43,7 +43,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 /* M_expecting reports to the user the possible valid content at a particular
    state in the parse of the document */
-void m_expecting(M_NOPAR)
+void m_expecting(void)
   {
     LOGICAL expstart = TRUE ;
     M_PARSE *stackptr ;
@@ -276,7 +276,7 @@ M_ELEMENT m_findunique(from, newleft)
 
 /* M_nullendtag is called when a null end tag is encountered; i.e., at the
    end of a short element */
-void m_nullendtag(M_NOPAR)
+void m_nullendtag(void)
   {
     LOGICAL foundnet ;
 
@@ -307,7 +307,7 @@ void m_nullendtag(M_NOPAR)
 
 /* Tests to see if an end tag may have been omitted at this point in the
    parse.*/
-LOGICAL m_omitend(M_NOPAR)
+LOGICAL m_omitend(void)
   {
     M_ANDGROUP pand ;
     M_OPENFSA *fsastack ;
index 0a79d55dd3ada3c3aaa595a2f8a17cc1cd29692c..2e07878e1850adbfacec584b30e2f90f349b7e23 100644 (file)
@@ -28,7 +28,7 @@
 #include "userinc.h"
 #include "globdec.h"
 
-void *m_openfirst(M_NOPAR)
+void *m_openfirst(void)
   {
     return((void *) stdin) ;
     }
index 2c9b82b348c8b4a1677e298ee5a59d50bd6a76d9..4eff40629f48a997367310d3c193fe27f84d60ce 100644 (file)
@@ -117,7 +117,7 @@ LOGICAL m_attvonly(string)
 
 /* Check a name previously saved in m_saveatt to see if it is the name of
    a valid parameter for the current start tag */
-void m_findatt(M_NOPAR)
+void m_findatt(void)
   {
     int par, i ;
 
@@ -220,7 +220,7 @@ void m_parupper(par, string)
 
 /* Set all parameters to their default values for an element included by
    tag minimization */
-void m_stkdefaultparams(M_NOPAR)
+void m_stkdefaultparams(void)
   {
     int i, par = 0 ;
 
@@ -272,7 +272,7 @@ void m_stkonedef(par, scanel, poccur, i)
     }
 
 /* Stack parameter values */
-void m_stkparams(M_NOPAR)
+void m_stkparams(void)
   {
     int i, par ;
 
index a9f6d3c023eae9a72c4706248a808d66515ddcbf..41e3f206aed1ffe5b2b0aadec485e13c432c28ad 100644 (file)
@@ -48,7 +48,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "version.h"
 
 /* Adjust parsing state after each token if necessary */
-void m_adjuststate(M_NOPAR)
+void m_adjuststate(void)
   {
     if (m_curcon == START) {
       if (m_netlevel) {
@@ -79,7 +79,7 @@ void m_adjuststate(M_NOPAR)
 
 /* Tests whether the element named in a tag is defined; if so, returns its
    index; otherwise return FALSE */
-M_ELEMENT m_eltname(M_NOPAR)
+M_ELEMENT m_eltname(void)
   {
     M_ELEMENT eltid ;
 
@@ -103,7 +103,7 @@ return i;
 }
 
 /* Program initialization */
-void m_initialize(M_NOPAR)
+void m_initialize(void)
 {
 char    **mb_delims;
 M_WCHAR **wc_delims;
index 525464900d87a08032a8b7536a9620cb3723facc..e6d1002dc099b304136393968409d4cc6e7486b7 100644 (file)
@@ -21,9 +21,9 @@
  * Floor, Boston, MA 02110-1301 USA
  */
 /* $XConsortium: proto.h /main/3 1995/11/08 11:30:37 rswiston $ */
-int m_actgetc(M_NOPAR);
+int m_actgetc(void);
 
-void m_adjuststate(M_NOPAR);
+void m_adjuststate(void);
 
 LOGICAL m_allwhite(const M_WCHAR *string);
 
@@ -41,20 +41,20 @@ void m_closent(void *m_ptr);
 
 void m_codeent(int m_ent);
 
-M_PARSE *m_copystackelt(M_NOPAR);
+M_PARSE *m_copystackelt(void);
 
 M_WCHAR *m_cyclent(LOGICAL init, unsigned char *type, M_WCHAR **content, 
   unsigned char *wheredef);
 
 void m_dispcurelt(M_WCHAR *file, int line);
 
-void m_done(M_NOPAR);
+void m_done(void);
 
 void m_dumpline(M_WCHAR *file, int line);
 
 void m_eduptype(int type);
 
-M_ELEMENT m_eltname(M_NOPAR);
+M_ELEMENT m_eltname(void);
 
 void m_endaction(M_ELEMENT m_elt);
 
@@ -64,7 +64,7 @@ void m_endtag(M_ELEMENT c);
 
 void m_entexpand(M_ENTITY *openent);
 
-void m_eprefix(M_NOPAR);
+void m_eprefix(void);
 
 void m_err1(const char *text, const M_WCHAR *arg);
 
@@ -87,15 +87,15 @@ void m_errline(char *p);
 
 void m_error(char *text);
 
-void m_esuffix(M_NOPAR);
+void m_esuffix(void);
 
 void m_exit(int status);
 
-void m_etcomplete(M_NOPAR);
+void m_etcomplete(void);
 
 LOGICAL m_excluded(M_ELEMENT elt);
 
-void m_expecting(M_NOPAR);
+void m_expecting(void);
 
 void m_expexpand(LOGICAL *expstart, M_STATE node, LOGICAL *required, LOGICAL *data);
 
@@ -105,7 +105,7 @@ void m_exptend(LOGICAL *expstart, M_PARSE *stackptr);
 
 int m_findact(M_ELEMENT elt, int *array);
 
-void m_findatt(M_NOPAR);
+void m_findatt(void);
 
 void m_findchain(M_PARSE *stackptr, int start, int chainin, int *chainout, int *index, 
   LOGICAL wild);
@@ -116,7 +116,7 @@ M_ELEMENT m_findunique(M_STATE from, int *newleft);
 
 void m_frcend(M_ELEMENT val);
 
-void m_frcstart(M_NOPAR);
+void m_frcstart(void);
 
 void m_free(void *block, char *msg);
 
@@ -140,23 +140,23 @@ void m_getline(M_WCHAR **file, int *line);
 
 void m_getname(M_WCHAR first);
 
-void m_getsignon(M_NOPAR);
+void m_getsignon(void);
 
 int m_gettoken(int *c, M_HOLDTYPE *dchar, int context);
 
-void m_globes(M_NOPAR);
+void m_globes(void);
 
-void m_globss(M_NOPAR);
+void m_globss(void);
 
-void m_holdproc(M_NOPAR);
+void m_holdproc(void);
 
 void m_inctest(int *count, int limit, char *message);
 
-void m_initctype(M_NOPAR);
+void m_initctype(void);
 
-void m_initialize(M_NOPAR);
+void m_initialize(void);
 
-void m_lastchars(M_NOPAR);
+void m_lastchars(void);
 
 int m_level(M_WCHAR *elt);
 
@@ -182,17 +182,17 @@ void m_nextdelimchar(int *n, int i, LOGICAL *linestart, LOGICAL newlinestart, LO
 
 void m_ntrent(M_WCHAR *p);
 
-void m_nullendtag(M_NOPAR);
+void m_nullendtag(void);
 
-LOGICAL m_omitend(M_NOPAR);
+LOGICAL m_omitend(void);
 
-LOGICAL m_omitstart(M_NOPAR);
+LOGICAL m_omitstart(void);
 
 void m_openchk(FILE **ptr, char *name, char *mode);
 
 void *m_openent(M_WCHAR *entcontent);
 
-void *m_openfirst(M_NOPAR);
+void *m_openfirst(void);
 
 void m_optstring(char *p);
 
@@ -216,45 +216,45 @@ LOGICAL m_parvalok(M_WCHAR *elt, M_WCHAR *param, const M_WCHAR *value);
 
 void m_piaction(M_WCHAR *m_pi, M_WCHAR *m_entname, int m_enttype);
 
-void m_pop(M_NOPAR);
+void m_pop(void);
 
 void m_push(M_ELEMENT elt, M_STATE current, LOGICAL need);
 
 LOGICAL m_putdata(void *data, int n);
 
-void m_readcomments(M_NOPAR);
+void m_readcomments(void);
 
 void *m_realloc(void *ptr, int size, char *msg);
 
-int m_scan(M_NOPAR);
+int m_scan(void);
 
 void m_setmap(int map, LOGICAL useoradd);
 
-void m_setoptions(M_NOPAR);
+void m_setoptions(void);
 
 void m_setparam(M_WCHAR **cvar, int par);
 
 void m_shortref(int context);
 
-void m_showcurelt(M_NOPAR);
+void m_showcurelt(void);
 
 void m_signmsg(char *p);
 
-void m_sigre(M_NOPAR);
+void m_sigre(void);
 
-void m_startdoc(M_NOPAR);
+void m_startdoc(void);
 
-void m_startmsg(M_NOPAR);
+void m_startmsg(void);
 
 void m_stcaction(M_WCHAR *m_string, LOGICAL M_START, LOGICAL M_END);
 
-void m_stcomplete(M_NOPAR);
+void m_stcomplete(void);
 
-void m_stkdefaultparams(M_NOPAR);
+void m_stkdefaultparams(void);
 
 void m_stkonedef(int par, M_ELEMENT scanel, M_WCHAR **poccur, int i);
 
-void m_stkparams(M_NOPAR);
+void m_stkparams(void);
 
 void m_strtaction(M_ELEMENT m_elt);
 
@@ -270,11 +270,11 @@ void m_textaction(M_WCHAR m_textchar);
 
 void m_textout(char *format, LOGICAL start, LOGICAL end);
 
-LOGICAL m_textpermitted(M_NOPAR);
+LOGICAL m_textpermitted(void);
 
-M_WCHAR *m_thisfile(M_NOPAR);
+M_WCHAR *m_thisfile(void);
 
-int m_thisline(M_NOPAR);
+int m_thisline(void);
 
 void m_trace(char *p);
 
@@ -296,7 +296,7 @@ int m_mbmbupstrcmp(const char *p, const char *q);
 
 LOGICAL m_validinpar(M_WCHAR *string);
 
-LOGICAL m_vldentref(M_NOPAR);
+LOGICAL m_vldentref(void);
 
 LOGICAL m_whitespace(M_WCHAR c);
 
index 941872fc2b6e602025bc9e68012b93ddc9817e68..7b61380abd11100bc3d3bc31d2dad9d5a7281481 100644 (file)
@@ -51,7 +51,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "sref.h"
 
 /* Actually read a character from an input stream */
-int m_actgetc(M_NOPAR)
+int m_actgetc(void)
   {
     int c ;
 
@@ -689,7 +689,7 @@ void m_nextdelimchar(int *n, int i, LOGICAL *linestart, LOGICAL newlinestart,
     }
 
 /* Scans past a comment within a markup declaration */
-void m_readcomments(M_NOPAR)
+void m_readcomments(void)
   {
     int c ;
     M_HOLDTYPE dchar ;
@@ -702,7 +702,7 @@ void m_readcomments(M_NOPAR)
     }
 
 /* Scanner */
-int m_scan(M_NOPAR)
+int m_scan(void)
   {
     int c ;
     M_HOLDTYPE dchar ;
@@ -1035,7 +1035,7 @@ while (TRUE)
           or contextual end tag [linestat == M_SOMETHING]
       3)  If a record end might be the last one in an element, save it
 */
-void m_sigre(M_NOPAR)
+void m_sigre(void)
   {
     /* Check for first RE in content and no preceding content */
     if (m_start &&
@@ -1111,7 +1111,7 @@ void m_ungetachar(int c, M_HOLDTYPE dchar, LOGICAL preread)
     }
 
 /* Have encountered an M_ERO.  If the entity reference is valid, process it*/
-LOGICAL m_vldentref(M_NOPAR)
+LOGICAL m_vldentref(void)
   {
     M_HOLDTYPE dchar ;
     int next ;
index 2fc124f0911e4344e7ce55cb556ee29eced6e885..1b83c7a4ea1c2a5249f46b63108c6b7ebab5e5d5 100644 (file)
@@ -30,7 +30,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 
 
 /* Set program options */
-void m_setoptions(M_NOPAR)
+void m_setoptions(void)
   {
     if (m_argc > 1) m_optstring(m_argv[1]) ;
     }
index 9663447a3ba5e784a8e1c4eb32e141cf105c8d57..8280639c4528b205033cbdc24373df3c2feb4822 100644 (file)
@@ -32,7 +32,7 @@ Copyright 1989 Hewlett-Packard Co.
    control after all entity declarations have been processed.  Not needed
    in valid documents (when it is called just prior to global start-code),
    but may be useful in some applications nevertheless. */
-void m_startdoc(M_NOPAR)
+void m_startdoc(void)
   {
     }
 
index bf69fb944aac0b396e0c392ab704b3099cea6c41..09dd0d0355b752763d1ff7c04366bd2edcd51b42 100644 (file)
@@ -191,7 +191,7 @@ LOGICAL m_ckend(M_ELEMENT val, LOGICAL neednet)
 
 /* Make a copy of the stack entry at the top of the parse stack in a scratch
    area */
-M_PARSE *m_copystackelt(M_NOPAR)
+M_PARSE *m_copystackelt(void)
   {
     M_OPENFSA *oldfsa ;
     M_OPENFSA **newfsa ;
@@ -219,7 +219,7 @@ M_PARSE *m_copystackelt(M_NOPAR)
     }
 
 /* End of document */
-void m_done(M_NOPAR)
+void m_done(void)
   {
     M_ELEMENT lastelt ;
 
@@ -395,7 +395,7 @@ LOGICAL m_nextand(thisfsa, label)
     }
 
 /* Pops the parse stack*/
-void m_pop(M_NOPAR)
+void m_pop(void)
   {
     M_PARSE *stackelt ;
 
@@ -661,7 +661,7 @@ void m_strttag(M_ELEMENT val, LOGICAL net)
    makes more sense, is used by MARKUP, and is under consideration by the
    Standards committee; the latter is the current definition in the Standard
    */
-LOGICAL m_textpermitted(M_NOPAR)
+LOGICAL m_textpermitted(void)
   {
     M_ANDGROUP pand ;
     M_OPENFSA *fsastack ;
index 9c13a58ba5990d2a80fc182c6cce5f78ab28d376..a372f46bb5f9c71bb6ed7dd27313ef1af15bcb25 100644 (file)
@@ -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);
index 2aaa6bde7e3b6fc7b7e0b8b4fcd394512ab04767..2bdcaf8d9b6d92f7c87da8fe750e576ca809257d 100644 (file)
@@ -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);
 
index 9620697e5a587f350d974bd3c85d50fd927832b4..fcee06cdf05e8aae54d842e45f5819370d631ac1 100644 (file)
@@ -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;
 
@@ -214,7 +214,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;
@@ -237,7 +237,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 */
@@ -304,7 +304,7 @@ return(ccount - 1);
 }
 
 /* Read a delimiter name from the input line */
-LOGICAL getdname(M_NOPAR)
+LOGICAL getdname(void)
 {
 int c;
 M_WCHAR *p;
@@ -348,7 +348,7 @@ return(TRUE);
 }
 
 /* Out of context space.  Increase. */
-void inccon(M_NOPAR)
+void inccon(void)
   {
     M_TRIE **newtrie = NULL;
     int *newtransit = NULL;
@@ -395,7 +395,7 @@ void inccon(M_NOPAR)
     }
 
 /* Increase delimiter space. */
-void incdelim(M_NOPAR)
+void incdelim(void)
 {
 int *newtransit = NULL;
 char **newdlm = NULL;
@@ -438,7 +438,7 @@ dcount++;
 }
 
 /* Read delimiter definitions from delim.dat */
-void loaddelim(M_NOPAR)
+void loaddelim(void)
 {
 int c;
 M_WCHAR *p;
@@ -642,7 +642,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)
 {
 }
 
index 5853bc2937b9eee22eeb6c9c4e00fa2b1a7578d4..1fa8aba58d6f9d741c5edfa5d7360b2c93478f52 100644 (file)
@@ -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) ;
index 7bb5aa16d05ec0dcf59e084b6418055b2a3002b4..711df37ee651f645df4e21931c9a1efc3e154d9b 100644 (file)
@@ -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 ;
 
index 4e831d9b69b0fcf5e7c142692d9fd12f10e8012e..343d11225aa3a9ebf972139b300b3a8990cb85d7 100644 (file)
@@ -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);
 
@@ -81,7 +81,7 @@ void m_free(block, msg)
     }
 
 #if defined(MSDOS)
-void m_heapdump(M_NOPAR)
+void m_heapdump(void)
   {
     struct _heapinfo hinfo ;
     int heapstatus ;
index e3eeb7e0419e715f5fa2109f90eb7120994b85a8..d916765c20403c77a4a4e5cf77eb8f816cd08829 100644 (file)
@@ -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;
index 493f720440254a0301763120756bdb173f1c9acd..67f790254718f3a6407f3cbc43f67686eb96e7b4 100644 (file)
@@ -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 ;
 
index f991fb31ee026d9f332e4df11ea32cadfc1b622f..f33c9e988ea2d9ef6630d706173130ba6a02481f 100644 (file)
@@ -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);
 
index dbdb390dee9dc3bda443eeff51557c4e2ded6499..ae23d9f99eab25bdb4d3f96249d0174e02809416 100644 (file)
@@ -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 ;
index fc9653a89e3c5bea6d2959acc3e1e85c0809256c..330ee36d0e679b02a12bcf519dc4fcec00ea1107 100644 (file)
@@ -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") ;
index e76d5bde4167654fb3864b5a423a0f4db5a421e5..b212085bb214d24b093f3db6bf817fb515c8127e 100644 (file)
@@ -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 ;
 
index 83f418dddb60ebb94fd8f20b9d4b7b16a8ff475e..5c7dc63c58d36249660578184e8887058358dbb8 100644 (file)
@@ -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 ;
@@ -630,7 +630,7 @@ fputs("  <END-STRING></END-STRING>\n", tempfile) ;
 }
 
 /* Write template */
-void template(M_NOPAR)
+void template(void)
   {
     FILE *tempfile ;
     M_ENTITY *ent ;
index c2cc35068af993099f0cdd17168ebadfdbfa7b8d..8d73b5314194897aeba168a1cb8901610c74c9dd 100644 (file)
@@ -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 ;
index 03252c786785777bdba35eb979a2d39e957f8c87..f9a4a9091f0e601e0da9b15ad74210743ce29ff1 100644 (file)
@@ -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);
 
index dc29de3d5949eb21d9a6d53e3d612d040f12b33b..aa8046405b340993a631e75ae4b9724ae69846e8 100644 (file)
@@ -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;
index d5f89266fc8cc7440b2c14e60ffc21a8b132b0b7..70e9b8a76eae72c853eca456d278b480eb8e3cca 100644 (file)
@@ -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)
     {
index 09464f1043b35e652e3b42a5dcdec3975dd151f1..fcfd5fe2a4f093c6d0dc364cba696a86ae3c32cb 100644 (file)
@@ -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 ;
 
index 06b28ee25793f1397e2e59c13b59f1bb8f1fd671..99040b9dbb073c21bd35ff88fb2d4dfe68e6ae7e 100644 (file)
@@ -398,7 +398,7 @@ tagc
   postent:start
   codetagc:inentc {
             startcode(entity->codeindex, &inent, entfile,
-                      "c", nopar, nopar, "") ;
+                      "c", "void", "void", "") ;
             }
   close:preparam
   sschain:inss {
@@ -420,11 +420,11 @@ tagc
             }
   scchain:insc {
             *getaction(scarray) = ++sactions ;
-            startcode(sactions, &insc, sfile, "s", nopar, nopar, "") ;
+            startcode(sactions, &insc, sfile, "s", "void", "void", "") ;
             }
   ecchain:inec {
             *getaction(ecarray) = ++eactions ;
-            startcode(eactions, &inec, efile, "e", nopar, nopar, "") ;
+            startcode(eactions, &inec, efile, "e", "void", "void", "") ;
             }
   stcchain:instc {
             *getaction(stcarray) = ++stactions ;
index 430dcde7a2097f56f702e73965dd3e1af9893f73..85d1e68266171046777bf1e1c233f4fc8480ca83 100644 (file)
@@ -215,7 +215,6 @@ ELTEXTERN int restart ELTINIT(RENTITY) ;
 #define stproto "M_WCHAR *m_string, LOGICAL M_START, LOGICAL M_END"
 #define stformal "m_string, M_START, M_END"
 #define stft "  M_WCHAR *m_string ;\n  LOGICAL M_START ;\n  LOGICAL M_END ;\n"
-#define nopar "M_NOPAR"
 
 /* Structures for generating defines for parameter values */
 ELTEXTERN M_TRIE parval ;
index ff433f4ea69a2ad91d9bc2cb4374a30a07de04a8..266b023309862ec7559975be62901d7186fbb6d0 100644 (file)
@@ -92,7 +92,7 @@ void closeiffile(LOGICAL flag, FILE *file, int count, char *table, char *proto)
 
 /* Called when the C identifier to be #define'd to a parameter value is
    scanned */
-void cvalue(M_NOPAR)
+void cvalue(void)
   {
     PARVAL *new;
 
@@ -111,18 +111,18 @@ void cvalue(M_NOPAR)
 
 /* Called after last input character is read to place closing punctuation
    at end of output files and close them */
-void done(M_NOPAR)
+void done(void)
   {
     M_ENTITY *ent;
     ACTION *actp;
     LOGICAL first;
     int i;
 
-    closeiffile(inent, entfile, codeent, "c", nopar);
+    closeiffile(inent, entfile, codeent, "c", "void");
     closeiffile(intext, tfile, tactions, "t", tproto);
     closeiffile(inpc, pfile, pactions, "p", pproto);
-    closeiffile(insc, sfile, sactions, "s", nopar);
-    closeiffile(inec, efile, eactions, "e", nopar);
+    closeiffile(insc, sfile, sactions, "s", "void");
+    closeiffile(inec, efile, eactions, "e", "void");
     closeiffile(instc, stfile, stactions, "st", stproto);
 
     endstring();
@@ -190,7 +190,7 @@ void endcode(LOGICAL flag, FILE *file)
     }
 
 /* Called at the end of all initial fields in the interface definition */
-void endini(M_NOPAR)
+void endini(void)
   {
     if (finitext) 
       fputs("    putc(m_textchar, m_outfile);\n", tfile);
@@ -209,7 +209,7 @@ void endini(M_NOPAR)
 
 /* End the sign-on message */
 #include <time.h>
-void endsignon(M_NOPAR)
+void endsignon(void)
   {
     time_t storetime;
     char *p;
@@ -255,7 +255,7 @@ void endsignon(M_NOPAR)
     }
 
 /* Closes a start-string or end-string */
-void endstring(M_NOPAR)
+void endstring(void)
   {
     if (instring) {
       if (stringstart) stringstart = FALSE;
@@ -282,7 +282,7 @@ void enttype(type)
     }
 
 /* Free storage used for a context-specification chain */
-void freechain(M_NOPAR)
+void freechain(void)
   {
     CHAIN *chainp, *dchainp;
 
@@ -333,7 +333,7 @@ int *getaction(array)
     }
 
 /* Allocate new action structure */
-ACTION *getactstruct(M_NOPAR)
+ACTION *getactstruct(void)
   {
     ACTION *new;
 
@@ -347,7 +347,7 @@ ACTION *getactstruct(M_NOPAR)
     }
 
 /* Program initialization */
-void initialize(M_NOPAR)
+void initialize(void)
 {
 char    **mb_delims;
 M_WCHAR **wc_delims;
@@ -411,13 +411,13 @@ fputs("#endif\n", ifh);
 
 startcode(pactions, &inpc, pfile, "p", pproto, pformal, pftype);
 startcode(tactions, &intext, tfile, "t", tproto, tformal, tftype);
-startcode(sactions, &insc, sfile, "s", nopar, nopar, "");
-startcode(eactions, &inec, efile, "e", nopar, nopar, "");
+startcode(sactions, &insc, sfile, "s", "void", "void", "");
+startcode(eactions, &inec, efile, "e", "void", "void", "");
 startcode(stactions, &instc, stfile, "st", stproto, stformal, stft);
 }
 
 /* Output definitions for strings */
-void outstring(M_NOPAR)
+void outstring(void)
   {
     int c;
 
@@ -480,7 +480,7 @@ for ( ; p ; p = p->next)
 }
 
 /* Skip rest of statement after an error */
-void skiptoend(M_NOPAR)
+void skiptoend(void)
   {
     int i;
     static int errlev = 0;
@@ -580,7 +580,7 @@ fprintf(file, "{\n/* line %d \"%s\" */\n", m_line, iffile); /* balance "}" */
 }
 
 /* Begins processing a new element */
-void startelement(M_NOPAR)
+void startelement(void)
   {
     CVARSTRUCT *cvarp;
     CVARSTRUCT *discard;
@@ -601,7 +601,7 @@ void startelement(M_NOPAR)
     }
 
 /* Stores the name of a C variable read from the input file */
-void storecvar(M_NOPAR)
+void storecvar(void)
   {
     CVARSTRUCT *new;
 
@@ -616,7 +616,7 @@ void storecvar(M_NOPAR)
 /* Compares the parameter name associated with a C variable in the input
    file with the names of all parameters of the current element.  Stores
    result for later output with code segments */
-void storepname(M_NOPAR)
+void storepname(void)
   {
     int i, par;
 
index 36dc9f147d9e3c89d296f3d612fc76eb2681f992..3cf253bcd7e9b3ef45552f1a43a09d9128bb9082 100644 (file)
@@ -35,7 +35,7 @@
 #include "entext.h"
 
 /* Add an entity */
-void addent(M_NOPAR)
+void addent(void)
   {
     M_ENTITY *new ;
 
index 077e929feaef9bc3709d35f5d3c34f63bb743a47..e22c6e53e991b7cd8f6742496b1f25e67aec2e82 100644 (file)
@@ -30,7 +30,7 @@
 
 void actptrout(ACTION **array, char *name);
 
-void addent(M_NOPAR);
+void addent(void);
 
 LOGICAL m_allwhite(const M_WCHAR *string);
 
@@ -38,10 +38,10 @@ void closeiffile(LOGICAL flag, FILE *file, int count, char *table, char *proto);
 
 void countdown(M_TRIE *parent, int *count);
 
-void cvalue(M_NOPAR);
+void cvalue(void);
 
 
-void done(M_NOPAR);
+void done(void);
 
 void m_dumptrie(FILE *file,
   M_TRIE *xtrie,
@@ -51,11 +51,11 @@ void m_dumptrie(FILE *file,
 
 void endcode(LOGICAL flag, FILE *file);
 
-void endini(M_NOPAR);
+void endini(void);
 
-void endsignon(M_NOPAR);
+void endsignon(void);
 
-void endstring(M_NOPAR);
+void endstring(void);
 
 void entout(char *fname);
 
@@ -78,21 +78,21 @@ void m_exit(int status);
 
 void m_free(void *block, char *msg);
 
-void freechain(M_NOPAR);
+void freechain(void);
 
-int getachar(M_NOPAR);
+int getachar(void);
 
 int *getaction(ACTION **array);
 
-ACTION *getactstruct(M_NOPAR);
+ACTION *getactstruct(void);
 
 void getname(int first);
 
 int gettoken(int *c, int context);
 
-void m_initctype(M_NOPAR);
+void m_initctype(void);
 
-void initialize(M_NOPAR);
+void initialize(void);
 
 LOGICAL m_letter(M_WCHAR c);
 
@@ -106,24 +106,24 @@ void m_openchk(FILE **ptr, char *name, char *mode);
 
 void outpval(M_TRIE *p);
 
-void outstring(M_NOPAR);
+void outstring(void);
 
 int m_packedlook(M_PTRIE *xptrie, M_WCHAR *name);
 
 const M_WCHAR *m_partype(const int par, const M_WCHAR *string);
 
-int scan(M_NOPAR);
+int scan(void);
 
-void skiptoend(M_NOPAR);
+void skiptoend(void);
 
 void startcode(int caseno, LOGICAL *flag, FILE *file, char *prefix, char *proto,
   char *formal, char *formtype);
 
-void startelement(M_NOPAR);
+void startelement(void);
 
-void storecvar(M_NOPAR);
+void storecvar(void);
 
-void storepname(M_NOPAR);
+void storepname(void);
 
 void undodelim(M_WCHAR *delim);
 
index aecff9015c4bff23276a9015bdb6c25f2f99bcf9..3317a955b3826e1d287638455ed5d242e69d44e2 100644 (file)
@@ -86,7 +86,7 @@ ungetachar(c);
 }
 
 /* Reads the next token and returns it to the main procedure */
-int scan(M_NOPAR)
+int scan(void)
 {
 int c;
 int n;
index c55624c6baa982e9bf2a32168cc7259ae3fb3f38..27df40ade1cfc56476bc037cf17607cfd48423fa 100644 (file)
@@ -37,7 +37,7 @@ Copyright (c) 1988, 1989 Hewlett-Packard Co.
 /* Standard startup code doesn't have room to load inherited environments
    in some cases.  Since they're not used, don't bother.  (Using Microsoft
    C compiler).  */
-void _setenvp(M_NOPAR);
+void _setenvp(void);
 void _setenvp(){}
 #endif
 
@@ -72,7 +72,7 @@ else
 }
 
 /* Write error message prefix */
-void m_eprefix(M_NOPAR)
+void m_eprefix(void)
 {
 m_errline("\n*****\n");
 m_dumpline(m_thisfile(), m_thisline());
@@ -96,7 +96,7 @@ for ( ; *p ; p++)
 #include <process.h>
 #endif
 /* Write error message suffix */
-void m_esuffix(M_NOPAR)
+void m_esuffix(void)
 {
 m_errline(":\n");
 m_lastchars();
@@ -245,7 +245,7 @@ return(NULL);
 }
 
 /* Open input file */
-void *m_openfirst(M_NOPAR)
+void *m_openfirst(void)
 {
 FILE *first;
 char *input;
index 346aa92f48adbb481f04f5f8ccc20c6ac54f62d3..a5970c16dc1d6a141136b9e6b1cde94f899624f5 100644 (file)
 /* Copyright (c) 1988, 1989, 1990 Hewlett-Packard Co. */
 /* Function prototypes for HP Tag/TeX translator */
 
-void assert_hometopic_exists(M_NOPAR);
+void assert_hometopic_exists(void);
 
 /* osf has basename() defined in system header file, change
  * basename() to fbasename(). --XPG4 standard.
  */
-void fbasename(M_NOPAR);
+void fbasename(void);
 
 void chapstart(M_WCHAR *id);
 
-void checkgloss(M_NOPAR);
+void checkgloss(void);
 
 M_WCHAR *checkid(M_WCHAR *id);
 
-void checkmsghead (M_NOPAR);
+void checkmsghead (void);
 
-void dumpxref(M_NOPAR);
+void dumpxref(void);
 
 void echohead(M_WCHAR *p);
 
 void mb_echohead(char *p);
 
-void endhead(M_NOPAR);
+void endhead(void);
 
 void esoutchar(M_WCHAR textchar);
 
@@ -70,7 +70,7 @@ char *m_itoa(int n, char *s);
 
 LOGICAL m_letter(M_WCHAR c);
 
-void loadxref(M_NOPAR);
+void loadxref(void);
 
 int m_lower(int c);
 
@@ -84,7 +84,7 @@ void realoutchar(M_WCHAR textchar, FILE *outfile);
 
 void rsectstart(M_WCHAR *id);
 
-void rseqend(M_NOPAR);
+void rseqend(void);
 
 M_WCHAR *searchforfile(M_WCHAR *file);
 
@@ -144,7 +144,7 @@ void StartLabList(M_WCHAR *spacing,
 
 void StartList(M_WCHAR *type, M_WCHAR *order, M_WCHAR *spacing, M_WCHAR *cont);
 
-void EndList(M_NOPAR);
+void EndList(void);
 
 void strcode(M_WCHAR *string, FILE *outfile);
 
@@ -160,7 +160,7 @@ void termchar(M_WCHAR textchar);
 
 void termpi(int m_enttype, M_WCHAR *m_pi, M_WCHAR *m_entname);
 
-void texinit(M_NOPAR);
+void texinit(void);
 
 int vextextsize(const M_WCHAR *keyword);
 
@@ -189,7 +189,7 @@ char *GetDefaultHeaderString(char          *elementName,
   char          *defaultString);
 
 
-void SetDefaultLocale(M_NOPAR);
+void SetDefaultLocale(void);
 
 char *MakeMByteString(const M_WCHAR *from);
 
@@ -221,11 +221,11 @@ M_WCHAR wc_toupper(     M_WCHAR wc);
 
 M_WCHAR *wc_stringtoupper(     M_WCHAR *wcp);
 
-int NextId(M_NOPAR);
+int NextId(void);
 
-char *GetLanguage(M_NOPAR);
+char *GetLanguage(void);
 
-char *GetCharset(M_NOPAR);
+char *GetCharset(void);
 
 void HandleLink(  M_WCHAR *hyperlink,
     M_WCHAR *type,
@@ -241,7 +241,7 @@ void Add2ToRowVec(  int *length, char **rowvec, char *id1, char *id2);
 
 void StartEx(M_WCHAR *notes, M_WCHAR *lines, M_WCHAR *textsize);
 
-void EndEx(M_NOPAR);
+void EndEx(void);
 
 void StartNCW(char *which);
 
@@ -251,14 +251,14 @@ void AddToSNB(char *id, char *iconName);
 
 void StartNCWtext(char *which, char *iconFile, char *headingString);
 
-void IncludeToss(M_NOPAR);
+void IncludeToss(void);
 
 M_WCHAR *CycleEnt(  LOGICAL init,
     unsigned char *type,
     M_WCHAR ***content,
     unsigned char *wheredef);
 
-void ModifyEntities(M_NOPAR);
+void ModifyEntities(void);
 
 void PushForm(char *class,
   char *ssi,
@@ -269,12 +269,12 @@ void PushForm2(char *class,
   char *id1,
   char *id2);
 
-void PopForm(M_NOPAR);
+void PopForm(void);
 
-void PopForm2(M_NOPAR);
+void PopForm2(void);
 
-void PopFormMaybe(M_NOPAR);
+void PopFormMaybe(void);
 
-void EmitSavedAnchors(M_NOPAR);
+void EmitSavedAnchors(void);
 
-void CloseVirpage(M_NOPAR);
+void CloseVirpage(void);
index 96e63bd510c11eb4ff5eae94de95d9dce066beb5..8e7cb5608f1ff34ba1693d034d5bdbf44b6d2a0e 100644 (file)
@@ -32,7 +32,7 @@
 #include "LocaleXlate.h"
 #include "XlationSvc.h"
 
-void assert_hometopic_exists(M_NOPAR)
+void assert_hometopic_exists(void)
 {
 static const char hometopic[] = "-HOMETOPIC";
 char id[SDLNAMESIZ + sizeof(hometopic)];
@@ -61,7 +61,7 @@ m_free(string, "GetDefaultHeaderString return");
 
 /* Determine base name for files (i.e., input name without extension).
    Open output and error files */
-void fbasename(M_NOPAR)
+void fbasename(void)
 {
 char *p, *q;
 int n;
@@ -292,7 +292,7 @@ if (*chapterSuffixString)
 
 /* Called at end of manual to report terms that occurred in the document
    but not entered in the glossary */
-void checkgloss(M_NOPAR)
+void checkgloss(void)
 {
 int n;
 M_WCHAR id[MAXTERM + 1];
@@ -329,7 +329,7 @@ while (TRUE)
                
 /* End Error Message macro \starterrmsg call, check to see if Error Message
    head is user specified or default */
-void checkmsghead(M_NOPAR)
+void checkmsghead(void)
 {
 char *string =
     GetDefaultHeaderString("MessagesElementDefaultHeadingString",
@@ -933,7 +933,7 @@ chapst = TRUE;
 
 /* Called at the end of a chapter, appendix, or section to end an open
    sequence of rsects */
-void rseqend(M_NOPAR)
+void rseqend(void)
 {
 if (rsectseq)
     --thisnodelevel;
@@ -1284,7 +1284,7 @@ if (lastlist->type == BULLET) bulcount-- ;
 
 
 /* Open and initialize TeX file */
-void texinit(M_NOPAR)
+void texinit(void)
 {
 LOGICAL init = TRUE;
 unsigned char type;
index 29610ae61e7309e9292d62ba9fcb5e3f3164de70..804b21356c7d1fa8ce98823406fd88d893e6fb30 100644 (file)
@@ -67,7 +67,7 @@ m_free(wc,"wide character string");
 
 /* Called at end of a head in a chapter, appendix, section, or
    reference section */
-void endhead(M_NOPAR)
+void endhead(void)
 {
 if (savid)
     {
index 28fd4ffa0939d225ec9d07aee9e9babc56f6a7be..4a1259d6575fddca39e041adc62fab85ff96c355 100644 (file)
@@ -143,7 +143,7 @@ m_free(csname, "csname");
 
 /* Write cross-reference file for next time document is processed
    and TeX macro file for post-processing this pass */
-void dumpxref(M_NOPAR)
+void dumpxref(void)
 {
 int n;
 M_WCHAR id[M_NAMELEN + 1];
@@ -214,7 +214,7 @@ xstrlen += length;
 
 /* Initializes cross-reference table reading in file output from previous
    pass through document */
-void loadxref(M_NOPAR)
+void loadxref(void)
 {
 M_WCHAR id[M_NAMELEN + 1];
 char c, d;
index 385b4b613c5cb4ee6550911fbe18bfc24fefb4f4..28fabb844c6782bce6c064cce37ede346efae4c5 100644 (file)
@@ -137,7 +137,7 @@ void m_findchain(M_PARSE *stackptr, int start, int chainin, int *chainout, int *
 /* Process global end string.  In separate procedure to keep all references
    to if.h in one source file and minimize recompilation if interface
    changes. */
-void m_globes(M_NOPAR)
+void m_globes(void)
 {
 M_WCHAR *wc_string;
 
@@ -149,7 +149,7 @@ m_free(wc_string,"wide character string");
 /* Process global start string.  In separate procedure to keep all references
    to if.h in one source file and minimize recompilation if interface
    changes. */
-void m_globss(M_NOPAR)
+void m_globss(void)
 {
 M_WCHAR *wc_string;
 
index 00559eb3ed0c5b9dd4eb08b8ccdb0febd5e87efe..c1257c0f951482ff732be439364c42a5722cf563 100644 (file)
@@ -29,7 +29,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "globdec.h"
 
 /* Write error message prefix */
-void m_eprefix(M_NOPAR)
+void m_eprefix(void)
   {
     m_errline("\n*****\n") ;
     }
index c1d02d1d425f9a5b74449aee62f491ff30059e47..9857cdba82da6ebd8ad5c0c510df446118a004b0 100644 (file)
@@ -334,7 +334,7 @@ void m_getline(file, line)
 
 /* Dump last characters read from input stream to give context to
    an error message */
-void m_lastchars(M_NOPAR)
+void m_lastchars(void)
 {
 int i;
 M_WCHAR buffer[2];
@@ -383,14 +383,14 @@ if ((m_svlncnt[m_sysecnt] &&
 }
 
 /* Display information about the current element */
-void m_showcurelt(M_NOPAR)
+void m_showcurelt(void)
   {
     if (m_stacktop->oldtop)
       m_dispcurelt(m_stacktop->file, m_stacktop->line);
     }    
 
 /* Start an error message */
-void m_startmsg(M_NOPAR)
+void m_startmsg(void)
   {
     m_eprefix();
     m_errexit = TRUE;
@@ -398,7 +398,7 @@ void m_startmsg(M_NOPAR)
 
 /* Return the name of the current input file (most recently opened, but
    unclosed SYSTEM entity) */
-M_WCHAR *m_thisfile(M_NOPAR)
+M_WCHAR *m_thisfile(void)
   {
     int i;
 
@@ -411,7 +411,7 @@ M_WCHAR *m_thisfile(M_NOPAR)
     }
 
 /* Return the line number in the current input file */
-int m_thisline(M_NOPAR)
+int m_thisline(void)
   {
     return(m_line[m_sysecnt]);
     }
index 0870464b57fb68b4d5d644b436ba7abae0937139..6d5d513f8ef73e3257882a1d4ef4b24fab6dd679 100644 (file)
@@ -32,7 +32,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #endif
 
 /* Write error message suffix */
-void m_esuffix(M_NOPAR)
+void m_esuffix(void)
   {
     m_errline("\n") ;
     m_dumpline(m_thisfile(), m_thisline()) ;
index d3182b7e5f226ecbc1fa54b5b72d13e0a4d0ae04..c5f2fad9fd699cfc5a2025523a5b15897b501a7f 100644 (file)
@@ -34,7 +34,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "parser.h"
 #include "signonx.h"
 
-void m_getsignon(M_NOPAR)
+void m_getsignon(void)
   {
     m_errline(m_signon) ;
     }
index 1866e3fa8e0341b7d3962d4c9b7fbc301d439d32..ab81425c360b0bb58b94aae663787d23327c4588 100644 (file)
@@ -39,7 +39,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "parser.h"
 
 /* M_etcomplete is called when a complete end-tag has been read */
-void m_etcomplete(M_NOPAR)
+void m_etcomplete(void)
   {
     if (! m_scanel) {
       M_WCHAR *wc_etago, *wc_tagc;
@@ -91,7 +91,7 @@ void m_frcend(val)
 
 /* M_frcstart is called to force the start of an element when that element
    cannot legally occur in the current context but does appear in the text*/
-void m_frcstart(M_NOPAR)
+void m_frcstart(void)
   {
     m_push(m_scanel, m_element[m_scanel - 1].start, m_scannet) ;
     if (m_scannet) m_netlevel++ ;
@@ -108,7 +108,7 @@ void m_frcstart(M_NOPAR)
 
 /* M_holdproc processes a RE that was saved to test if it was the last
    RE in an element's content */
-void m_holdproc(M_NOPAR)
+void m_holdproc(void)
   {
     if (m_stacktop->holdre) {
       m_stacktop->holdre = FALSE ;
@@ -122,7 +122,7 @@ void m_holdproc(M_NOPAR)
     }
 
 /* M_stcomplete is called when a complete start tag has been recognized */
-void m_stcomplete(M_NOPAR)
+void m_stcomplete(void)
   {
     if (! m_scanel) return ;
     if (m_strtproc(m_scanel))
index 180aaf405540e874c63f294ce63b32f9ae7b4eab..fffe1fe6c857622b2fbf62db03413883064142ef 100644 (file)
@@ -43,7 +43,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 /* M_expecting reports to the user the possible valid content at a particular
    state in the parse of the document */
-void m_expecting(M_NOPAR)
+void m_expecting(void)
   {
     LOGICAL expstart = TRUE ;
     M_PARSE *stackptr ;
@@ -276,7 +276,7 @@ M_ELEMENT m_findunique(from, newleft)
 
 /* M_nullendtag is called when a null end tag is encountered; i.e., at the
    end of a short element */
-void m_nullendtag(M_NOPAR)
+void m_nullendtag(void)
   {
     LOGICAL foundnet ;
 
@@ -307,7 +307,7 @@ void m_nullendtag(M_NOPAR)
 
 /* Tests to see if an end tag may have been omitted at this point in the
    parse.*/
-LOGICAL m_omitend(M_NOPAR)
+LOGICAL m_omitend(void)
   {
     M_ANDGROUP pand ;
     M_OPENFSA *fsastack ;
index 4df1feb91b486b1adc13686b4c29fcc37cb7012f..0ec9fb4b2b7b86d8fb03e5d7f4708c460d2e52ce 100644 (file)
@@ -28,7 +28,7 @@
 #include "userinc.h"
 #include "globdec.h"
 
-void *m_openfirst(M_NOPAR)
+void *m_openfirst(void)
   {
     return((void *) stdin) ;
     }
index 1aa606098cd5bdb74214bc1422935a83d1d075a9..98446638ab83f7dd6c32b215ab9af79ed424bc3f 100644 (file)
@@ -117,7 +117,7 @@ LOGICAL m_attvonly(string)
 
 /* Check a name previously saved in m_saveatt to see if it is the name of
    a valid parameter for the current start tag */
-void m_findatt(M_NOPAR)
+void m_findatt(void)
   {
     int par, i ;
 
@@ -220,7 +220,7 @@ void m_parupper(par, string)
 
 /* Set all parameters to their default values for an element included by
    tag minimization */
-void m_stkdefaultparams(M_NOPAR)
+void m_stkdefaultparams(void)
   {
     int i, par = 0 ;
 
@@ -272,7 +272,7 @@ void m_stkonedef(par, scanel, poccur, i)
     }
 
 /* Stack parameter values */
-void m_stkparams(M_NOPAR)
+void m_stkparams(void)
   {
     int i, par ;
 
index bad227adbbf835d1c7ecc61e29b10b058d7867ce..58f991ed362f1605ff84952048e0be48e5b76b3d 100644 (file)
@@ -48,7 +48,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "version.h"
 
 /* Adjust parsing state after each token if necessary */
-void m_adjuststate(M_NOPAR)
+void m_adjuststate(void)
   {
     if (m_curcon == START) {
       if (m_netlevel) {
@@ -79,7 +79,7 @@ void m_adjuststate(M_NOPAR)
 
 /* Tests whether the element named in a tag is defined; if so, returns its
    index; otherwise return FALSE */
-M_ELEMENT m_eltname(M_NOPAR)
+M_ELEMENT m_eltname(void)
   {
     M_ELEMENT eltid ;
 
@@ -103,7 +103,7 @@ return i;
 }
 
 /* Program initialization */
-void m_initialize(M_NOPAR)
+void m_initialize(void)
 {
 char    **mb_delims;
 M_WCHAR **wc_delims;
index 2ca9badc80eef0fc9865ca096d9f7b0367c81ace..b7e86e1e6351b8b44a6fc0ae1eac79e56eb73a97 100644 (file)
@@ -21,9 +21,9 @@
  * Floor, Boston, MA 02110-1301 USA
  */
 /* $XConsortium: proto.h /main/3 1995/11/08 09:42:21 rswiston $ */
-int m_actgetc(M_NOPAR);
+int m_actgetc(void);
 
-void m_adjuststate(M_NOPAR);
+void m_adjuststate(void);
 
 LOGICAL m_allwhite(const M_WCHAR *string);
 
@@ -41,20 +41,20 @@ void m_closent(void *m_ptr);
 
 void m_codeent(int m_ent);
 
-M_PARSE *m_copystackelt(M_NOPAR);
+M_PARSE *m_copystackelt(void);
 
 M_WCHAR *m_cyclent(LOGICAL init, unsigned char *type, M_WCHAR **content, 
   unsigned char *wheredef);
 
 void m_dispcurelt(M_WCHAR *file, int line);
 
-void m_done(M_NOPAR);
+void m_done(void);
 
 void m_dumpline(M_WCHAR *file, int line);
 
 void m_eduptype(int type);
 
-M_ELEMENT m_eltname(M_NOPAR);
+M_ELEMENT m_eltname(void);
 
 void m_endaction(M_ELEMENT m_elt);
 
@@ -64,7 +64,7 @@ void m_endtag(M_ELEMENT c);
 
 void m_entexpand(M_ENTITY *openent);
 
-void m_eprefix(M_NOPAR);
+void m_eprefix(void);
 
 void m_err1(const char *text, const M_WCHAR *arg);
 
@@ -87,15 +87,15 @@ void m_errline(char *p);
 
 void m_error(char *text);
 
-void m_esuffix(M_NOPAR);
+void m_esuffix(void);
 
 void m_exit(int status);
 
-void m_etcomplete(M_NOPAR);
+void m_etcomplete(void);
 
 LOGICAL m_excluded(M_ELEMENT elt);
 
-void m_expecting(M_NOPAR);
+void m_expecting(void);
 
 void m_expexpand(LOGICAL *expstart, M_STATE node, LOGICAL *required, LOGICAL *data);
 
@@ -105,7 +105,7 @@ void m_exptend(LOGICAL *expstart, M_PARSE *stackptr);
 
 int m_findact(M_ELEMENT elt, int *array);
 
-void m_findatt(M_NOPAR);
+void m_findatt(void);
 
 void m_findchain(M_PARSE *stackptr, int start, int chainin, int *chainout, int *index, 
   LOGICAL wild);
@@ -116,7 +116,7 @@ M_ELEMENT m_findunique(M_STATE from, int *newleft);
 
 void m_frcend(M_ELEMENT val);
 
-void m_frcstart(M_NOPAR);
+void m_frcstart(void);
 
 void m_free(void *block, char *msg);
 
@@ -141,23 +141,23 @@ void m_getline(M_WCHAR **file, int *line);
 
 void m_getname(M_WCHAR first);
 
-void m_getsignon(M_NOPAR);
+void m_getsignon(void);
 
 int m_gettoken(int *c, M_HOLDTYPE *dchar, int context);
 
-void m_globes(M_NOPAR);
+void m_globes(void);
 
-void m_globss(M_NOPAR);
+void m_globss(void);
 
-void m_holdproc(M_NOPAR);
+void m_holdproc(void);
 
 void m_inctest(int *count, int limit, char *message);
 
-void m_initctype(M_NOPAR);
+void m_initctype(void);
 
-void m_initialize(M_NOPAR);
+void m_initialize(void);
 
-void m_lastchars(M_NOPAR);
+void m_lastchars(void);
 
 int m_level(M_WCHAR *elt);
 
@@ -183,17 +183,17 @@ void m_nextdelimchar(int *n, int i, LOGICAL *linestart, LOGICAL newlinestart, LO
 
 void m_ntrent(M_WCHAR *p);
 
-void m_nullendtag(M_NOPAR);
+void m_nullendtag(void);
 
-LOGICAL m_omitend(M_NOPAR);
+LOGICAL m_omitend(void);
 
-LOGICAL m_omitstart(M_NOPAR);
+LOGICAL m_omitstart(void);
 
 void m_openchk(FILE **ptr, char *name, char *mode);
 
 void *m_openent(M_WCHAR *entcontent);
 
-void *m_openfirst(M_NOPAR);
+void *m_openfirst(void);
 
 void m_optstring(char *p);
 
@@ -217,13 +217,13 @@ LOGICAL m_parvalok(M_WCHAR *elt, M_WCHAR *param, const M_WCHAR *value);
 
 void m_piaction(M_WCHAR *m_pi, M_WCHAR *m_entname, int m_enttype);
 
-void m_pop(M_NOPAR);
+void m_pop(void);
 
 void m_push(M_ELEMENT elt, M_STATE current, LOGICAL need);
 
 LOGICAL m_putdata(void *data, int n);
 
-void m_readcomments(M_NOPAR);
+void m_readcomments(void);
 
 void *m_realloc(void *ptr, int size, char *msg);
 
@@ -231,31 +231,31 @@ int m_scan(LOGICAL prolog);
 
 void m_setmap(int map, LOGICAL useoradd);
 
-void m_setoptions(M_NOPAR);
+void m_setoptions(void);
 
 void m_setparam(M_WCHAR **cvar, int par);
 
 void m_shortref(int context);
 
-void m_showcurelt(M_NOPAR);
+void m_showcurelt(void);
 
 void m_signmsg(char *p);
 
-void m_sigre(M_NOPAR);
+void m_sigre(void);
 
-void m_startdoc(M_NOPAR);
+void m_startdoc(void);
 
-void m_startmsg(M_NOPAR);
+void m_startmsg(void);
 
 void m_stcaction(M_WCHAR *m_string, LOGICAL M_START, LOGICAL M_END);
 
-void m_stcomplete(M_NOPAR);
+void m_stcomplete(void);
 
-void m_stkdefaultparams(M_NOPAR);
+void m_stkdefaultparams(void);
 
 void m_stkonedef(int par, M_ELEMENT scanel, M_WCHAR **poccur, int i);
 
-void m_stkparams(M_NOPAR);
+void m_stkparams(void);
 
 void m_strtaction(M_ELEMENT m_elt);
 
@@ -271,11 +271,11 @@ void m_textaction(M_WCHAR m_textchar);
 
 void m_textout(char *format, LOGICAL start, LOGICAL end);
 
-LOGICAL m_textpermitted(M_NOPAR);
+LOGICAL m_textpermitted(void);
 
-M_WCHAR *m_thisfile(M_NOPAR);
+M_WCHAR *m_thisfile(void);
 
-int m_thisline(M_NOPAR);
+int m_thisline(void);
 
 void m_trace(char *p);
 
@@ -297,7 +297,7 @@ int m_mbmbupstrcmp(const char *p, const char *q);
 
 LOGICAL m_validinpar(M_WCHAR *string);
 
-LOGICAL m_vldentref(M_NOPAR);
+LOGICAL m_vldentref(void);
 
 LOGICAL m_whitespace(M_WCHAR c);
 
index d7f765f2e9b1d629412abe8f01e88806af4e6807..2426e65cad1cc3dd26df8b32068b5f98f3e2d539 100644 (file)
@@ -51,7 +51,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "sref.h"
 
 /* Actually read a character from an input stream */
-int m_actgetc(M_NOPAR)
+int m_actgetc(void)
   {
     int c ;
 
@@ -690,7 +690,7 @@ void m_nextdelimchar(int *n, int i, LOGICAL *linestart, LOGICAL newlinestart,
     }
 
 /* Scans past a comment within a markup declaration */
-void m_readcomments(M_NOPAR)
+void m_readcomments(void)
   {
     int c ;
     M_HOLDTYPE dchar ;
@@ -1050,7 +1050,7 @@ while (TRUE)
           or contextual end tag [linestat == M_SOMETHING]
       3)  If a record end might be the last one in an element, save it
 */
-void m_sigre(M_NOPAR)
+void m_sigre(void)
   {
     /* Check for first RE in content and no preceding content */
     if (m_start &&
@@ -1126,7 +1126,7 @@ void m_ungetachar(int c, M_HOLDTYPE dchar, LOGICAL preread)
     }
 
 /* Have encountered an M_ERO.  If the entity reference is valid, process it*/
-LOGICAL m_vldentref(M_NOPAR)
+LOGICAL m_vldentref(void)
   {
     M_HOLDTYPE dchar ;
     int next ;
index ad7470771ec9266ccd51d32b662a5c806e55f5cc..b984d67d661aa01a9b69aa12c981eab24056a14d 100644 (file)
@@ -30,7 +30,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 
 
 /* Set program options */
-void m_setoptions(M_NOPAR)
+void m_setoptions(void)
   {
     if (m_argc > 1) m_optstring(m_argv[1]) ;
     }
index f8519b3b0b75aedc81ee25073390e2151bd1e4a2..7e7c98bfee181bf37c5295f9f4837f9205b626f5 100644 (file)
@@ -32,7 +32,7 @@ Copyright 1989 Hewlett-Packard Co.
    control after all entity declarations have been processed.  Not needed
    in valid documents (when it is called just prior to global start-code),
    but may be useful in some applications nevertheless. */
-void m_startdoc(M_NOPAR)
+void m_startdoc(void)
   {
     }
 
index 23b02d2b1115e28e07cc388f2f26f84b1246cb89..3130929b1825ba5706ed557977145681dd08efa6 100644 (file)
@@ -191,7 +191,7 @@ LOGICAL m_ckend(M_ELEMENT val, LOGICAL neednet)
 
 /* Make a copy of the stack entry at the top of the parse stack in a scratch
    area */
-M_PARSE *m_copystackelt(M_NOPAR)
+M_PARSE *m_copystackelt(void)
   {
     M_OPENFSA *oldfsa ;
     M_OPENFSA **newfsa ;
@@ -219,7 +219,7 @@ M_PARSE *m_copystackelt(M_NOPAR)
     }
 
 /* End of document */
-void m_done(M_NOPAR)
+void m_done(void)
   {
     M_ELEMENT lastelt ;
 
@@ -398,7 +398,7 @@ LOGICAL m_nextand(thisfsa, label)
     }
 
 /* Pops the parse stack*/
-void m_pop(M_NOPAR)
+void m_pop(void)
   {
     M_PARSE *stackelt ;
 
@@ -664,7 +664,7 @@ void m_strttag(M_ELEMENT val, LOGICAL net)
    makes more sense, is used by MARKUP, and is under consideration by the
    Standards committee; the latter is the current definition in the Standard
    */
-LOGICAL m_textpermitted(M_NOPAR)
+LOGICAL m_textpermitted(void)
   {
     M_ANDGROUP pand ;
     M_OPENFSA *fsastack ;
index ea74d5f185216b0a89b99f99904d40458bf81419..b8057c985508f1ca12d618efbb8fb5f1999c136f 100644 (file)
@@ -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);
index e4863ce3544458a7f2a9ceb8ea8b87eb428cb0b7..4b060ec4c706a8f4ef41850e48b7d3fe47ba69bb 100644 (file)
@@ -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);
 
index 6fc6f5bd13cb02e2b91b6e6c989fd972248e749d..a6ab7a02487ea914da2a764149a3ad610bd2bb92 100644 (file)
@@ -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;
@@ -448,7 +448,7 @@ dcount++;
 }
 
 /* Read delimiter definitions from delim.dat */
-void loaddelim(M_NOPAR)
+void loaddelim(void)
 {
 int c;
 M_WCHAR *p;
@@ -654,7 +654,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)
 {
 }
 
index 5afdeaa9e2eb78f698ff783df054717a7611aa94..a8590f507783f99f27180fded369b105f32bb91d 100644 (file)
@@ -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) ;
index 4d971c90dec5778811c7b126a23e733ad9e772f9..9f03df46de2ad08feaeff7679d107e302d23e48d 100644 (file)
@@ -29,7 +29,7 @@
 #include "common.h"
 extern char m_chartype[M_CHARSETLEN] ;
 
-void m_initctype(M_NOPAR)
+void m_initctype(void)
   {
     int i ;
 
index 520a96cef4148553f4f2f9a18098b3a077f5ef83..06800d850f2db12b665d3c796068aad9e71b951f 100644 (file)
@@ -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);
 
@@ -81,7 +81,7 @@ void m_free(block, msg)
     }
 
 #if defined(MSDOS)
-void m_heapdump(M_NOPAR)
+void m_heapdump(void)
   {
     struct _heapinfo hinfo ;
     int heapstatus ;
index ca3ee61097b405bd0162c3825d3298a867988a33..5b1aaffca393bf2a99ecc37be50a6f93ce09ceb2 100644 (file)
@@ -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;
index fe3876224a21343f7d7819864b7e4c683a0246fb..d32958ec485aaf9df683e26044662845caa8b374 100644 (file)
@@ -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 ;
 
index 0755b8a6bf21c27a7d23b832e89e4c72ab6a863f..bf2a9da5f9d172cacb258e01785baf3255c85487 100644 (file)
@@ -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);
 
index 6e137577b7b20fbce1516ab57feef08d1aac5a78..735c8267d167d9886422c9b3df41a0dd7bdc3853 100644 (file)
@@ -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 ;
index 4b877462cd575efdad52599716ee3da60affb02d..e9686335b181479f15492333788e8f058918a358 100644 (file)
@@ -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") ;
index aeb14383ca09244426d1d8c5b9dc7a5b70ae8671..0ebc8c25c52d0e1fb11367293cc2d0508034a04d 100644 (file)
@@ -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 ;
 
index 3d9a344adb78a3e5e18ae708929df7eb09c7326c..4db1d58478d9a95eb7d91e933d376a18d1649c21 100644 (file)
@@ -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;
@@ -629,7 +629,7 @@ fputs("  <END-STRING><\\END-STRING>\n", tempfile) ;
 }
 
 /* Write template */
-void template(M_NOPAR)
+void template(void)
   {
     FILE *tempfile ;
     M_ENTITY *ent ;
index 16f76a3b81e4c0dac3f13b2fc38b94f88ba6b82d..97753c0c43767213db0fef6c4dd8b730be724e85 100644 (file)
@@ -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 ;
index 0573aa9ba7da9fd08d790c21ca92890f52cfbd24..e5396c6b903b2daebad96f3778b4b190fdf8ed14 100644 (file)
@@ -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);
 
index 9f0c5daa8615d4a9a1b916e87516fa13ebd0fd5b..7826aa8c0ad1b3176353ac349fd40a0ea579fdbe 100644 (file)
@@ -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;
index 78581d7b8e1470d24a5df2b2b1816747cf7df58d..0bf9b0b6f561a75b1275435c7d9bc2b9bf693060 100644 (file)
@@ -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)
     {
index b7eba71247c86ff6ca43b3eec1232ec01e56b455..423557004e292f145e9d5bf1e4943e3492e2ec6a 100644 (file)
@@ -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 ;
 
index e9f76f65c5a8cf06a64db128863a0c72d4e3119e..2f99be16f615b0976ab22515828268271287147e 100644 (file)
@@ -398,7 +398,7 @@ tagc
   postent:start
   codetagc:inentc {
             startcode(entity->codeindex, &inent, entfile,
-                      "c", nopar, nopar, "") ;
+                      "c", "void", "void", "") ;
             }
   close:preparam
   sschain:inss {
@@ -420,11 +420,11 @@ tagc
             }
   scchain:insc {
             *getaction(scarray) = ++sactions ;
-            startcode(sactions, &insc, sfile, "s", nopar, nopar, "") ;
+            startcode(sactions, &insc, sfile, "s", "void", "void", "") ;
             }
   ecchain:inec {
             *getaction(ecarray) = ++eactions ;
-            startcode(eactions, &inec, efile, "e", nopar, nopar, "") ;
+            startcode(eactions, &inec, efile, "e", "void", "void", "") ;
             }
   stcchain:instc {
             *getaction(stcarray) = ++stactions ;
index ed705633379e94032fdbcb71f1b7eefe0de72b44..914f49bd7e8a162db32cc3dc133d2248c4483dc4 100644 (file)
@@ -215,7 +215,6 @@ ELTEXTERN int restart ELTINIT(RENTITY) ;
 #define stproto "M_WCHAR *m_string, LOGICAL M_START, LOGICAL M_END"
 #define stformal "m_string, M_START, M_END"
 #define stft "  M_WCHAR *m_string ;\n  LOGICAL M_START ;\n  LOGICAL M_END ;\n"
-#define nopar "M_NOPAR"
 
 /* Structures for generating defines for parameter values */
 ELTEXTERN M_TRIE parval ;
index 19b90905a648306b9455dd2d273b1f0dba0ec9cd..e4faf649de3bb6f6952dfed17b27f6416907b6cb 100644 (file)
@@ -92,7 +92,7 @@ void closeiffile(LOGICAL flag, FILE *file, int count, char *table, char *proto)
 
 /* Called when the C identifier to be #define'd to a parameter value is
    scanned */
-void cvalue(M_NOPAR)
+void cvalue(void)
   {
     PARVAL *new;
 
@@ -111,18 +111,18 @@ void cvalue(M_NOPAR)
 
 /* Called after last input character is read to place closing punctuation
    at end of output files and close them */
-void done(M_NOPAR)
+void done(void)
   {
     M_ENTITY *ent;
     ACTION *actp;
     LOGICAL first;
     int i;
 
-    closeiffile(inent, entfile, codeent, "c", nopar);
+    closeiffile(inent, entfile, codeent, "c", "void");
     closeiffile(intext, tfile, tactions, "t", tproto);
     closeiffile(inpc, pfile, pactions, "p", pproto);
-    closeiffile(insc, sfile, sactions, "s", nopar);
-    closeiffile(inec, efile, eactions, "e", nopar);
+    closeiffile(insc, sfile, sactions, "s", "void");
+    closeiffile(inec, efile, eactions, "e", "void");
     closeiffile(instc, stfile, stactions, "st", stproto);
 
     endstring();
@@ -190,7 +190,7 @@ void endcode(LOGICAL flag, FILE *file)
     }
 
 /* Called at the end of all initial fields in the interface definition */
-void endini(M_NOPAR)
+void endini(void)
   {
     if (finitext) 
       fputs("    putc(m_textchar, m_outfile);\n", tfile);
@@ -209,7 +209,7 @@ void endini(M_NOPAR)
 
 /* End the sign-on message */
 #include <time.h>
-void endsignon(M_NOPAR)
+void endsignon(void)
   {
     time_t storetime;
     char *p;
@@ -255,7 +255,7 @@ void endsignon(M_NOPAR)
     }
 
 /* Closes a start-string or end-string */
-void endstring(M_NOPAR)
+void endstring(void)
   {
     if (instring) {
       if (stringstart) stringstart = FALSE;
@@ -282,7 +282,7 @@ void enttype(type)
     }
 
 /* Free storage used for a context-specification chain */
-void freechain(M_NOPAR)
+void freechain(void)
   {
     CHAIN *chainp, *dchainp;
 
@@ -333,7 +333,7 @@ int *getaction(array)
     }
 
 /* Allocate new action structure */
-ACTION *getactstruct(M_NOPAR)
+ACTION *getactstruct(void)
   {
     ACTION *new;
 
@@ -347,7 +347,7 @@ ACTION *getactstruct(M_NOPAR)
     }
 
 /* Program initialization */
-void initialize(M_NOPAR)
+void initialize(void)
 {
 char    **mb_delims;
 M_WCHAR **wc_delims;
@@ -411,13 +411,13 @@ fputs("#endif\n", ifh);
 
 startcode(pactions, &inpc, pfile, "p", pproto, pformal, pftype);
 startcode(tactions, &intext, tfile, "t", tproto, tformal, tftype);
-startcode(sactions, &insc, sfile, "s", nopar, nopar, "");
-startcode(eactions, &inec, efile, "e", nopar, nopar, "");
+startcode(sactions, &insc, sfile, "s", "void", "void", "");
+startcode(eactions, &inec, efile, "e", "void", "void", "");
 startcode(stactions, &instc, stfile, "st", stproto, stformal, stft);
 }
 
 /* Output definitions for strings */
-void outstring(M_NOPAR)
+void outstring(void)
   {
     int c;
 
@@ -480,7 +480,7 @@ for ( ; p ; p = p->next)
 }
 
 /* Skip rest of statement after an error */
-void skiptoend(M_NOPAR)
+void skiptoend(void)
   {
     int i;
     static int errlev = 0;
@@ -580,7 +580,7 @@ fprintf(file, "{\n/* line %d \"%s\" */\n", m_line, iffile); /* balance "}" */
 }
 
 /* Begins processing a new element */
-void startelement(M_NOPAR)
+void startelement(void)
   {
     CVARSTRUCT *cvarp;
     CVARSTRUCT *discard;
@@ -601,7 +601,7 @@ void startelement(M_NOPAR)
     }
 
 /* Stores the name of a C variable read from the input file */
-void storecvar(M_NOPAR)
+void storecvar(void)
   {
     CVARSTRUCT *new;
 
@@ -616,7 +616,7 @@ void storecvar(M_NOPAR)
 /* Compares the parameter name associated with a C variable in the input
    file with the names of all parameters of the current element.  Stores
    result for later output with code segments */
-void storepname(M_NOPAR)
+void storepname(void)
   {
     int i, par;
 
index 2d9ef5038e1982bc813ba61c059e5cc726cee1ff..ba0e7ba213fccf46464efacf8e04434073254770 100644 (file)
@@ -35,7 +35,7 @@
 #include "entext.h"
 
 /* Add an entity */
-void addent(M_NOPAR)
+void addent(void)
   {
     M_ENTITY *new ;
 
index 0211bba93f10662bac0da09830bec18571f08009..fb7810839dc5474ef50f1fda9b9fac26c499bb00 100644 (file)
@@ -30,7 +30,7 @@
 
 void actptrout(ACTION **array, char *name);
 
-void addent(M_NOPAR);
+void addent(void);
 
 LOGICAL m_allwhite(const M_WCHAR *string);
 
@@ -38,10 +38,10 @@ void closeiffile(LOGICAL flag, FILE *file, int count, char *table, char *proto);
 
 void countdown(M_TRIE *parent, int *count);
 
-void cvalue(M_NOPAR);
+void cvalue(void);
 
 
-void done(M_NOPAR);
+void done(void);
 
 void m_dumptrie(FILE *file,
   M_TRIE *xtrie,
@@ -51,11 +51,11 @@ void m_dumptrie(FILE *file,
 
 void endcode(LOGICAL flag, FILE *file);
 
-void endini(M_NOPAR);
+void endini(void);
 
-void endsignon(M_NOPAR);
+void endsignon(void);
 
-void endstring(M_NOPAR);
+void endstring(void);
 
 void entout(char *fname);
 
@@ -78,21 +78,21 @@ void m_exit(int status);
 
 void m_free(void *block, char *msg);
 
-void freechain(M_NOPAR);
+void freechain(void);
 
-int getachar(M_NOPAR);
+int getachar(void);
 
 int *getaction(ACTION **array);
 
-ACTION *getactstruct(M_NOPAR);
+ACTION *getactstruct(void);
 
 void getname(int first);
 
 int gettoken(int *c, int context);
 
-void m_initctype(M_NOPAR);
+void m_initctype(void);
 
-void initialize(M_NOPAR);
+void initialize(void);
 
 LOGICAL m_letter(M_WCHAR c);
 
@@ -106,24 +106,24 @@ void m_openchk(FILE **ptr, char *name, char *mode);
 
 void outpval(M_TRIE *p);
 
-void outstring(M_NOPAR);
+void outstring(void);
 
 int m_packedlook(M_PTRIE *xptrie, M_WCHAR *name);
 
 const M_WCHAR *m_partype(const int par, const M_WCHAR *string);
 
-int scan(M_NOPAR);
+int scan(void);
 
-void skiptoend(M_NOPAR);
+void skiptoend(void);
 
 void startcode(int caseno, LOGICAL *flag, FILE *file, char *prefix, char *proto,
   char *formal, char *formtype);
 
-void startelement(M_NOPAR);
+void startelement(void);
 
-void storecvar(M_NOPAR);
+void storecvar(void);
 
-void storepname(M_NOPAR);
+void storepname(void);
 
 void undodelim(M_WCHAR *delim);
 
index cbc0ad8902571d44dfa3a2daff47f994e0f82657..d0cda0bbcbf1f8970a37deef0b040b0b0a1882a2 100644 (file)
@@ -86,7 +86,7 @@ ungetachar(c);
 }
 
 /* Reads the next token and returns it to the main procedure */
-int scan(M_NOPAR)
+int scan(void)
 {
 int c;
 int n;
index 1813100b07b2ee07c41ea6789d40cb1cb69fc6d9..9da131fc7a27805f3f319150d94feeb6ec9c4a36 100644 (file)
@@ -37,7 +37,7 @@ Copyright (c) 1988, 1989 Hewlett-Packard Co.
 /* Standard startup code doesn't have room to load inherited environments
    in some cases.  Since they're not used, don't bother.  (Using Microsoft
    C compiler).  */
-void _setenvp(M_NOPAR);
+void _setenvp(void);
 void _setenvp(){}
 #endif
 
@@ -72,7 +72,7 @@ else
 }
 
 /* Write error message prefix */
-void m_eprefix(M_NOPAR)
+void m_eprefix(void)
 {
 m_errline("\n*****\n");
 m_dumpline(m_thisfile(), m_thisline());
@@ -96,7 +96,7 @@ for ( ; *p ; p++)
 #include <process.h>
 #endif
 /* Write error message suffix */
-void m_esuffix(M_NOPAR)
+void m_esuffix(void)
 {
 m_errline(":\n");
 m_lastchars();
@@ -245,7 +245,7 @@ return(NULL);
 }
 
 /* Open input file */
-void *m_openfirst(M_NOPAR)
+void *m_openfirst(void)
 {
 FILE *first;
 char *input;
index e6acb18c256660b78eb3fc7ad9fd537f7df2a50c..8b35a56607184e394edfecccbda9bd157eecc6ad 100644 (file)
 /* Copyright (c) 1988, 1989, 1990 Hewlett-Packard Co. */
 /* Function prototypes for HP Tag/TeX translator */
 
-void assert_hometopic_exists(M_NOPAR);
+void assert_hometopic_exists(void);
 
 /* conflict with prototype defined for basename() in <string.h> on osf, 
    so use fbasename */
-void fbasename(M_NOPAR);
+void fbasename(void);
 
 void chapstart(M_WCHAR *id);
 
-void checkgloss(M_NOPAR);
+void checkgloss(void);
 
 M_WCHAR *checkid(M_WCHAR *id);
 
-void checkmsghead (M_NOPAR);
+void checkmsghead (void);
 
-void dumpxref(M_NOPAR);
+void dumpxref(void);
 
 void echohead(M_WCHAR *p);
 
 void mb_echohead(char *p);
 
-void endhead(M_NOPAR);
+void endhead(void);
 
 void esoutchar(M_WCHAR textchar);
 
@@ -69,7 +69,7 @@ char *m_itoa(int n, char *s);
 
 LOGICAL m_letter(M_WCHAR c);
 
-void loadxref(M_NOPAR);
+void loadxref(void);
 
 int m_lower(int c);
 
@@ -83,7 +83,7 @@ void realoutchar(M_WCHAR textchar, FILE *outfile);
 
 void rsectstart(M_WCHAR *id);
 
-void rseqend(M_NOPAR);
+void rseqend(void);
 
 M_WCHAR *searchforfile(M_WCHAR *file);
 
@@ -143,7 +143,7 @@ void StartLabList(M_WCHAR *spacing,
 
 void StartList(M_WCHAR *type, M_WCHAR *order, M_WCHAR *spacing, M_WCHAR *cont);
 
-void EndList(M_NOPAR);
+void EndList(void);
 
 void strcode(M_WCHAR *string, FILE *outfile);
 
@@ -159,7 +159,7 @@ void termchar(M_WCHAR textchar);
 
 void termpi(int m_enttype, M_WCHAR *m_pi, M_WCHAR *m_entname);
 
-void texinit(M_NOPAR);
+void texinit(void);
 
 int vextextsize(const M_WCHAR *keyword);
 
@@ -188,7 +188,7 @@ char *GetDefaultHeaderString(char          *elementName,
   char          *defaultString);
 
 
-void SetDefaultLocale(M_NOPAR);
+void SetDefaultLocale(void);
 
 char *MakeMByteString(const M_WCHAR *from);
 
@@ -220,11 +220,11 @@ M_WCHAR wc_toupper(     M_WCHAR wc);
 
 M_WCHAR *wc_stringtoupper(     M_WCHAR *wcp);
 
-int NextId(M_NOPAR);
+int NextId(void);
 
-char *GetLanguage(M_NOPAR);
+char *GetLanguage(void);
 
-char *GetCharset(M_NOPAR);
+char *GetCharset(void);
 
 void HandleLink(  M_WCHAR *hyperlink,
     M_WCHAR *type,
@@ -240,7 +240,7 @@ void Add2ToRowVec(  int *length, char **rowvec, char *id1, char *id2);
 
 void StartEx(M_WCHAR *notes, M_WCHAR *lines, M_WCHAR *textsize);
 
-void EndEx(M_NOPAR);
+void EndEx(void);
 
 void StartNCW(char *which);
 
@@ -250,14 +250,14 @@ void AddToSNB(char *id, char *iconName);
 
 void StartNCWtext(char *which, char *iconFile, char *headingString);
 
-void IncludeToss(M_NOPAR);
+void IncludeToss(void);
 
 M_WCHAR *CycleEnt(  LOGICAL init,
     unsigned char *type,
     M_WCHAR ***content,
     unsigned char *wheredef);
 
-void ModifyEntities(M_NOPAR);
+void ModifyEntities(void);
 
 void PushForm(char *class,
   char *ssi,
@@ -268,12 +268,12 @@ void PushForm2(char *class,
   char *id1,
   char *id2);
 
-void PopForm(M_NOPAR);
+void PopForm(void);
 
-void PopForm2(M_NOPAR);
+void PopForm2(void);
 
-void PopFormMaybe(M_NOPAR);
+void PopFormMaybe(void);
 
-void EmitSavedAnchors(M_NOPAR);
+void EmitSavedAnchors(void);
 
-void CloseVirpage(M_NOPAR);
+void CloseVirpage(void);
index 3d44ef4e0569e28896008a01185201045f1dbc06..8a0d691af05a68708aaf4fe698d5cac0987dc26a 100644 (file)
@@ -32,7 +32,7 @@
 #include "LocaleXlate.h"
 #include "XlationSvc.h"
 
-void assert_hometopic_exists(M_NOPAR)
+void assert_hometopic_exists(void)
 {
 static const char hometopic[] = "-HOMETOPIC";
 char id[SDLNAMESIZ + sizeof(hometopic)];
@@ -61,7 +61,7 @@ m_free(string, "GetDefaultHeaderString return");
 
 /* Determine base name for files (i.e., input name without extension).
    Open output and error files */
-void fbasename(M_NOPAR)
+void fbasename(void)
 {
 char *p, *q;
 int n;
@@ -292,7 +292,7 @@ if (*chapterSuffixString)
 
 /* Called at end of manual to report terms that occurred in the document
    but not entered in the glossary */
-void checkgloss(M_NOPAR)
+void checkgloss(void)
 {
 int n;
 M_WCHAR id[MAXTERM + 1];
@@ -329,7 +329,7 @@ while (TRUE)
                
 /* End Error Message macro \starterrmsg call, check to see if Error Message
    head is user specified or default */
-void checkmsghead(M_NOPAR)
+void checkmsghead(void)
 {
 char *string =
     GetDefaultHeaderString("MessagesElementDefaultHeadingString",
@@ -924,7 +924,7 @@ chapst = TRUE;
 
 /* Called at the end of a chapter, appendix, or section to end an open
    sequence of rsects */
-void rseqend(M_NOPAR)
+void rseqend(void)
 {
 if (rsectseq)
     --thisnodelevel;
@@ -1275,7 +1275,7 @@ if (lastlist->type == BULLET) bulcount-- ;
 
 
 /* Open and initialize TeX file */
-void texinit(M_NOPAR)
+void texinit(void)
 {
 LOGICAL init = TRUE;
 unsigned char type;
index e7c5500fceec19996e09b6d8c94191a007f79415..ddb0e10a9c224bbb86f1363d4d9f3d1f64beb439 100644 (file)
@@ -67,7 +67,7 @@ m_free(wc,"wide character string");
 
 /* Called at end of a head in a chapter, appendix, section, or
    reference section */
-void endhead(M_NOPAR)
+void endhead(void)
 {
 if (savid)
     {
index 45ad692833b2dccd185870ce0ed2d2dcf3367d3b..c80b893b6ee4fe123c0dd43e3f3a828d547c45da 100644 (file)
@@ -143,7 +143,7 @@ m_free(csname, "csname");
 
 /* Write cross-reference file for next time document is processed
    and TeX macro file for post-processing this pass */
-void dumpxref(M_NOPAR)
+void dumpxref(void)
 {
 int n;
 M_WCHAR id[M_NAMELEN + 1];
@@ -219,7 +219,7 @@ xstrlen += length;
 
 /* Initializes cross-reference table reading in file output from previous
    pass through document */
-void loadxref(M_NOPAR)
+void loadxref(void)
 {
 M_WCHAR id[M_NAMELEN + 1];
 char c, d;
index 16092600abac9b6a8421d5412646c0a86bc7503a..0d6894d7187a2e494d1dadfaa815f6f313e7b100 100644 (file)
@@ -137,7 +137,7 @@ void m_findchain(M_PARSE *stackptr, int start, int chainin, int *chainout, int *
 /* Process global end string.  In separate procedure to keep all references
    to if.h in one source file and minimize recompilation if interface
    changes. */
-void m_globes(M_NOPAR)
+void m_globes(void)
 {
 M_WCHAR *wc_string;
 
@@ -149,7 +149,7 @@ m_free(wc_string,"wide character string");
 /* Process global start string.  In separate procedure to keep all references
    to if.h in one source file and minimize recompilation if interface
    changes. */
-void m_globss(M_NOPAR)
+void m_globss(void)
 {
 M_WCHAR *wc_string;
 
index d3befd8011e40a50135d997b50df5c00c45e5633..0dd2779833b43700986621f24b22b38e887e6940 100644 (file)
@@ -29,7 +29,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "globdec.h"
 
 /* Write error message prefix */
-void m_eprefix(M_NOPAR)
+void m_eprefix(void)
   {
     m_errline("\n*****\n") ;
     }
index 58d50cd8145dbb7c67d5628981473b6c4b26867c..bbea85ead4e425acf56ec4b597bf715e7dd1ea91 100644 (file)
@@ -336,7 +336,7 @@ void m_getline(file, line)
 
 /* Dump last characters read from input stream to give context to
    an error message */
-void m_lastchars(M_NOPAR)
+void m_lastchars(void)
 {
 int i;
 M_WCHAR buffer[2];
@@ -385,14 +385,14 @@ if ((m_svlncnt[m_sysecnt] &&
 }
 
 /* Display information about the current element */
-void m_showcurelt(M_NOPAR)
+void m_showcurelt(void)
   {
     if (m_stacktop->oldtop)
       m_dispcurelt(m_stacktop->file, m_stacktop->line);
     }    
 
 /* Start an error message */
-void m_startmsg(M_NOPAR)
+void m_startmsg(void)
   {
     m_eprefix();
     m_errexit = TRUE;
@@ -400,7 +400,7 @@ void m_startmsg(M_NOPAR)
 
 /* Return the name of the current input file (most recently opened, but
    unclosed SYSTEM entity) */
-M_WCHAR *m_thisfile(M_NOPAR)
+M_WCHAR *m_thisfile(void)
   {
     int i;
 
@@ -413,7 +413,7 @@ M_WCHAR *m_thisfile(M_NOPAR)
     }
 
 /* Return the line number in the current input file */
-int m_thisline(M_NOPAR)
+int m_thisline(void)
   {
     return(m_line[m_sysecnt]);
     }
index f998759a472900f31a5a107f0a64490ebb61d6eb..6bcf0a6f9fbf9d20c7c39ea22b08a7e9def41d41 100644 (file)
@@ -32,7 +32,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #endif
 
 /* Write error message suffix */
-void m_esuffix(M_NOPAR)
+void m_esuffix(void)
   {
     m_errline("\n") ;
     m_dumpline(m_thisfile(), m_thisline()) ;
index d99a5908cc860c8bf4795c29c2c1f19328d40665..1e53a8678d312f25642eb372ab6d562c62089300 100644 (file)
@@ -34,7 +34,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "parser.h"
 #include "signonx.h"
 
-void m_getsignon(M_NOPAR)
+void m_getsignon(void)
   {
     m_errline(m_signon) ;
     }
index 248a7d428f522dbd5a9e5006286e124a61ddcd39..8c23b2f7037777fa8acbb775b3a268cd7579939a 100644 (file)
@@ -39,7 +39,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "parser.h"
 
 /* M_etcomplete is called when a complete end-tag has been read */
-void m_etcomplete(M_NOPAR)
+void m_etcomplete(void)
   {
     if (! m_scanel) {
       M_WCHAR *wc_etago, *wc_tagc;
@@ -91,7 +91,7 @@ void m_frcend(val)
 
 /* M_frcstart is called to force the start of an element when that element
    cannot legally occur in the current context but does appear in the text*/
-void m_frcstart(M_NOPAR)
+void m_frcstart(void)
   {
     m_push(m_scanel, m_element[m_scanel - 1].start, m_scannet) ;
     if (m_scannet) m_netlevel++ ;
@@ -108,7 +108,7 @@ void m_frcstart(M_NOPAR)
 
 /* M_holdproc processes a RE that was saved to test if it was the last
    RE in an element's content */
-void m_holdproc(M_NOPAR)
+void m_holdproc(void)
   {
     if (m_stacktop->holdre) {
       m_stacktop->holdre = FALSE ;
@@ -122,7 +122,7 @@ void m_holdproc(M_NOPAR)
     }
 
 /* M_stcomplete is called when a complete start tag has been recognized */
-void m_stcomplete(M_NOPAR)
+void m_stcomplete(void)
   {
     if (! m_scanel) return ;
     if (m_strtproc(m_scanel))
index 10415a34119342f617842b6c9055efbaebb77246..2a7c5c6898f4fab75d19445f918d8f7430475012 100644 (file)
@@ -43,7 +43,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 /* M_expecting reports to the user the possible valid content at a particular
    state in the parse of the document */
-void m_expecting(M_NOPAR)
+void m_expecting(void)
   {
     LOGICAL expstart = TRUE ;
     M_PARSE *stackptr ;
@@ -276,7 +276,7 @@ M_ELEMENT m_findunique(from, newleft)
 
 /* M_nullendtag is called when a null end tag is encountered; i.e., at the
    end of a short element */
-void m_nullendtag(M_NOPAR)
+void m_nullendtag(void)
   {
     LOGICAL foundnet ;
 
@@ -307,7 +307,7 @@ void m_nullendtag(M_NOPAR)
 
 /* Tests to see if an end tag may have been omitted at this point in the
    parse.*/
-LOGICAL m_omitend(M_NOPAR)
+LOGICAL m_omitend(void)
   {
     M_ANDGROUP pand ;
     M_OPENFSA *fsastack ;
index 96f71659d9a694240c25f10441e4c764bf13c77f..9a58dea2ced0f90a9088eafad64c9585efe6b921 100644 (file)
@@ -28,7 +28,7 @@
 #include "userinc.h"
 #include "globdec.h"
 
-void *m_openfirst(M_NOPAR)
+void *m_openfirst(void)
   {
     return((void *) stdin) ;
     }
index 6d33cbe50d8bc24680347b4f24154532ce88850d..579c6e4bff07b36c84e2771fb55c73ed30dd11a5 100644 (file)
@@ -117,7 +117,7 @@ LOGICAL m_attvonly(string)
 
 /* Check a name previously saved in m_saveatt to see if it is the name of
    a valid parameter for the current start tag */
-void m_findatt(M_NOPAR)
+void m_findatt(void)
   {
     int par, i ;
 
@@ -220,7 +220,7 @@ void m_parupper(par, string)
 
 /* Set all parameters to their default values for an element included by
    tag minimization */
-void m_stkdefaultparams(M_NOPAR)
+void m_stkdefaultparams(void)
   {
     int i, par = 0 ;
 
@@ -272,7 +272,7 @@ void m_stkonedef(par, scanel, poccur, i)
     }
 
 /* Stack parameter values */
-void m_stkparams(M_NOPAR)
+void m_stkparams(void)
   {
     int i, par ;
 
index 4fd0080cb911b0df0a553a67669ef9d7ecdb20de..48e65b68e566396566aa98d10a7671a03e0fbba8 100644 (file)
@@ -48,7 +48,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "version.h"
 
 /* Adjust parsing state after each token if necessary */
-void m_adjuststate(M_NOPAR)
+void m_adjuststate(void)
   {
     if (m_curcon == START) {
       if (m_netlevel) {
@@ -79,7 +79,7 @@ void m_adjuststate(M_NOPAR)
 
 /* Tests whether the element named in a tag is defined; if so, returns its
    index; otherwise return FALSE */
-M_ELEMENT m_eltname(M_NOPAR)
+M_ELEMENT m_eltname(void)
   {
     M_ELEMENT eltid ;
 
@@ -103,7 +103,7 @@ return i;
 }
 
 /* Program initialization */
-void m_initialize(M_NOPAR)
+void m_initialize(void)
 {
 char    **mb_delims;
 M_WCHAR **wc_delims;
index c4abd3070bab08e6ab19a5110562c6dce0eb1396..8ad1f618ab710e4487cd566a4a255051db52ab35 100644 (file)
@@ -21,9 +21,9 @@
  * Floor, Boston, MA 02110-1301 USA
  */
 /* $XConsortium: proto.h /main/3 1995/11/08 10:24:42 rswiston $ */
-int m_actgetc(M_NOPAR);
+int m_actgetc(void);
 
-void m_adjuststate(M_NOPAR);
+void m_adjuststate(void);
 
 LOGICAL m_allwhite(const M_WCHAR *string);
 
@@ -41,20 +41,20 @@ void m_closent(void *m_ptr);
 
 void m_codeent(int m_ent);
 
-M_PARSE *m_copystackelt(M_NOPAR);
+M_PARSE *m_copystackelt(void);
 
 M_WCHAR *m_cyclent(LOGICAL init, unsigned char *type, M_WCHAR **content, 
   unsigned char *wheredef);
 
 void m_dispcurelt(M_WCHAR *file, int line);
 
-void m_done(M_NOPAR);
+void m_done(void);
 
 void m_dumpline(M_WCHAR *file, int line);
 
 void m_eduptype(int type);
 
-M_ELEMENT m_eltname(M_NOPAR);
+M_ELEMENT m_eltname(void);
 
 void m_endaction(M_ELEMENT m_elt);
 
@@ -64,7 +64,7 @@ void m_endtag(M_ELEMENT c);
 
 void m_entexpand(M_ENTITY *openent);
 
-void m_eprefix(M_NOPAR);
+void m_eprefix(void);
 
 void m_err1(const char *text, const M_WCHAR *arg);
 
@@ -87,15 +87,15 @@ void m_errline(char *p);
 
 void m_error(char *text);
 
-void m_esuffix(M_NOPAR);
+void m_esuffix(void);
 
 void m_exit(int status);
 
-void m_etcomplete(M_NOPAR);
+void m_etcomplete(void);
 
 LOGICAL m_excluded(M_ELEMENT elt);
 
-void m_expecting(M_NOPAR);
+void m_expecting(void);
 
 void m_expexpand(LOGICAL *expstart, M_STATE node, LOGICAL *required, LOGICAL *data);
 
@@ -105,7 +105,7 @@ void m_exptend(LOGICAL *expstart, M_PARSE *stackptr);
 
 int m_findact(M_ELEMENT elt, int *array);
 
-void m_findatt(M_NOPAR);
+void m_findatt(void);
 
 void m_findchain(M_PARSE *stackptr, int start, int chainin, int *chainout, int *index, 
   LOGICAL wild);
@@ -116,7 +116,7 @@ M_ELEMENT m_findunique(M_STATE from, int *newleft);
 
 void m_frcend(M_ELEMENT val);
 
-void m_frcstart(M_NOPAR);
+void m_frcstart(void);
 
 void m_free(void *block, char *msg);
 
@@ -141,23 +141,23 @@ void m_getline(M_WCHAR **file, int *line);
 
 void m_getname(M_WCHAR first);
 
-void m_getsignon(M_NOPAR);
+void m_getsignon(void);
 
 int m_gettoken(int *c, M_HOLDTYPE *dchar, int context);
 
-void m_globes(M_NOPAR);
+void m_globes(void);
 
-void m_globss(M_NOPAR);
+void m_globss(void);
 
-void m_holdproc(M_NOPAR);
+void m_holdproc(void);
 
 void m_inctest(int *count, int limit, char *message);
 
-void m_initctype(M_NOPAR);
+void m_initctype(void);
 
-void m_initialize(M_NOPAR);
+void m_initialize(void);
 
-void m_lastchars(M_NOPAR);
+void m_lastchars(void);
 
 int m_level(M_WCHAR *elt);
 
@@ -183,17 +183,17 @@ void m_nextdelimchar(int *n, int i, LOGICAL *linestart, LOGICAL newlinestart, LO
 
 void m_ntrent(M_WCHAR *p);
 
-void m_nullendtag(M_NOPAR);
+void m_nullendtag(void);
 
-LOGICAL m_omitend(M_NOPAR);
+LOGICAL m_omitend(void);
 
-LOGICAL m_omitstart(M_NOPAR);
+LOGICAL m_omitstart(void);
 
 void m_openchk(FILE **ptr, char *name, char *mode);
 
 void *m_openent(M_WCHAR *entcontent);
 
-void *m_openfirst(M_NOPAR);
+void *m_openfirst(void);
 
 void m_optstring(char *p);
 
@@ -217,45 +217,45 @@ LOGICAL m_parvalok(M_WCHAR *elt, M_WCHAR *param, const M_WCHAR *value);
 
 void m_piaction(M_WCHAR *m_pi, M_WCHAR *m_entname, int m_enttype);
 
-void m_pop(M_NOPAR);
+void m_pop(void);
 
 void m_push(M_ELEMENT elt, M_STATE current, LOGICAL need);
 
 LOGICAL m_putdata(void *data, int n);
 
-void m_readcomments(M_NOPAR);
+void m_readcomments(void);
 
 void *m_realloc(void *ptr, int size, char *msg);
 
-int m_scan(M_NOPAR);
+int m_scan(void);
 
 void m_setmap(int map, LOGICAL useoradd);
 
-void m_setoptions(M_NOPAR);
+void m_setoptions(void);
 
 void m_setparam(M_WCHAR **cvar, int par);
 
 void m_shortref(int context);
 
-void m_showcurelt(M_NOPAR);
+void m_showcurelt(void);
 
 void m_signmsg(char *p);
 
-void m_sigre(M_NOPAR);
+void m_sigre(void);
 
-void m_startdoc(M_NOPAR);
+void m_startdoc(void);
 
-void m_startmsg(M_NOPAR);
+void m_startmsg(void);
 
 void m_stcaction(M_WCHAR *m_string, LOGICAL M_START, LOGICAL M_END);
 
-void m_stcomplete(M_NOPAR);
+void m_stcomplete(void);
 
-void m_stkdefaultparams(M_NOPAR);
+void m_stkdefaultparams(void);
 
 void m_stkonedef(int par, M_ELEMENT scanel, M_WCHAR **poccur, int i);
 
-void m_stkparams(M_NOPAR);
+void m_stkparams(void);
 
 void m_strtaction(M_ELEMENT m_elt);
 
@@ -271,11 +271,11 @@ void m_textaction(M_WCHAR m_textchar);
 
 void m_textout(char *format, LOGICAL start, LOGICAL end);
 
-LOGICAL m_textpermitted(M_NOPAR);
+LOGICAL m_textpermitted(void);
 
-M_WCHAR *m_thisfile(M_NOPAR);
+M_WCHAR *m_thisfile(void);
 
-int m_thisline(M_NOPAR);
+int m_thisline(void);
 
 void m_trace(char *p);
 
@@ -297,7 +297,7 @@ int m_mbmbupstrcmp(const char *p, const char *q);
 
 LOGICAL m_validinpar(M_WCHAR *string);
 
-LOGICAL m_vldentref(M_NOPAR);
+LOGICAL m_vldentref(void);
 
 LOGICAL m_whitespace(M_WCHAR c);
 
index 3ee0a6d0ecdb29ebc64553018e13ea37b498e467..e289b38086516dc84a086577eca9770ec15a45bd 100644 (file)
@@ -51,7 +51,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "sref.h"
 
 /* Actually read a character from an input stream */
-int m_actgetc(M_NOPAR)
+int m_actgetc(void)
   {
     int c ;
 
@@ -690,7 +690,7 @@ void m_nextdelimchar(int *n, int i, LOGICAL *linestart, LOGICAL newlinestart,
     }
 
 /* Scans past a comment within a markup declaration */
-void m_readcomments(M_NOPAR)
+void m_readcomments(void)
   {
     int c ;
     M_HOLDTYPE dchar ;
@@ -703,7 +703,7 @@ void m_readcomments(M_NOPAR)
     }
 
 /* Scanner */
-int m_scan(M_NOPAR)
+int m_scan(void)
   {
     int c ;
     M_HOLDTYPE dchar ;
@@ -1037,7 +1037,7 @@ while (TRUE)
           or contextual end tag [linestat == M_SOMETHING]
       3)  If a record end might be the last one in an element, save it
 */
-void m_sigre(M_NOPAR)
+void m_sigre(void)
   {
     /* Check for first RE in content and no preceding content */
     if (m_start &&
@@ -1113,7 +1113,7 @@ void m_ungetachar(int c, M_HOLDTYPE dchar, LOGICAL preread)
     }
 
 /* Have encountered an M_ERO.  If the entity reference is valid, process it*/
-LOGICAL m_vldentref(M_NOPAR)
+LOGICAL m_vldentref(void)
   {
     M_HOLDTYPE dchar ;
     int next ;
index 6bac3fc3231d1afeb248ecc78a7995a9b0c61a70..45e886429da1f3c4aeabd2d78355a78e7caad594 100644 (file)
@@ -30,7 +30,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 
 
 /* Set program options */
-void m_setoptions(M_NOPAR)
+void m_setoptions(void)
   {
     if (m_argc > 1) m_optstring(m_argv[1]) ;
     }
index 7e1af1dcc898ea7dd82bd82b007eb6a38ebcb132..cbd952c621c8f09e55af741ff34e73ab5237c189 100644 (file)
@@ -32,7 +32,7 @@ Copyright 1989 Hewlett-Packard Co.
    control after all entity declarations have been processed.  Not needed
    in valid documents (when it is called just prior to global start-code),
    but may be useful in some applications nevertheless. */
-void m_startdoc(M_NOPAR)
+void m_startdoc(void)
   {
     }
 
index ebec969019638aebe4476b9698e3eaf8e6fa5b72..bff0065f250b2726e3b08eb6349f142687761a24 100644 (file)
@@ -191,7 +191,7 @@ LOGICAL m_ckend(M_ELEMENT val, LOGICAL neednet)
 
 /* Make a copy of the stack entry at the top of the parse stack in a scratch
    area */
-M_PARSE *m_copystackelt(M_NOPAR)
+M_PARSE *m_copystackelt(void)
   {
     M_OPENFSA *oldfsa ;
     M_OPENFSA **newfsa ;
@@ -219,7 +219,7 @@ M_PARSE *m_copystackelt(M_NOPAR)
     }
 
 /* End of document */
-void m_done(M_NOPAR)
+void m_done(void)
   {
     M_ELEMENT lastelt ;
 
@@ -398,7 +398,7 @@ LOGICAL m_nextand(thisfsa, label)
     }
 
 /* Pops the parse stack*/
-void m_pop(M_NOPAR)
+void m_pop(void)
   {
     M_PARSE *stackelt ;
 
@@ -664,7 +664,7 @@ void m_strttag(M_ELEMENT val, LOGICAL net)
    makes more sense, is used by MARKUP, and is under consideration by the
    Standards committee; the latter is the current definition in the Standard
    */
-LOGICAL m_textpermitted(M_NOPAR)
+LOGICAL m_textpermitted(void)
   {
     M_ANDGROUP pand ;
     M_OPENFSA *fsastack ;
index 9af49823c98a361c108939636831abea9786c8fe..04cb1f10907c4983f82496e7e7dbe71e5fa2ee3c 100644 (file)
@@ -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);
index 691aa26bf77f2ef10035dcea495e2d7b718e3f40..0c5e0137e125bd765f3ff68e2ea32394ce6c2cc2 100644 (file)
@@ -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);
 
index 8872d90529fc4c2c822281c5359c2e2f6091de3c..b9694a2afd9e0e71a824636c6d8653d4b91296f6 100644 (file)
@@ -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;
@@ -444,7 +444,7 @@ dcount++;
 }
 
 /* Read delimiter definitions from delim.dat */
-void loaddelim(M_NOPAR)
+void loaddelim(void)
 {
 int c;
 M_WCHAR *p;
@@ -650,7 +650,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)
 {
 }
 
index d9274c4c83ca34eb76835466a64cbe4a039bc117..aa1f2a0cd50b87676461eac73d7f647f8ce87d10 100644 (file)
@@ -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) ;
index e655b3d97c7371ada9278c4573bdc31731cb151b..237bdea842f771359e5862c855065c210b8cae31 100644 (file)
@@ -29,7 +29,7 @@
 #include "common.h"
 extern char m_chartype[M_CHARSETLEN] ;
 
-void m_initctype(M_NOPAR)
+void m_initctype(void)
   {
     int i ;
 
index 69e54ce769364453c82f42a3ba36a65afabd5293..111e9a865fe85a4e6c1e41bfc3fd76e2e0ca7b0f 100644 (file)
@@ -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);
 
@@ -81,7 +81,7 @@ void m_free(block, msg)
     }
 
 #if defined(MSDOS)
-void m_heapdump(M_NOPAR)
+void m_heapdump(void)
   {
     struct _heapinfo hinfo ;
     int heapstatus ;
index e28c5f5f3d4749776ce587aacf01cba9c3b3074b..e3100503ae360aa8d3b190556f348062b60f2fe5 100644 (file)
@@ -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;
index 629ead8a7f9284c037b45bcf1adae12e562d6102..500647ed858dfc48b1e790af31fd46c121ca1567 100644 (file)
@@ -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 ;
 
index a9c595f024e8a1269c48dee8202b24a1ffb914ff..f1fd061e58db3c0b0d47fd10f38d152fd28ef035 100644 (file)
@@ -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);
 
index e142f5fbbecb5eb2413c90e5adde21ba90e4b42c..46692d6d829f29e9abdfba8718ad64d055d12fb7 100644 (file)
@@ -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 ;
index d6a4fc08335d4e726ccf3d4e949c3e72082cdb7e..a00913c5b0163733b591aaedd59646b0db9922ed 100644 (file)
@@ -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") ;
index ad8067f841b4ff2ddf45921403dc595e276373c7..b15c4b21c866f0c16df47548977ed84528a0ceb3 100644 (file)
@@ -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 ;
 
index c15696b31626a598226d8176cff2ddf117cf051a..db2291a1075553826f8858520ee5fa1ffcb1838d 100644 (file)
@@ -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 ;
index d46f7bb67062984eb880d499f0d718eb2843434f..63feb9b7e2375d4d69b9ec2fea9c931147812eee 100644 (file)
@@ -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 ;
index 115f1e9a0e090e682bb49d2083d1f370cb735c04..152e698284a396ebdf5aa0ef9cab4f7d2eed8369 100644 (file)
@@ -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);
 
index 184e8e5642778115ba082baacea677f5932d27bf..6412c9bf66bdaca6ae260b0adcb9b40934b71e77 100644 (file)
@@ -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;
index 990c13ca0970dfa63b050648723f815953e85ee1..795d846fed8214f936f5d2d46e8b7f1246d99305 100644 (file)
@@ -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)
     {
index 717329bdc0dd6423da716906c525a0a1c78ff656..bf1dd24948a234f718b377cec38dd2939e264d3f 100644 (file)
@@ -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 ;
 
index c95c2b3fa5bdb1f78969ff4f3058af7587d45f5b..d84e3148ca7fcc9590a9aed4a43410aaa15b2e57 100644 (file)
@@ -398,7 +398,7 @@ tagc
   postent:start
   codetagc:inentc {
             startcode(entity->codeindex, &inent, entfile,
-                      "c", nopar, nopar, "") ;
+                      "c", "void", "void", "") ;
             }
   close:preparam
   sschain:inss {
@@ -420,11 +420,11 @@ tagc
             }
   scchain:insc {
             *getaction(scarray) = ++sactions ;
-            startcode(sactions, &insc, sfile, "s", nopar, nopar, "") ;
+            startcode(sactions, &insc, sfile, "s", "void", "void", "") ;
             }
   ecchain:inec {
             *getaction(ecarray) = ++eactions ;
-            startcode(eactions, &inec, efile, "e", nopar, nopar, "") ;
+            startcode(eactions, &inec, efile, "e", "void", "void", "") ;
             }
   stcchain:instc {
             *getaction(stcarray) = ++stactions ;
index f8f32a38e53664606b9c8a317dd3f0c73d8f338a..ec73250e761f17fbd594ce48e5eb1602f8cc8a36 100644 (file)
@@ -215,7 +215,6 @@ ELTEXTERN int restart ELTINIT(RENTITY) ;
 #define stproto "M_WCHAR *m_string, LOGICAL M_START, LOGICAL M_END"
 #define stformal "m_string, M_START, M_END"
 #define stft "  M_WCHAR *m_string ;\n  LOGICAL M_START ;\n  LOGICAL M_END ;\n"
-#define nopar "M_NOPAR"
 
 /* Structures for generating defines for parameter values */
 ELTEXTERN M_TRIE parval ;
index 8624f460bd8c4fa7dd9b19f45056688a8f4d4921..acfd50d793d81c4a047786a014ff8b6f8bfcdeb5 100644 (file)
@@ -92,7 +92,7 @@ void closeiffile(LOGICAL flag, FILE *file, int count, char *table, char *proto)
 
 /* Called when the C identifier to be #define'd to a parameter value is
    scanned */
-void cvalue(M_NOPAR)
+void cvalue(void)
   {
     PARVAL *new;
 
@@ -111,18 +111,18 @@ void cvalue(M_NOPAR)
 
 /* Called after last input character is read to place closing punctuation
    at end of output files and close them */
-void done(M_NOPAR)
+void done(void)
   {
     M_ENTITY *ent;
     ACTION *actp;
     LOGICAL first;
     int i;
 
-    closeiffile(inent, entfile, codeent, "c", nopar);
+    closeiffile(inent, entfile, codeent, "c", "void");
     closeiffile(intext, tfile, tactions, "t", tproto);
     closeiffile(inpc, pfile, pactions, "p", pproto);
-    closeiffile(insc, sfile, sactions, "s", nopar);
-    closeiffile(inec, efile, eactions, "e", nopar);
+    closeiffile(insc, sfile, sactions, "s", "void");
+    closeiffile(inec, efile, eactions, "e", "void");
     closeiffile(instc, stfile, stactions, "st", stproto);
 
     endstring();
@@ -190,7 +190,7 @@ void endcode(LOGICAL flag, FILE *file)
     }
 
 /* Called at the end of all initial fields in the interface definition */
-void endini(M_NOPAR)
+void endini(void)
   {
     if (finitext) 
       fputs("    putc(m_textchar, m_outfile);\n", tfile);
@@ -209,7 +209,7 @@ void endini(M_NOPAR)
 
 /* End the sign-on message */
 #include <time.h>
-void endsignon(M_NOPAR)
+void endsignon(void)
   {
     time_t storetime;
     char *p;
@@ -255,7 +255,7 @@ void endsignon(M_NOPAR)
     }
 
 /* Closes a start-string or end-string */
-void endstring(M_NOPAR)
+void endstring(void)
   {
     if (instring) {
       if (stringstart) stringstart = FALSE;
@@ -282,7 +282,7 @@ void enttype(type)
     }
 
 /* Free storage used for a context-specification chain */
-void freechain(M_NOPAR)
+void freechain(void)
   {
     CHAIN *chainp, *dchainp;
 
@@ -333,7 +333,7 @@ int *getaction(array)
     }
 
 /* Allocate new action structure */
-ACTION *getactstruct(M_NOPAR)
+ACTION *getactstruct(void)
   {
     ACTION *new;
 
@@ -347,7 +347,7 @@ ACTION *getactstruct(M_NOPAR)
     }
 
 /* Program initialization */
-void initialize(M_NOPAR)
+void initialize(void)
 {
 char    **mb_delims;
 M_WCHAR **wc_delims;
@@ -411,13 +411,13 @@ fputs("#endif\n", ifh);
 
 startcode(pactions, &inpc, pfile, "p", pproto, pformal, pftype);
 startcode(tactions, &intext, tfile, "t", tproto, tformal, tftype);
-startcode(sactions, &insc, sfile, "s", nopar, nopar, "");
-startcode(eactions, &inec, efile, "e", nopar, nopar, "");
+startcode(sactions, &insc, sfile, "s", "void", "void", "");
+startcode(eactions, &inec, efile, "e", "void", "void", "");
 startcode(stactions, &instc, stfile, "st", stproto, stformal, stft);
 }
 
 /* Output definitions for strings */
-void outstring(M_NOPAR)
+void outstring(void)
   {
     int c;
 
@@ -480,7 +480,7 @@ for ( ; p ; p = p->next)
 }
 
 /* Skip rest of statement after an error */
-void skiptoend(M_NOPAR)
+void skiptoend(void)
   {
     int i;
     static int errlev = 0;
@@ -580,7 +580,7 @@ fprintf(file, "{\n/* line %d \"%s\" */\n", m_line, iffile); /* balance "}" */
 }
 
 /* Begins processing a new element */
-void startelement(M_NOPAR)
+void startelement(void)
   {
     CVARSTRUCT *cvarp;
     CVARSTRUCT *discard;
@@ -601,7 +601,7 @@ void startelement(M_NOPAR)
     }
 
 /* Stores the name of a C variable read from the input file */
-void storecvar(M_NOPAR)
+void storecvar(void)
   {
     CVARSTRUCT *new;
 
@@ -616,7 +616,7 @@ void storecvar(M_NOPAR)
 /* Compares the parameter name associated with a C variable in the input
    file with the names of all parameters of the current element.  Stores
    result for later output with code segments */
-void storepname(M_NOPAR)
+void storepname(void)
   {
     int i, par;
 
index 7c2e61d0c0f5f5e1b9977f94cbc54cea63c32d1f..ed8d334ecbf5ac19456d1ec5cadc3f1dc424765f 100644 (file)
@@ -35,7 +35,7 @@
 #include "entext.h"
 
 /* Add an entity */
-void addent(M_NOPAR)
+void addent(void)
   {
     M_ENTITY *new ;
 
index 4c1a059bb28a54c9173a1fc79347eb7626d6a29a..fb74b475ae44265245a17a01d8fd65aafc6a1458 100644 (file)
@@ -30,7 +30,7 @@
 
 void actptrout(ACTION **array, char *name);
 
-void addent(M_NOPAR);
+void addent(void);
 
 LOGICAL m_allwhite(const M_WCHAR *string);
 
@@ -38,10 +38,10 @@ void closeiffile(LOGICAL flag, FILE *file, int count, char *table, char *proto);
 
 void countdown(M_TRIE *parent, int *count);
 
-void cvalue(M_NOPAR);
+void cvalue(void);
 
 
-void done(M_NOPAR);
+void done(void);
 
 void m_dumptrie(FILE *file,
   M_TRIE *xtrie,
@@ -51,11 +51,11 @@ void m_dumptrie(FILE *file,
 
 void endcode(LOGICAL flag, FILE *file);
 
-void endini(M_NOPAR);
+void endini(void);
 
-void endsignon(M_NOPAR);
+void endsignon(void);
 
-void endstring(M_NOPAR);
+void endstring(void);
 
 void entout(char *fname);
 
@@ -78,21 +78,21 @@ void m_exit(int status);
 
 void m_free(void *block, char *msg);
 
-void freechain(M_NOPAR);
+void freechain(void);
 
-int getachar(M_NOPAR);
+int getachar(void);
 
 int *getaction(ACTION **array);
 
-ACTION *getactstruct(M_NOPAR);
+ACTION *getactstruct(void);
 
 void getname(int first);
 
 int gettoken(int *c, int context);
 
-void m_initctype(M_NOPAR);
+void m_initctype(void);
 
-void initialize(M_NOPAR);
+void initialize(void);
 
 LOGICAL m_letter(M_WCHAR c);
 
@@ -106,24 +106,24 @@ void m_openchk(FILE **ptr, char *name, char *mode);
 
 void outpval(M_TRIE *p);
 
-void outstring(M_NOPAR);
+void outstring(void);
 
 int m_packedlook(M_PTRIE *xptrie, M_WCHAR *name);
 
 const M_WCHAR *m_partype(const int par, const M_WCHAR *string);
 
-int scan(M_NOPAR);
+int scan(void);
 
-void skiptoend(M_NOPAR);
+void skiptoend(void);
 
 void startcode(int caseno, LOGICAL *flag, FILE *file, char *prefix, char *proto,
   char *formal, char *formtype);
 
-void startelement(M_NOPAR);
+void startelement(void);
 
-void storecvar(M_NOPAR);
+void storecvar(void);
 
-void storepname(M_NOPAR);
+void storepname(void);
 
 void undodelim(M_WCHAR *delim);
 
index 916bc1e4834ebdf433e0cd86ef5888b8b8cd1f9b..3c4d91984c1b7343cdaa12df6611841e5d514c9b 100644 (file)
@@ -86,7 +86,7 @@ ungetachar(c);
 }
 
 /* Reads the next token and returns it to the main procedure */
-int scan(M_NOPAR)
+int scan(void)
 {
 int c;
 int n;
index 69ad9f394ea5e9b80a0199dcfa5060640282f646..7869d97aca14d482a9d9e409ee00895a900f1805 100644 (file)
@@ -37,7 +37,7 @@ Copyright (c) 1988, 1989 Hewlett-Packard Co.
 /* Standard startup code doesn't have room to load inherited environments
    in some cases.  Since they're not used, don't bother.  (Using Microsoft
    C compiler).  */
-void _setenvp(M_NOPAR);
+void _setenvp(void);
 void _setenvp(){}
 #endif
 
@@ -70,7 +70,7 @@ else
 }
 
 /* Write error message prefix */
-void m_eprefix(M_NOPAR)
+void m_eprefix(void)
 {
 m_errline("\n*****\n");
 m_dumpline(m_thisfile(), m_thisline());
@@ -94,7 +94,7 @@ for ( ; *p ; p++)
 #include <process.h>
 #endif
 /* Write error message suffix */
-void m_esuffix(M_NOPAR)
+void m_esuffix(void)
 {
 m_errline(":\n");
 m_lastchars();
@@ -265,7 +265,7 @@ return(NULL);
 }
 
 /* Open input file */
-void *m_openfirst(M_NOPAR)
+void *m_openfirst(void)
 {
 return((void *) inFile);
 }
index a5ce22b48fa2889bf5fae8b7b061d294084d0cee..8633db31bd319b02b2e7a39c6b2739ad381c5d89 100644 (file)
@@ -68,9 +68,9 @@ void DeleteElement(ElementPtr pElement);
 
 void OptimizeAndEmit(ElementPtr pVirpage);
 
-void PushCurrentElement(M_NOPAR);
+void PushCurrentElement(void);
 
-void PopCurrentElement(M_NOPAR);
+void PopCurrentElement(void);
 
 char *mb_realloc(  char *ptr, long size);
 
@@ -106,12 +106,12 @@ void FcloseFile(FILE *file, char *name, int code);
 
 int StringToUpper(char *string);
 
-void BuildIndex(M_NOPAR);
+void BuildIndex(void);
 
-void OpenDocument(M_NOPAR);
+void OpenDocument(void);
 
-void CloseDocument(M_NOPAR);
+void CloseDocument(void);
 
-void UpdateTossFileName(M_NOPAR);
+void UpdateTossFileName(void);
 
 void SetLocale(M_WCHAR *pLang, M_WCHAR *pCharset);
index 16c6a1e88d36f75550d6c262f9df9ee0e7af5a07..84d44c16fbde8b0f3a64633218401c17f97aed73 100644 (file)
@@ -137,7 +137,7 @@ void m_findchain(M_PARSE *stackptr, int start, int chainin, int *chainout, int *
 /* Process global end string.  In separate procedure to keep all references
    to if.h in one source file and minimize recompilation if interface
    changes. */
-void m_globes(M_NOPAR)
+void m_globes(void)
 {
 M_WCHAR *wc_string;
 
@@ -149,7 +149,7 @@ m_free(wc_string,"wide character string");
 /* Process global start string.  In separate procedure to keep all references
    to if.h in one source file and minimize recompilation if interface
    changes. */
-void m_globss(M_NOPAR)
+void m_globss(void)
 {
 M_WCHAR *wc_string;
 
index 10a173f95b4ab957b7a0eb524d2ac37ec22af194..7383b2c4684eb2b156ef80177865579d9de95c2f 100644 (file)
@@ -29,7 +29,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "globdec.h"
 
 /* Write error message prefix */
-void m_eprefix(M_NOPAR)
+void m_eprefix(void)
   {
     m_errline("\n*****\n") ;
     }
index 36ac2ff636bba79966a860891a34bfabc5fdee69..3331b829b25ad7632f85dd9e32ce12ce4a7e7615 100644 (file)
@@ -336,7 +336,7 @@ void m_getline(file, line)
 
 /* Dump last characters read from input stream to give context to
    an error message */
-void m_lastchars(M_NOPAR)
+void m_lastchars(void)
 {
 int i;
 M_WCHAR buffer[2];
@@ -385,14 +385,14 @@ if ((m_svlncnt[m_sysecnt] &&
 }
 
 /* Display information about the current element */
-void m_showcurelt(M_NOPAR)
+void m_showcurelt(void)
   {
     if (m_stacktop->oldtop)
       m_dispcurelt(m_stacktop->file, m_stacktop->line);
     }    
 
 /* Start an error message */
-void m_startmsg(M_NOPAR)
+void m_startmsg(void)
   {
     m_eprefix();
     m_errexit = TRUE;
@@ -400,7 +400,7 @@ void m_startmsg(M_NOPAR)
 
 /* Return the name of the current input file (most recently opened, but
    unclosed SYSTEM entity) */
-M_WCHAR *m_thisfile(M_NOPAR)
+M_WCHAR *m_thisfile(void)
   {
     int i;
 
@@ -413,7 +413,7 @@ M_WCHAR *m_thisfile(M_NOPAR)
     }
 
 /* Return the line number in the current input file */
-int m_thisline(M_NOPAR)
+int m_thisline(void)
   {
     return(m_line[m_sysecnt]);
     }
index 50fca824a87137d0b708942db62d4ae10fedae5a..98e245b86082d3b564eb224c42e893ad228b9d96 100644 (file)
@@ -32,7 +32,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #endif
 
 /* Write error message suffix */
-void m_esuffix(M_NOPAR)
+void m_esuffix(void)
   {
     m_errline("\n") ;
     m_dumpline(m_thisfile(), m_thisline()) ;
index 587714663038e58e3dc05bcf36ce4ff914e1219b..5575d77da487afcf6542d99b01d041cf06e80810 100644 (file)
@@ -34,7 +34,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "parser.h"
 #include "signonx.h"
 
-void m_getsignon(M_NOPAR)
+void m_getsignon(void)
   {
     m_errline(m_signon) ;
     }
index 430272fbd2ea9eeb76f9133d574a7c30346b91ef..1245c7caf4a36967c2a80f30fdfa97f1cb688c8f 100644 (file)
@@ -39,7 +39,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "parser.h"
 
 /* M_etcomplete is called when a complete end-tag has been read */
-void m_etcomplete(M_NOPAR)
+void m_etcomplete(void)
   {
     if (! m_scanel) {
       M_WCHAR *wc_etago, *wc_tagc;
@@ -91,7 +91,7 @@ void m_frcend(val)
 
 /* M_frcstart is called to force the start of an element when that element
    cannot legally occur in the current context but does appear in the text*/
-void m_frcstart(M_NOPAR)
+void m_frcstart(void)
   {
     m_push(m_scanel, m_element[m_scanel - 1].start, m_scannet) ;
     if (m_scannet) m_netlevel++ ;
@@ -108,7 +108,7 @@ void m_frcstart(M_NOPAR)
 
 /* M_holdproc processes a RE that was saved to test if it was the last
    RE in an element's content */
-void m_holdproc(M_NOPAR)
+void m_holdproc(void)
   {
     if (m_stacktop->holdre) {
       m_stacktop->holdre = FALSE ;
@@ -122,7 +122,7 @@ void m_holdproc(M_NOPAR)
     }
 
 /* M_stcomplete is called when a complete start tag has been recognized */
-void m_stcomplete(M_NOPAR)
+void m_stcomplete(void)
   {
     if (! m_scanel) return ;
     if (m_strtproc(m_scanel))
index 5bfa4842ab921fbe689bab068d388d2bde527114..9421a446d12ad3d549f4fa14e23e5150420e62f6 100644 (file)
@@ -43,7 +43,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 /* M_expecting reports to the user the possible valid content at a particular
    state in the parse of the document */
-void m_expecting(M_NOPAR)
+void m_expecting(void)
   {
     LOGICAL expstart = TRUE ;
     M_PARSE *stackptr ;
@@ -276,7 +276,7 @@ M_ELEMENT m_findunique(from, newleft)
 
 /* M_nullendtag is called when a null end tag is encountered; i.e., at the
    end of a short element */
-void m_nullendtag(M_NOPAR)
+void m_nullendtag(void)
   {
     LOGICAL foundnet ;
 
@@ -307,7 +307,7 @@ void m_nullendtag(M_NOPAR)
 
 /* Tests to see if an end tag may have been omitted at this point in the
    parse.*/
-LOGICAL m_omitend(M_NOPAR)
+LOGICAL m_omitend(void)
   {
     M_ANDGROUP pand ;
     M_OPENFSA *fsastack ;
index 9a734657b01edb467dec6eeb68be0aeffc453bc8..3bd2331bde440e38f77d31c43dbfbbe0525abb18 100644 (file)
@@ -28,7 +28,7 @@
 #include "userinc.h"
 #include "globdec.h"
 
-void *m_openfirst(M_NOPAR)
+void *m_openfirst(void)
   {
     return((void *) stdin) ;
     }
index 9fa2d5246d1a90fee5b1808ce6d383d3b4c797f1..9f63e3f52656a0df0dbc310b23bcb18f6f96e326 100644 (file)
@@ -117,7 +117,7 @@ LOGICAL m_attvonly(string)
 
 /* Check a name previously saved in m_saveatt to see if it is the name of
    a valid parameter for the current start tag */
-void m_findatt(M_NOPAR)
+void m_findatt(void)
   {
     int par, i ;
 
@@ -220,7 +220,7 @@ void m_parupper(par, string)
 
 /* Set all parameters to their default values for an element included by
    tag minimization */
-void m_stkdefaultparams(M_NOPAR)
+void m_stkdefaultparams(void)
   {
     int i, par = 0 ;
 
@@ -272,7 +272,7 @@ void m_stkonedef(par, scanel, poccur, i)
     }
 
 /* Stack parameter values */
-void m_stkparams(M_NOPAR)
+void m_stkparams(void)
   {
     int i, par ;
 
index 5cca22e342f14b2ec182ecc6ded104826fa62612..d69d158135a13a4a45a687b8e6c9073068dddde6 100644 (file)
@@ -48,7 +48,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "version.h"
 
 /* Adjust parsing state after each token if necessary */
-void m_adjuststate(M_NOPAR)
+void m_adjuststate(void)
   {
     if (m_curcon == START) {
       if (m_netlevel) {
@@ -79,7 +79,7 @@ void m_adjuststate(M_NOPAR)
 
 /* Tests whether the element named in a tag is defined; if so, returns its
    index; otherwise return FALSE */
-M_ELEMENT m_eltname(M_NOPAR)
+M_ELEMENT m_eltname(void)
   {
     M_ELEMENT eltid ;
 
@@ -103,7 +103,7 @@ return i;
 }
 
 /* Program initialization */
-void m_initialize(M_NOPAR)
+void m_initialize(void)
 {
 char    **mb_delims;
 M_WCHAR **wc_delims;
index 11c9969d08ca74031b7c1827914ed54b78d51cfc..f907af1ce25dcfcf8c20efc3c07e60d73d79faac 100644 (file)
@@ -21,9 +21,9 @@
  * Floor, Boston, MA 02110-1301 USA
  */
 /* $XConsortium: proto.h /main/3 1995/11/08 10:57:56 rswiston $ */
-int m_actgetc(M_NOPAR);
+int m_actgetc(void);
 
-void m_adjuststate(M_NOPAR);
+void m_adjuststate(void);
 
 LOGICAL m_allwhite(const M_WCHAR *string);
 
@@ -41,20 +41,20 @@ void m_closent(void *m_ptr);
 
 void m_codeent(int m_ent);
 
-M_PARSE *m_copystackelt(M_NOPAR);
+M_PARSE *m_copystackelt(void);
 
 M_WCHAR *m_cyclent(LOGICAL init, unsigned char *type, M_WCHAR **content, 
   unsigned char *wheredef);
 
 void m_dispcurelt(M_WCHAR *file, int line);
 
-void m_done(M_NOPAR);
+void m_done(void);
 
 void m_dumpline(M_WCHAR *file, int line);
 
 void m_eduptype(int type);
 
-M_ELEMENT m_eltname(M_NOPAR);
+M_ELEMENT m_eltname(void);
 
 void m_endaction(M_ELEMENT m_elt);
 
@@ -64,7 +64,7 @@ void m_endtag(M_ELEMENT c);
 
 void m_entexpand(M_ENTITY *openent);
 
-void m_eprefix(M_NOPAR);
+void m_eprefix(void);
 
 void m_err1(const char *text, const M_WCHAR *arg);
 
@@ -87,15 +87,15 @@ void m_errline(char *p);
 
 void m_error(char *text);
 
-void m_esuffix(M_NOPAR);
+void m_esuffix(void);
 
 void m_exit(int status);
 
-void m_etcomplete(M_NOPAR);
+void m_etcomplete(void);
 
 LOGICAL m_excluded(M_ELEMENT elt);
 
-void m_expecting(M_NOPAR);
+void m_expecting(void);
 
 void m_expexpand(LOGICAL *expstart, M_STATE node, LOGICAL *required, LOGICAL *data);
 
@@ -105,7 +105,7 @@ void m_exptend(LOGICAL *expstart, M_PARSE *stackptr);
 
 int m_findact(M_ELEMENT elt, int *array);
 
-void m_findatt(M_NOPAR);
+void m_findatt(void);
 
 void m_findchain(M_PARSE *stackptr, int start, int chainin, int *chainout, int *index, 
   LOGICAL wild);
@@ -116,7 +116,7 @@ M_ELEMENT m_findunique(M_STATE from, int *newleft);
 
 void m_frcend(M_ELEMENT val);
 
-void m_frcstart(M_NOPAR);
+void m_frcstart(void);
 
 void m_free(void *block, char *msg);
 
@@ -141,23 +141,23 @@ void m_getline(M_WCHAR **file, int *line);
 
 void m_getname(M_WCHAR first);
 
-void m_getsignon(M_NOPAR);
+void m_getsignon(void);
 
 int m_gettoken(int *c, M_HOLDTYPE *dchar, int context);
 
-void m_globes(M_NOPAR);
+void m_globes(void);
 
-void m_globss(M_NOPAR);
+void m_globss(void);
 
-void m_holdproc(M_NOPAR);
+void m_holdproc(void);
 
 void m_inctest(int *count, int limit, char *message);
 
-void m_initctype(M_NOPAR);
+void m_initctype(void);
 
-void m_initialize(M_NOPAR);
+void m_initialize(void);
 
-void m_lastchars(M_NOPAR);
+void m_lastchars(void);
 
 int m_level(M_WCHAR *elt);
 
@@ -183,17 +183,17 @@ void m_nextdelimchar(int *n, int i, LOGICAL *linestart, LOGICAL newlinestart, LO
 
 void m_ntrent(M_WCHAR *p);
 
-void m_nullendtag(M_NOPAR);
+void m_nullendtag(void);
 
-LOGICAL m_omitend(M_NOPAR);
+LOGICAL m_omitend(void);
 
-LOGICAL m_omitstart(M_NOPAR);
+LOGICAL m_omitstart(void);
 
 void m_openchk(FILE **ptr, char *name, char *mode);
 
 void *m_openent(M_WCHAR *entcontent);
 
-void *m_openfirst(M_NOPAR);
+void *m_openfirst(void);
 
 void m_optstring(char *p);
 
@@ -217,45 +217,45 @@ LOGICAL m_parvalok(M_WCHAR *elt, M_WCHAR *param, const M_WCHAR *value);
 
 void m_piaction(M_WCHAR *m_pi, M_WCHAR *m_entname, int m_enttype);
 
-void m_pop(M_NOPAR);
+void m_pop(void);
 
 void m_push(M_ELEMENT elt, M_STATE current, LOGICAL need);
 
 LOGICAL m_putdata(void *data, int n);
 
-void m_readcomments(M_NOPAR);
+void m_readcomments(void);
 
 void *m_realloc(void *ptr, int size, char *msg);
 
-int m_scan(M_NOPAR);
+int m_scan(void);
 
 void m_setmap(int map, LOGICAL useoradd);
 
-void m_setoptions(M_NOPAR);
+void m_setoptions(void);
 
 void m_setparam(M_WCHAR **cvar, int par);
 
 void m_shortref(int context);
 
-void m_showcurelt(M_NOPAR);
+void m_showcurelt(void);
 
 void m_signmsg(char *p);
 
-void m_sigre(M_NOPAR);
+void m_sigre(void);
 
-void m_startdoc(M_NOPAR);
+void m_startdoc(void);
 
-void m_startmsg(M_NOPAR);
+void m_startmsg(void);
 
 void m_stcaction(M_WCHAR *m_string, LOGICAL M_START, LOGICAL M_END);
 
-void m_stcomplete(M_NOPAR);
+void m_stcomplete(void);
 
-void m_stkdefaultparams(M_NOPAR);
+void m_stkdefaultparams(void);
 
 void m_stkonedef(int par, M_ELEMENT scanel, M_WCHAR **poccur, int i);
 
-void m_stkparams(M_NOPAR);
+void m_stkparams(void);
 
 void m_strtaction(M_ELEMENT m_elt);
 
@@ -271,11 +271,11 @@ void m_textaction(M_WCHAR m_textchar);
 
 void m_textout(char *format, LOGICAL start, LOGICAL end);
 
-LOGICAL m_textpermitted(M_NOPAR);
+LOGICAL m_textpermitted(void);
 
-M_WCHAR *m_thisfile(M_NOPAR);
+M_WCHAR *m_thisfile(void);
 
-int m_thisline(M_NOPAR);
+int m_thisline(void);
 
 void m_trace(char *p);
 
@@ -297,7 +297,7 @@ int m_mbmbupstrcmp(const char *p, const char *q);
 
 LOGICAL m_validinpar(M_WCHAR *string);
 
-LOGICAL m_vldentref(M_NOPAR);
+LOGICAL m_vldentref(void);
 
 LOGICAL m_whitespace(M_WCHAR c);
 
index 17a82192a9bc208b098e7242b0250fd6fb6930c7..d42ac8f1cdf4f8826acb58f1ebc337671e7462ae 100644 (file)
@@ -51,7 +51,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "sref.h"
 
 /* Actually read a character from an input stream */
-int m_actgetc(M_NOPAR)
+int m_actgetc(void)
   {
     int c ;
 
@@ -693,7 +693,7 @@ void m_nextdelimchar(int *n, int i, LOGICAL *linestart, LOGICAL newlinestart,
     }
 
 /* Scans past a comment within a markup declaration */
-void m_readcomments(M_NOPAR)
+void m_readcomments(void)
   {
     int c ;
     M_HOLDTYPE dchar ;
@@ -706,7 +706,7 @@ void m_readcomments(M_NOPAR)
     }
 
 /* Scanner */
-int m_scan(M_NOPAR)
+int m_scan(void)
   {
     int c ;
     M_HOLDTYPE dchar ;
@@ -1040,7 +1040,7 @@ while (TRUE)
           or contextual end tag [linestat == M_SOMETHING]
       3)  If a record end might be the last one in an element, save it
 */
-void m_sigre(M_NOPAR)
+void m_sigre(void)
   {
     /* Check for first RE in content and no preceding content */
     if (m_start &&
@@ -1116,7 +1116,7 @@ void m_ungetachar(int c, M_HOLDTYPE dchar, LOGICAL preread)
     }
 
 /* Have encountered an M_ERO.  If the entity reference is valid, process it*/
-LOGICAL m_vldentref(M_NOPAR)
+LOGICAL m_vldentref(void)
   {
     M_HOLDTYPE dchar ;
     int next ;
index 0d6310521b9ac1abc4cf232aebfe56c69901acd7..6d161306ad601aa08ece6975d2f690c2998d8539 100644 (file)
@@ -30,7 +30,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 
 
 /* Set program options */
-void m_setoptions(M_NOPAR)
+void m_setoptions(void)
   {
     if (m_argc > 1) m_optstring(m_argv[1]) ;
     }
index 955b277e9833a950ef89fc5e76c9febe9f8f3b7d..c4e35ab174d35d22569fa3e014c7bf5606081001 100644 (file)
@@ -32,7 +32,7 @@ Copyright 1989 Hewlett-Packard Co.
    control after all entity declarations have been processed.  Not needed
    in valid documents (when it is called just prior to global start-code),
    but may be useful in some applications nevertheless. */
-void m_startdoc(M_NOPAR)
+void m_startdoc(void)
   {
     }
 
index ebeb765ea5a38e64fd8463174eaeca68ef6e43ed..164fa798e06f4a957b6afcc13d428a8d25a809a1 100644 (file)
@@ -191,7 +191,7 @@ LOGICAL m_ckend(M_ELEMENT val, LOGICAL neednet)
 
 /* Make a copy of the stack entry at the top of the parse stack in a scratch
    area */
-M_PARSE *m_copystackelt(M_NOPAR)
+M_PARSE *m_copystackelt(void)
   {
     M_OPENFSA *oldfsa ;
     M_OPENFSA **newfsa ;
@@ -219,7 +219,7 @@ M_PARSE *m_copystackelt(M_NOPAR)
     }
 
 /* End of document */
-void m_done(M_NOPAR)
+void m_done(void)
   {
     M_ELEMENT lastelt ;
 
@@ -398,7 +398,7 @@ LOGICAL m_nextand(thisfsa, label)
     }
 
 /* Pops the parse stack*/
-void m_pop(M_NOPAR)
+void m_pop(void)
   {
     M_PARSE *stackelt ;
 
@@ -664,7 +664,7 @@ void m_strttag(M_ELEMENT val, LOGICAL net)
    makes more sense, is used by MARKUP, and is under consideration by the
    Standards committee; the latter is the current definition in the Standard
    */
-LOGICAL m_textpermitted(M_NOPAR)
+LOGICAL m_textpermitted(void)
   {
     M_ANDGROUP pand ;
     M_OPENFSA *fsastack ;
index 25937074a8dbb47827d52838b63b656b8c950059..617d9d11ca49a5e52037f1da1e28f927af59f325 100644 (file)
@@ -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);
index 542cfcc3a4afca6f8396108d5437509d6b1cbaa8..c93ae00752caa693a0e33d0c9d36bc6a13690bea 100644 (file)
@@ -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);
 
index 7f2a63f41eec7654d968448d60f9a7ae43295171..d427156d34ea8914fd27bd10ef41a87fa5b02021 100644 (file)
@@ -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)
 {
 }
 
index f0fcb25aa040fd3945bce7c67b7d2469ed40ac55..3b799666d9e3a310d5b38810be27f74decbf7481 100644 (file)
@@ -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) ;
index af8c7b2fbe357942fa3035dda69805c8a1bbe334..9be8dde033e9cd77d4ec079503b80b3915033e37 100644 (file)
@@ -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 ;
 
index fe3ad8cf788eed260c7ac9e30101574df3a0c4bc..abed1c7eea3481ff893a869275ad098b95bc0a7e 100644 (file)
@@ -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 ;
index 465090e3be56f33d8502a5424b73a7f1a2f6964e..c9ceed66ff72e63a34de2ce9c3bde2bd34ee631f 100644 (file)
@@ -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;
index 7fa7ff4ae08b0a4d1e07a8739b568286ef026ac6..945b1cee56e32341a7e85ab412f287c1a807ee5c 100644 (file)
@@ -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 ;
 
index 931b85f006ed996f306cc3160e1ef0be32dbb09f..6660e2bb0d8c87c8955c646ee4d0d5cd5da132e2 100644 (file)
@@ -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);