dthelp: Convert all K&R function definitions to ANSI (C90) standard
authorPeter Howkins <flibble@users.sf.net>
Sat, 23 Jun 2018 23:50:56 +0000 (00:50 +0100)
committerPeter Howkins <flibble@users.sf.net>
Sat, 23 Jun 2018 23:50:56 +0000 (00:50 +0100)
172 files changed:
cde/programs/dthelp/dthelpview/Main.c
cde/programs/dthelp/parser/canon1/build/build.c
cde/programs/dthelp/parser/canon1/build/buildutl.c
cde/programs/dthelp/parser/canon1/build/eltree.c
cde/programs/dthelp/parser/canon1/build/fsa.c
cde/programs/dthelp/parser/canon1/build/out.c
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/eltdef.c
cde/programs/dthelp/parser/canon1/eltdef/eltutil.c
cde/programs/dthelp/parser/canon1/eltdef/scan.c
cde/programs/dthelp/parser/canon1/helptag/custom.c
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/closent.c
cde/programs/dthelp/parser/canon1/parser/code.c
cde/programs/dthelp/parser/canon1/parser/dcurelt.c
cde/programs/dthelp/parser/canon1/parser/end.c
cde/programs/dthelp/parser/canon1/parser/entity.c
cde/programs/dthelp/parser/canon1/parser/error.c
cde/programs/dthelp/parser/canon1/parser/input.c
cde/programs/dthelp/parser/canon1/parser/level.c
cde/programs/dthelp/parser/canon1/parser/lookent.c
cde/programs/dthelp/parser/canon1/parser/minim.c
cde/programs/dthelp/parser/canon1/parser/optstrg.c
cde/programs/dthelp/parser/canon1/parser/param.c
cde/programs/dthelp/parser/canon1/parser/parent.c
cde/programs/dthelp/parser/canon1/parser/parser.c
cde/programs/dthelp/parser/canon1/parser/parutil.c
cde/programs/dthelp/parser/canon1/parser/pi.c
cde/programs/dthelp/parser/canon1/parser/scan.c
cde/programs/dthelp/parser/canon1/parser/setpar.c
cde/programs/dthelp/parser/canon1/parser/start.c
cde/programs/dthelp/parser/canon1/parser/struct.c
cde/programs/dthelp/parser/canon1/util/context.c
cde/programs/dthelp/parser/canon1/util/conutil.c
cde/programs/dthelp/parser/canon1/util/emptyfil.c
cde/programs/dthelp/parser/canon1/util/entout.c
cde/programs/dthelp/parser/canon1/util/error.c
cde/programs/dthelp/parser/canon1/util/exit.c
cde/programs/dthelp/parser/canon1/util/fclndir.c
cde/programs/dthelp/parser/canon1/util/inctest.c
cde/programs/dthelp/parser/canon1/util/itoa.c
cde/programs/dthelp/parser/canon1/util/lower.c
cde/programs/dthelp/parser/canon1/util/malloc.c
cde/programs/dthelp/parser/canon1/util/openchk.c
cde/programs/dthelp/parser/canon1/util/scanutil.c
cde/programs/dthelp/parser/canon1/util/sparse.c
cde/programs/dthelp/parser/canon1/util/strstr.c
cde/programs/dthelp/parser/canon1/util/trie.c
cde/programs/dthelp/parser/canon1/util/triecnt.c
cde/programs/dthelp/parser/canon1/util/triedump.c
cde/programs/dthelp/parser/canon1/util/triepdmp.c
cde/programs/dthelp/parser/canon1/util/trieplk.c
cde/programs/dthelp/parser/canon1/util/trierset.c
cde/programs/dthelp/parser/canon1/util/wchar.c
cde/programs/dthelp/parser/pass1/build/build.c
cde/programs/dthelp/parser/pass1/build/buildutl.c
cde/programs/dthelp/parser/pass1/build/eltree.c
cde/programs/dthelp/parser/pass1/build/fsa.c
cde/programs/dthelp/parser/pass1/build/out.c
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/eltdef.c
cde/programs/dthelp/parser/pass1/eltdef/eltutil.c
cde/programs/dthelp/parser/pass1/eltdef/scan.c
cde/programs/dthelp/parser/pass1/helptag/custom.c
cde/programs/dthelp/parser/pass1/helptag/help.c
cde/programs/dthelp/parser/pass1/helptag/out.c
cde/programs/dthelp/parser/pass1/helptag/special.c
cde/programs/dthelp/parser/pass1/helptag/xref.c
cde/programs/dthelp/parser/pass1/parser/actutil.c
cde/programs/dthelp/parser/pass1/parser/closent.c
cde/programs/dthelp/parser/pass1/parser/code.c
cde/programs/dthelp/parser/pass1/parser/dcurelt.c
cde/programs/dthelp/parser/pass1/parser/end.c
cde/programs/dthelp/parser/pass1/parser/entity.c
cde/programs/dthelp/parser/pass1/parser/error.c
cde/programs/dthelp/parser/pass1/parser/input.c
cde/programs/dthelp/parser/pass1/parser/level.c
cde/programs/dthelp/parser/pass1/parser/lookent.c
cde/programs/dthelp/parser/pass1/parser/minim.c
cde/programs/dthelp/parser/pass1/parser/optstrg.c
cde/programs/dthelp/parser/pass1/parser/param.c
cde/programs/dthelp/parser/pass1/parser/parent.c
cde/programs/dthelp/parser/pass1/parser/parser.c
cde/programs/dthelp/parser/pass1/parser/parutil.c
cde/programs/dthelp/parser/pass1/parser/pi.c
cde/programs/dthelp/parser/pass1/parser/scan.c
cde/programs/dthelp/parser/pass1/parser/setpar.c
cde/programs/dthelp/parser/pass1/parser/start.c
cde/programs/dthelp/parser/pass1/parser/struct.c
cde/programs/dthelp/parser/pass1/util/context.c
cde/programs/dthelp/parser/pass1/util/conutil.c
cde/programs/dthelp/parser/pass1/util/entout.c
cde/programs/dthelp/parser/pass1/util/error.c
cde/programs/dthelp/parser/pass1/util/exit.c
cde/programs/dthelp/parser/pass1/util/fclndir.c
cde/programs/dthelp/parser/pass1/util/inctest.c
cde/programs/dthelp/parser/pass1/util/itoa.c
cde/programs/dthelp/parser/pass1/util/lower.c
cde/programs/dthelp/parser/pass1/util/malloc.c
cde/programs/dthelp/parser/pass1/util/openchk.c
cde/programs/dthelp/parser/pass1/util/scanutil.c
cde/programs/dthelp/parser/pass1/util/sparse.c
cde/programs/dthelp/parser/pass1/util/trie.c
cde/programs/dthelp/parser/pass1/util/triecnt.c
cde/programs/dthelp/parser/pass1/util/triedump.c
cde/programs/dthelp/parser/pass1/util/triepdmp.c
cde/programs/dthelp/parser/pass1/util/trieplk.c
cde/programs/dthelp/parser/pass1/util/trierset.c
cde/programs/dthelp/parser/pass1/util/wchar.c
cde/programs/dthelp/parser/pass2/build/build.c
cde/programs/dthelp/parser/pass2/build/buildutl.c
cde/programs/dthelp/parser/pass2/build/eltree.c
cde/programs/dthelp/parser/pass2/build/fsa.c
cde/programs/dthelp/parser/pass2/build/out.c
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/eltdef.c
cde/programs/dthelp/parser/pass2/eltdef/eltutil.c
cde/programs/dthelp/parser/pass2/eltdef/scan.c
cde/programs/dthelp/parser/pass2/htag2/custom.c
cde/programs/dthelp/parser/pass2/htag2/sdl.c
cde/programs/dthelp/parser/pass2/parser/actutil.c
cde/programs/dthelp/parser/pass2/parser/closent.c
cde/programs/dthelp/parser/pass2/parser/code.c
cde/programs/dthelp/parser/pass2/parser/dcurelt.c
cde/programs/dthelp/parser/pass2/parser/end.c
cde/programs/dthelp/parser/pass2/parser/entity.c
cde/programs/dthelp/parser/pass2/parser/error.c
cde/programs/dthelp/parser/pass2/parser/input.c
cde/programs/dthelp/parser/pass2/parser/level.c
cde/programs/dthelp/parser/pass2/parser/lookent.c
cde/programs/dthelp/parser/pass2/parser/minim.c
cde/programs/dthelp/parser/pass2/parser/optstrg.c
cde/programs/dthelp/parser/pass2/parser/param.c
cde/programs/dthelp/parser/pass2/parser/parent.c
cde/programs/dthelp/parser/pass2/parser/parser.c
cde/programs/dthelp/parser/pass2/parser/parutil.c
cde/programs/dthelp/parser/pass2/parser/pi.c
cde/programs/dthelp/parser/pass2/parser/scan.c
cde/programs/dthelp/parser/pass2/parser/setpar.c
cde/programs/dthelp/parser/pass2/parser/start.c
cde/programs/dthelp/parser/pass2/parser/struct.c
cde/programs/dthelp/parser/pass2/util/context.c
cde/programs/dthelp/parser/pass2/util/conutil.c
cde/programs/dthelp/parser/pass2/util/entout.c
cde/programs/dthelp/parser/pass2/util/error.c
cde/programs/dthelp/parser/pass2/util/exit.c
cde/programs/dthelp/parser/pass2/util/fclndir.c
cde/programs/dthelp/parser/pass2/util/inctest.c
cde/programs/dthelp/parser/pass2/util/itoa.c
cde/programs/dthelp/parser/pass2/util/lower.c
cde/programs/dthelp/parser/pass2/util/malloc.c
cde/programs/dthelp/parser/pass2/util/openchk.c
cde/programs/dthelp/parser/pass2/util/scanutil.c
cde/programs/dthelp/parser/pass2/util/sparse.c
cde/programs/dthelp/parser/pass2/util/trie.c
cde/programs/dthelp/parser/pass2/util/triecnt.c
cde/programs/dthelp/parser/pass2/util/triedump.c
cde/programs/dthelp/parser/pass2/util/triepdmp.c
cde/programs/dthelp/parser/pass2/util/trieplk.c
cde/programs/dthelp/parser/pass2/util/trierset.c
cde/programs/dthelp/parser/pass2/util/upper.c
cde/programs/dthelp/parser/pass2/util/upstrcmp.c
cde/programs/dthelp/parser/pass2/util/wchar.c

index e7c69961fce21553af027c692b55fc90cd3cefb9..8180dc9b46809372f200743026b2ffd8c1a1aa12 100644 (file)
@@ -170,7 +170,7 @@ static void ExpandVolume(
  * Purpose:        Initializes our global variables to valid starting values.
  *
  ****************************************************************************/
-static void GlobalInit()
+static void GlobalInit(void)
 
 {
 
index f13e2927a33adeaf9439c9f78e0de6f6b148f503..2ac52b2759edda6d8fdcb138ff4cf424e1535dc5 100644 (file)
@@ -38,9 +38,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "entdef.h"
 
 /* Main procedure */
-int main(argc, argv)
-int argc ;
-char **argv ;
+int main(int argc, char **argv)
 {
 int m_prevcon ;
 
index ae23d9f99eab25bdb4d3f96249d0174e02809416..aca0a4b81ce42d33e7995b85165f8945b036e47e 100644 (file)
@@ -38,9 +38,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 /* Verify that <PARAM>, <MIN> or <USEMAP> has not previously occurred in
    this rule */
-void found(flag, delim)
-LOGICAL *flag;
-char *delim;
+void found(LOGICAL *flag, char *delim)
 {
 M_WCHAR wcbuff[129];
 ssize_t  length;
index 8f312008d4517402537963eb5ae697d388c5692c..c7713f6e2ebb45f181a90b04b47090d41fb7f957 100644 (file)
@@ -34,8 +34,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "build.h"
 
 /* Enters an element name into the element name tree */
-ELTSTRUCT *ntrelt(p)
-  M_WCHAR *p ;
+ELTSTRUCT *ntrelt(M_WCHAR *p)
   {
     ELTSTRUCT *new ;
     ELTSTRUCT *old ;
index b212085bb214d24b093f3db6bf817fb515c8127e..8ddd28ca103a669471a7202d5f6355c8c85083b1 100644 (file)
@@ -58,11 +58,8 @@ int addarc(STATE *from, STATE *to, ELTSTRUCT *label, ANDGROUP *and, LOGICAL opti
 
 /*checkand is used to verify nondeterminism from start and final states
   of FSA's generated from and groups*/
-void checkand(andstart, andptr, start, root, errelt)
-  ANDGROUP *andstart, *andptr ;
-  STATE *start ;
-  TREE *root ;
-  ELTSTRUCT **errelt ;    
+void checkand(ANDGROUP *andstart, ANDGROUP *andptr, STATE *start,
+              TREE *root, ELTSTRUCT **errelt)
   {
     ARC *parc ;
     ANDGROUP *pand ;
@@ -86,12 +83,8 @@ void checkand(andstart, andptr, start, root, errelt)
 /*Checkdfsa is called when adding an arc to an FSA in order to verify that
 no existing arc from the same state (or from a start state of an and-group
 FSA labelling an arc from the same state) has the same label. */
-int checkdfsa(from, label, and, id, errelt)
-  STATE *from ;
-  ELTSTRUCT *label ;
-  ANDGROUP *and ;
-  int id ;
-  ELTSTRUCT **errelt ;
+int checkdfsa(STATE *from, ELTSTRUCT *label, ANDGROUP *and, int id,
+              ELTSTRUCT **errelt)
   {
     int c ;
     ARC *parc ;
@@ -116,10 +109,7 @@ int checkdfsa(from, label, and, id, errelt)
     }
 
 /* Check use of repeated models with and groups */
-int checkrepeat(from, and, errelt)
-  STATE *from ;
-  ANDGROUP *and ;
-  ELTSTRUCT **errelt ;
+int checkrepeat(STATE *from, ANDGROUP *and, ELTSTRUCT **errelt)
   {
     ARC *parc ;
     int c ;
@@ -142,8 +132,7 @@ int checkrepeat(from, and, errelt)
     }
 
 /* Copyintolist copies one list of states into another */
-void copyintolist(from, to)
-  STATELIST *from, **to ;
+void copyintolist(STATELIST *from, STATELIST **to)
   {
     STATELIST **new, *old ;
 
@@ -161,8 +150,7 @@ void copyintolist(from, to)
     }
 
 /* Dellist deletes a list of states */
-void dellist(list)
-  STATELIST **list ;
+void dellist(STATELIST **list)
   {
     STATELIST *p, *q ;
 
@@ -220,10 +208,7 @@ STATE *getstate(void)
     }
 
 /* Makeand processes a submodel whose connector is & */
-void makeand(canbenull, root, optional)
-  LOGICAL *canbenull ;
-  TREE *root ;
-  int optional ;
+void makeand(LOGICAL *canbenull, TREE *root, int optional)
   {
     TREE *child ;
     STATELIST *start, *final ;
@@ -308,9 +293,7 @@ void makeand(canbenull, root, optional)
    allfinal is passed from model to submodel; information in newfinal
    goes from submodel to model.
    */
-LOGICAL makefsa(root, optional)
-  TREE *root ;
-  int optional ;
+LOGICAL makefsa(TREE *root, int optional)
   {
     LOGICAL canbenull ;
 
@@ -344,9 +327,7 @@ LOGICAL makefsa(root, optional)
     }
 
 /* Makeor processes a submodel whose connector is | */
-void makeor(canbenull, root)
-  LOGICAL *canbenull ;
-  TREE *root ;
+void makeor(LOGICAL *canbenull, TREE *root)
   {
     TREE *child ;
     STATELIST *final ;
@@ -368,10 +349,7 @@ void makeor(canbenull, root)
     }
 
 /* Makeseq processes a submodel whose connector is , */
-void makeseq(canbenull, root, optional)
-  LOGICAL *canbenull ;
-  TREE *root ;
-  int optional ;
+void makeseq(LOGICAL *canbenull, TREE *root, int optional)
   {
     LOGICAL branchnull ;
     STATELIST *keepfinal = NULL, *final ;
@@ -409,10 +387,7 @@ void makeseq(canbenull, root, optional)
 
 /* Nondeterm issues a diagnostic when a nondeterministic model is
    encountered */
-void nondeterm(root, c, eltp)
-  TREE *root ;
-  int c ;
-  ELTSTRUCT *eltp ;
+void nondeterm(TREE *root, int c, ELTSTRUCT *eltp)
   {
   M_WCHAR *wtemp;
 
@@ -443,8 +418,7 @@ void nondeterm(root, c, eltp)
 
 /* Notinlist returns TRUE iff item is not in list.  If item is in list,
    it makes sure that the stored nesting level is the smaller of the two */
-LOGICAL notinlist(item, list)
-  STATELIST *item, *list ;
+LOGICAL notinlist(STATELIST *item, STATELIST *list)
   {
     for ( ; list ; list = list->next)
       if (list->value == item->value) {
@@ -456,8 +430,7 @@ LOGICAL notinlist(item, list)
 
 /* Returns true if the arc is labeled #PCDATA or with an and-group that
    has an arc labelled #PCDATA from a start state */
-LOGICAL permitspcd(a)
-  ARC *a ;
+LOGICAL permitspcd(ARC *a)
   {
     ANDGROUP *pand ;
     ARC *b ;
@@ -507,8 +480,7 @@ void push(void)
 
 /* Regenerate is used in error processing to print the portion of a grammar
    rule preceding an error */
-LOGICAL regenerate(start, stop)
-TREE *start, *stop ;
+LOGICAL regenerate(TREE *start, TREE *stop)
 {
 TREE *child ;
 
@@ -554,8 +526,7 @@ return(FALSE) ;
    by adding arcs from all the final states to all the states reachable
    in one transition from a start state, labelling them as arcs from
    start states are labelled. */
-void repeat(root)
-  TREE *root ;
+void repeat(TREE *root)
   {
     STATELIST *final ;
     ARC *a ;
@@ -606,9 +577,7 @@ void repeat(root)
 
 /* Used during processing of occurrence indicators in content models such
    as (a+)+ to prohibit duplicate arcs */
-LOGICAL samelabelarc(a, s)
-  ARC *a ;
-  STATE *s ;
+LOGICAL samelabelarc(ARC *a, STATE *s)
   {
     ARC *b ;
 
@@ -666,11 +635,8 @@ void savestartarcs(void)
 
 /* Simplebranch adds a new state and transition to it in an FSA when a
    submodel consists of a single element or of an and group */
-void simplebranch(root, value, group, optional)
-  TREE *root ;
-  ELTSTRUCT *value ;
-  ANDGROUP *group ;
-  int optional ;
+void simplebranch(TREE *root, ELTSTRUCT *value, ANDGROUP *group,
+                  int optional)
   {
     STATE *new = NULL ;
     STATELIST *index ;
@@ -718,9 +684,7 @@ void simplebranch(root, value, group, optional)
    subtree in the tree representing the grammar rule being processed and
    the pointer to a flag that is set to indicate whether or not the
    submodel can be null. */
-STATE *startfsa(root, canbenull)
-  TREE *root ;
-  LOGICAL *canbenull ;
+STATE *startfsa(TREE *root, LOGICAL *canbenull)
   {
     STATELIST *item ;
     STATE *first ;
index 28c664cc52f9eb427c910786ee56cce46396bef6..839940f17ae62b16f825798e8a6e735e1eb43a49 100644 (file)
@@ -69,8 +69,7 @@ char mrequired[] = "M_REQUIRED" ;
 
 /* Deftype returns a string indicating the default type of the nth parameter.
    */
-char *deftype(n)
-  int n ;
+char *deftype(int n)
   {
     switch (n) {
       case NAME: return(mnamedef) ;
@@ -101,9 +100,7 @@ void done(void)
     }
 
 /* Prints data value of an entry in the element name tree */
-void dumpentnode(file, value)
-  FILE *file ;
-  M_TRIE *value ;
+void dumpentnode(FILE *file, M_TRIE *value)
   {
 
     fprintf(file, ", %d", ((ELTSTRUCT *) value)->eltno) ;
@@ -111,9 +108,7 @@ void dumpentnode(file, value)
 
 /* Prints data value of an entry in the trie of short reference map names,
    reporting any maps that are referenced but not defined */
-void dumpmapnode(file, value)
-  FILE *file ;
-  M_TRIE *value ;
+void dumpmapnode(FILE *file, M_TRIE *value)
   {
     fprintf(file, ", %d", ((MAP *) value)->map) ;
     if (! ((MAP *) value)->defined)
@@ -123,9 +118,7 @@ void dumpmapnode(file, value)
 
 
 /* Prints data value of an entry in the trie of short reference delimiters */
-void dumpsrefnode(file, value)
-  FILE *file ;
-  M_TRIE *value ;
+void dumpsrefnode(FILE *file, M_TRIE *value)
   {
     fprintf(file, ", %d", ((SREFSTRUCT *) value)->srefcnt) ;
     }
@@ -133,8 +126,7 @@ void dumpsrefnode(file, value)
 
 /* Controls printing of element blocks in alphabetical order to the
    template file */
-void eltblocks(tempfile)
-  FILE *tempfile ;
+void eltblocks(FILE *tempfile)
   {
     int n ;
     M_TRIE *node[M_NAMELEN + 1] ;
@@ -223,8 +215,7 @@ void eltreeout(void)
     }
 
 /* Enttype returns a string indicating the type of an entity */
-char *enttype(n)
-  int n ;
+char *enttype(int n)
   {
     switch(n) {
       case M_GENERAL: return(mgeneral) ;
@@ -452,8 +443,7 @@ fprintf(dtd, "#define M_MAXPAR %d\n\n", maxpar) ;
 }
 
 /* Partype returns a string indicating the type of the nth parameter. */
-char *partype(n)
-  int n ;
+char *partype(int n)
   {
     switch(n) {
       case GRPO: return(mkeyword) ;
@@ -546,9 +536,7 @@ void srefout(void)
     }
 
 /* Output one element block in a template */
-void tempelt(eltp, tempfile)
-ELTSTRUCT *eltp ;
-FILE *tempfile ;
+void tempelt(ELTSTRUCT *eltp, FILE *tempfile)
 {
 PARAMETER *paramp ;
 PTYPE *ptypep ;
@@ -654,8 +642,7 @@ void template(void)
     }
 
 /* Typecon returns a string indicating the content type of the nth element.*/
-char *typecon(n)
-  int n ;
+char *typecon(int n)
   {
     switch(n) {
       case GRPO: return(mregexp) ;
index 071f3238a4555a1921f1d6409e5922d5305a39fd..b2fa330d1792ca6d9efee71d2388f32f98e2d9c3 100644 (file)
@@ -38,8 +38,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "sref.h"
 
 /* Reads a name */
-LOGICAL getname(first)
-  int first;
+LOGICAL getname(int first)
 {
 M_WCHAR *p;
 int c;
index 70e9b8a76eae72c853eca456d278b480eb8e3cca..9277b9d31553644fb82f36ff1530f076a17ba4fe 100644 (file)
@@ -36,8 +36,7 @@ static M_WCHAR *wc_prefix = NULL;
 /* Add an entity with the default name constructed by adding a suffix
    to the name of the short reference map in which it is invoked, and
    a prefix m- */
-void adddefent(mapname)
-M_WCHAR *mapname;
+void adddefent(M_WCHAR *mapname)
 {
 M_WCHAR *p;
 int n;
@@ -75,8 +74,7 @@ thissref->entidx = entity->index;
 
 /* Add an entity, return FALSE if already there, TRUE if adding it.
    Pointer to the entity structure is in global M_STRUCT *entity. */
-LOGICAL addent(name)
-M_WCHAR *name;
+LOGICAL addent(M_WCHAR *name)
 {
 M_ENTITY *new;
 
@@ -128,16 +126,14 @@ return(TRUE);
 }
 
 /* Add a named entity to a short reference map */
-void addndent(p)
-M_WCHAR *p;
+void addndent(M_WCHAR *p)
 {
 addent(p);
 thissref->entidx = entity->index;
 }
 
 /* Add a short reference delimiter */
-void addsref(p)
-M_WCHAR *p;
+void addsref(M_WCHAR *p)
 {
 SREFSTRUCT *delim;
 SREFSTRUCT *prevsr;
index fcfd5fe2a4f093c6d0dc364cba696a86ae3c32cb..fa465b2e3a79b91fe7b681d603077dc1a4f6518e 100644 (file)
@@ -44,8 +44,7 @@ void endmodel(void)
     }
 
 /* Release storage used for the tree representation of a rule */
-void freetree(treep)
-  TREE *treep ;
+void freetree(TREE *treep)
   {
     TREE *child, *discard ;
 
index e8f34f390d34a0f093905ddb5e55604dc49e3e41..cd8b38a02a514e564f876382ca6653fea0912031 100644 (file)
@@ -46,9 +46,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "entity.h"
 
 /* Main program */
-int main(argc, argv)
-  int argc ;
-  char **argv ;
+int main(int argc, char **argv)
   {
     int m_token ;
 
index ee96a26c9d67ebfde958b2541963a035812656d5..2dc28f05a88bdd45b3e7c184ecc91091ea1b31b5 100644 (file)
@@ -46,9 +46,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "version.h"
 
 /* Output indicated action pointer array to if.h */
-void actptrout(array, name)
-  ACTION **array;
-  char *name;
+void actptrout(ACTION **array, char *name)
   {
     int i;
 
@@ -267,8 +265,7 @@ void endstring(void)
 
 /* Set the type of an entity and check if different than declaration in
    BUILD */
-void enttype(type)
-  int type;
+void enttype(int type)
   {
     if ((entity->type == M_PI && type == M_CODEPI) ||
         (entity->type == M_SDATA && type == M_CODESDATA));
@@ -294,8 +291,7 @@ void freechain(void)
 
 /* Returns pointer to data field in action node for current chain of
    elements */
-int *getaction(array)
-  ACTION **array;
+int *getaction(ACTION **array)
   {
     ACTION *start, *node;
     CHAIN *chainp;
@@ -431,8 +427,7 @@ void outstring(void)
     }
 
 /* Output #define's for parameter values */
-void outpval(p)
-M_TRIE *p;
+void outpval(M_TRIE *p)
 {
 M_WCHAR *q;
 
@@ -530,14 +525,8 @@ void skiptoend(void)
   }
 
 /* Starts processing a code segment from the input file */
-void startcode(caseno, flag, file, prefix, proto, formal, formtype)
-int caseno;
-LOGICAL *flag;
-FILE *file;
-char *prefix;
-char *proto;
-char *formal;
-char *formtype;
+void startcode(int caseno, LOGICAL *flag, FILE *file, char *prefix,
+               char *proto, char *formal, char *formtype)
 {
 CVARSTRUCT *cvarp;
 
@@ -631,8 +620,7 @@ void storepname(void)
     }
 
 /* Called when a possible parameter value to be defined is encountered */
-void value(p)
-M_WCHAR *p;
+void value(M_WCHAR *p)
 {
 char buffer[5];
 
index d4f8e5815e999d68f87994088f5cd769dd06b761..18114fef9bf5708873f784b2f89b3810a9a8757b 100644 (file)
@@ -43,8 +43,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "delim.h"
 
 /* Reads a name token */
-void getname(first)
-int first;
+void getname(int first)
 {
 M_WCHAR *p, wus;
 int c, cttype;
index ac501530d439fa4f00d66493eacca4100f50a849..bf7515bdae3ed1b77b245f60e4ddcb0d8b15fb51 100644 (file)
@@ -33,9 +33,7 @@ Copyright (c) 1988, 1989 Hewlett-Packard Co.
 #include <stdlib.h>
 
 /* Write input file and line number for an error message */
-void m_dumpline(file, line)
-M_WCHAR *file;
-int line;
+void m_dumpline(M_WCHAR *file, int line)
 {
 char buffer[10];
 char *mbyte;
@@ -71,8 +69,7 @@ m_errline(",\n");
 }
 
 /* Process error message text */
-void m_errline(p)
-char *p;
+void m_errline(char *p)
 {
 char c;
 
@@ -96,8 +93,7 @@ if (++m_errcnt == m_errlim)
 }
 
 /* Exit procedure */
-void m_exit(status)
-int status;
+void m_exit(int status)
 {
 if (filefound)
     {
@@ -138,8 +134,7 @@ exit(0);
 }
 
 /* Get-char procedure */
-int m_getc(m_ptr)
-void *m_ptr;
+int m_getc(void *m_ptr)
 {
 int  c;
 M_WCHAR wc;
@@ -193,8 +188,7 @@ return((int) wc);
 }
 
 /* Open SYSTEM entity procedure */
-void *m_openent(entcontent)
-M_WCHAR *entcontent;
+void *m_openent(M_WCHAR *entcontent)
 {
 FILE *open;
 char *filename;
@@ -272,7 +266,7 @@ return((void *) first);
 }
 
 /* Set program options */
-void m_setoptions()
+void m_setoptions(void)
   {
     /* F option used for FILELIST (checking done in basename, which is
        called before this function is called) */
@@ -298,8 +292,7 @@ void m_setoptions()
 
 /* Process signon message text, stripping out MARKUP version number, so
    only one version number will appear */
-void m_signmsg(p)
-  char *p;
+void m_signmsg(char *p)
   {
     char *q;
     char *pCopy;
@@ -317,7 +310,7 @@ void m_signmsg(p)
 
 /* All entity declarations have been processed.  Can now check if .TEX
    file uptodate and open appropriate output file */
-void m_startdoc()
+void m_startdoc(void)
 {
 LOGICAL init = TRUE;
 unsigned char type;
@@ -358,16 +351,14 @@ else
 }
 
 /* Write debugging trace information */
-void m_trace(p)
-char *p;
+void m_trace(char *p)
 {
 if (tracetostd) fputs(p, stdout);
 else fputs(p, m_outfile);
 }
 
 
-void m_wctrace(p)
-M_WCHAR *p;
+void m_wctrace(M_WCHAR *p)
 {
 char *mb_p;
 
index 8e7cb5608f1ff34ba1693d034d5bdbf44b6d2a0e..40c6cf444caa267d1423771f4ed5368a2dbd9d98 100644 (file)
@@ -250,8 +250,7 @@ else
 
 
 /* This procedure starts a CHAPTER */
-void chapstart(id)
-M_WCHAR *id;
+void chapstart(M_WCHAR *id)
 {
 M_WCHAR *p, *q, *wc;
 int i;
@@ -499,9 +498,7 @@ return ( 0 );
 }  /* end mb_getqualified */
 
 
-int getqualified (qualname, unqualname)
-M_WCHAR *qualname;
-M_WCHAR *unqualname;
+int getqualified (M_WCHAR *qualname, M_WCHAR *unqualname)
 {
 int retval;
 char mb_qualname[FNAMELEN],
@@ -521,13 +518,9 @@ return retval;
 
 /* handle the common link and graphic code for <p> and <image> */
 void
-handle_link_and_graphic(parent,
-                       gentity,
-                       gposition,
-                       ghyperlink,
-                       glinktype,
-                       gdescription)
-M_WCHAR *parent, *gentity, *gposition, *ghyperlink, *glinktype, *gdescription;
+handle_link_and_graphic(M_WCHAR *parent, M_WCHAR *gentity,
+                        M_WCHAR *gposition, M_WCHAR *ghyperlink,
+                        M_WCHAR *glinktype, M_WCHAR *gdescription)
 {
 unsigned char etype, wheredef;
 char *mb_content, *ssi, id[32];
@@ -921,8 +914,7 @@ if (item_id)
 
 
 /* Start a rsect */
-void rsectstart(id)
-M_WCHAR *id;
+void rsectstart(M_WCHAR *id)
 {
 savid = checkid(id);
 iderr = FALSE;
@@ -942,8 +934,7 @@ rsectseq = FALSE;
 
 
 /* Follow search path to find a file, returning qualified name */
-M_WCHAR *searchforfile(file)
-M_WCHAR *file;
+M_WCHAR *searchforfile(M_WCHAR *file)
 {
 M_WCHAR *filename;
 SEARCH *searchp;
@@ -1064,9 +1055,7 @@ if (wc_id)
 
 
 /* Start a labeled list */
-void StartLabList(spacing, longlabel)
-M_WCHAR *spacing;
-M_WCHAR *longlabel;
+void StartLabList(M_WCHAR *spacing, M_WCHAR *longlabel)
 {
        char *mb_spacing;
 static char  def_spacing[] = "LOOSE";
@@ -1249,7 +1238,7 @@ lastlist = nextlist;
 }
 
 
-void EndList()
+void EndList(void)
 {
 LIST *curlist ;
 CONTCHAIN *chain, *xchain ;
@@ -1589,7 +1578,7 @@ _DtLcxCloseDb(&myDb);
  * fashion.
 */
 static char *
-GetStdLocale()
+GetStdLocale(void)
 {
 static char buffer[256];
 static char *cString   = "C";
@@ -1669,7 +1658,7 @@ return buffer;
  * versions of the language and charset.
 */
 void
-SetDefaultLocale()
+SetDefaultLocale(void)
 {
 unsigned char type,wheredef;
 M_WCHAR *elementName;
@@ -2186,14 +2175,14 @@ while (*wcp)
 return(newstring);
 }
 
-int NextId()
+int NextId(void)
 {
 static id = 0;
 
 return ++id;
 }
 
-char *GetLanguage()
+char *GetLanguage(void)
 {
 static char *pLang = NULL;
 
@@ -2205,7 +2194,7 @@ if (!pLang)
 return pLang;
 }
 
-char *GetCharset()
+char *GetCharset(void)
 {
 static char *pCharset = NULL;
 
@@ -2632,7 +2621,7 @@ else
 }
 
 
-void IncludeToss()
+void IncludeToss(void)
 {
 char    pathbuf[BIGBUF];
 char   *try = pathbuf;
@@ -2768,7 +2757,7 @@ return(name) ;
  * content is modified to be <SPC NAME="[......]"> so that it may be
  * emitted into the SDL output.
 */
-void ModifyEntities()
+void ModifyEntities(void)
 {
 unsigned char type;
 unsigned char wheredef;
@@ -2931,7 +2920,7 @@ fputs(">\n", outfile);
 needFData = TRUE;
 }
 
-void PopForm()
+void PopForm(void)
 {
 if (inBlock)
     {
@@ -2947,7 +2936,7 @@ mb_free(&(formStackTop->rowVec));
 --formStackTop;
 }
 
-void PopForm2()
+void PopForm2(void)
 {
 if (inBlock)
     {
@@ -2968,7 +2957,7 @@ mb_free(&(formStackTop->rowVec));
  * is pushed but the source doesn't go to text either because the text
  * is explicitly optional or due to the fact that text can be null.
 */
-void PopFormMaybe()
+void PopFormMaybe(void)
 {
 if ((formStackTop >= formStackBase) && (formStackTop->vecLen == 1))
     {
@@ -2977,7 +2966,7 @@ if ((formStackTop >= formStackBase) && (formStackTop->vecLen == 1))
     }
 }
 
-void EmitSavedAnchors()
+void EmitSavedAnchors(void)
 {
 char buffer[BIGBUF];
 
@@ -2992,7 +2981,7 @@ if (parTextId)
     }
 }
 
-void CloseVirpage()
+void CloseVirpage(void)
 {
 if (parTextId)
     {
index 804b21356c7d1fa8ce98823406fd88d893e6fb30..5ba4790c39416f89dda042102fe7559365cd146d 100644 (file)
@@ -31,8 +31,7 @@
 
 /* Echo part of a head to the screen to indicate how much of the document
    has been processed */
-void echohead(p)
-M_WCHAR *p;
+void echohead(M_WCHAR *p)
 {
 char *mb_p,*mb_string;
 
@@ -54,8 +53,7 @@ m_free(mb_string,"multi-byte string");
 }
 
 /* call echohead with a literal string */
-void mb_echohead(p)
-char *p;
+void mb_echohead(char *p)
 {
 M_WCHAR *wc;
 
@@ -104,7 +102,7 @@ echo = savhd = FALSE;
  * location is placed in the snb file and the <snb> elements are
  * emitted there too.
 */
-void chksnb()
+void chksnb(void)
 {
 fputs("</HEAD>\n", outfile);
 snbstart = ftell(outfile);
@@ -276,10 +274,7 @@ else
 
 
 /* Called for processing instruction */
-void outpi(enttype, pi, entname)
-int enttype;
-M_WCHAR *pi;
-M_WCHAR *entname;
+void outpi(int enttype, M_WCHAR *pi, M_WCHAR *entname)
 {
 strcode(pi, outfile);
 
@@ -392,13 +387,8 @@ shchar(wc_textchar, len, max, string, proc, msg, errflg);
 
 /* Save a string in the array used to store table of contents entries
    when processing a head */
-void shstring(addstring, len, max, storestring, msg, errflg)
-M_WCHAR *addstring;
-int *len;
-int max;
-M_WCHAR *storestring;
-char *msg;
-LOGICAL *errflg;
+void shstring(M_WCHAR *addstring, int *len, int max,
+              M_WCHAR *storestring, char *msg, LOGICAL *errflg)
 {
 int addlength;
 
@@ -419,13 +409,8 @@ else
 }
 
 
-void mb_shstring(addstring, len, max, storestring, msg, errflg)
-char *addstring;
-int *len;
-int max;
-M_WCHAR *storestring;
-char *msg;
-LOGICAL *errflg;
+void mb_shstring(char *addstring, int *len, int max,
+                 M_WCHAR *storestring, char *msg, LOGICAL *errflg)
 {
 M_WCHAR *wc_addstring;
 
@@ -435,9 +420,7 @@ m_free(wc_addstring,"wide character string");
 }
 
 /* Writes a string to the output file, and if appropriate saves it */
-void strcode(string, outfile)
-M_WCHAR *string;
-FILE *outfile;
+void strcode(M_WCHAR *string, FILE *outfile)
 {
 char    exbuff[32]; /* arbitrarily large */
 int     bufflen;
@@ -492,9 +475,7 @@ if (savex)
 }
 
 
-void mb_strcode(string, outfile)
-char *string;
-FILE *outfile;
+void mb_strcode(char *string, FILE *outfile)
 {
 M_WCHAR *wc;
 
@@ -504,8 +485,7 @@ m_free(wc,"wide character string");
 }
 
 /* Copies string to end of buffer where saving head for table of contents */
-void svhdstring(string)
-M_WCHAR *string;
+void svhdstring(M_WCHAR *string)
 {
 int length;
 
@@ -524,8 +504,7 @@ svheadlen += length;
 }
 
 /* Copies string to end of buffer where saving table caption */
-void svtcstring(string)
-M_WCHAR *string;
+void svtcstring(M_WCHAR *string)
 {
 int length;
 
@@ -605,10 +584,7 @@ else
 }
 
 /* Process a PI in a term */
-void termpi(m_enttype, m_pi, m_entname)
-int m_enttype;
-M_WCHAR *m_pi;
-M_WCHAR *m_entname;
+void termpi(int m_enttype, M_WCHAR *m_pi, M_WCHAR *m_entname)
 {
 int length;
 
index 4a1259d6575fddca39e041adc62fab85ff96c355..e308e1b7ddc4839013bb3680acc6990f69f3cf72 100644 (file)
@@ -31,8 +31,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "globdec.h"
 
 /* Chk for duplicate xref id's, called in TEST, S1, S2, S3, S4, and rsect. */
-M_WCHAR *checkid(id)
-M_WCHAR *id;
+M_WCHAR *checkid(M_WCHAR *id)
 {
 struct xref *xref;
 char *buffer;
@@ -80,10 +79,7 @@ return(NULL);
 }
 
 /* Write a single cross-reference macro definition */
-static void defxref(xfile, id, xref)
-FILE *xfile;
-M_WCHAR *id;
-struct xref *xref;
+static void defxref(FILE *xfile, M_WCHAR *id, struct xref *xref)
 {
 char *csname;
 char *p;
@@ -191,8 +187,7 @@ while (TRUE)
 }
 
 /* Copies string to end of current cross-reference string */
-void idstring(string)
-M_WCHAR *string;
+void idstring(M_WCHAR *string)
 {
 int length;
 
@@ -409,8 +404,7 @@ savid = NULL;
 }
 
 /* Generate a cross-reference */
-void xrefexpand(id)
-M_WCHAR *id;
+void xrefexpand(M_WCHAR *id)
 {
 struct xref *xref;
 struct xref *old;
index 7e4495d508d1fdd60eabf94edede8368ca059fcc..8c07eee881948b705f39e5257bba15993b84748a 100644 (file)
@@ -44,8 +44,7 @@ in the interface definition.*/
 #include "signon.h"
 
 /* When an explicit or implied end-tag occurs */
-void m_endaction(m_elt)
-  M_ELEMENT m_elt;
+void m_endaction(M_ELEMENT m_elt)
   {
     M_ELEMENT m_action;
     char buffer[2*MAXD+M_NAMELEN+1];
@@ -76,9 +75,7 @@ void m_endaction(m_elt)
     }
 
 /* Find appropriate action according to current stack */
-int m_findact(elt, array)
-  M_ELEMENT elt;
-  int *array;
+int m_findact(M_ELEMENT elt, int *array)
   {
     int chainlen = 0;
     int index;
@@ -156,8 +153,7 @@ m_free(wc_string,"wide character string");
 }    
 
 /* When an explicit or implied start-tag occurs */
-void m_strtaction(m_elt)
-  M_ELEMENT m_elt;
+void m_strtaction(M_ELEMENT m_elt)
   {
     int m_par, m_i;
     M_WCHAR *m_p;
index 3040932a01aa45b24e63c1b8b631037ae7b106a4..cff0aac921511519b985716abbe18622213a1073 100644 (file)
@@ -28,8 +28,7 @@
 #include "userinc.h"
 #include "globdec.h"
 
-void m_closent(m_ptr)
-  void *m_ptr ;
+void m_closent(void *m_ptr)
   {
     fclose((FILE *) m_ptr) ;
     }
index e72ad5f6ef117d625948e485700386197d185d66..b13a13ffa712c5e4cae7846a7cfdb378a18f750e 100644 (file)
@@ -37,8 +37,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "entfile.c"
 
 /* When a reference to a CODE entity is encountered */
-void m_codeent(m_ent)
-  int m_ent ;
+void m_codeent(int m_ent)
   {
     (*m_ctable[m_ent])() ;
   }
index 66965ccf6f38e5b7c923a28ae504c59fc7cec34d..a345aafa6e4bb0f23c897df9a4d552518ec990ad 100644 (file)
@@ -29,9 +29,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "globdec.h"
 
 /* Displays current element after some error messages */
-void m_dispcurelt(file, line)
-M_WCHAR *file ;
-int line ;
+void m_dispcurelt(M_WCHAR *file, int line)
 {
 char *mb_parent;
 
index 9ad62c704f135e753dcd86d0aa764e8f87e7c8dc..20d9e273cb03f82122d6da2d03684216f215f41d 100644 (file)
@@ -39,8 +39,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 
 /* Perform the m_action-th end-code in the interface */
-void m_endcase(m_action)
-  int m_action ;
+void m_endcase(int m_action)
   {
     (*m_etable[m_action])() ;
     }
index f27cf0e712c1deae87fbdca0fb15ffac0a9ae70f..d136f01fc1bd2a5c5c8d8543aeffa59db306699a 100644 (file)
@@ -52,8 +52,7 @@ void m_ckmap(M_WCHAR *name, LOGICAL useoradd)
 /* Check type specified in entity declaration for previously defined
    entity.  Testing to see if the new declaration is identical to the
    original one. */
-void m_eduptype(type)
-  int type ;
+void m_eduptype(int type)
   {
     if ((int) m_entity->type != type) {
       m_err1("Redefinition of entity %s ignored", m_entity->name) ;
@@ -63,8 +62,7 @@ void m_eduptype(type)
     }
 
 /* Tests if an entity is too long */
-void m_longent(context)
-  int context ;
+void m_longent(int context)
   {
     if (m_entclen >= M_LITLEN) {
       m_curcon = context ;
@@ -74,8 +72,7 @@ void m_longent(context)
     }
 
 /* Enters an entity name into the entity name tree */
-void m_ntrent(p)
-  M_WCHAR *p ;
+void m_ntrent(M_WCHAR *p)
   {
     M_ENTITY *new ;
 
index e83303c2d614b325ddd3009be5668b77ef51e82c..6a20d97641c8606c96d45cc9776c6e115387cb59 100644 (file)
@@ -40,8 +40,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 
 /* Issue error message (no arguments) */
-void m_error(text)
-  char *text;
+void m_error(char *text)
   {
     m_startmsg();
     m_errline(text);
@@ -314,9 +313,7 @@ void m_err7(
 
 /* Getline.c returns the name of the current input file and the number
    of the current line */
-void m_getline(file, line)
-  M_WCHAR **file;
-  int *line;
+void m_getline(M_WCHAR **file, int *line)
   {
     int i;
 
index ab81425c360b0bb58b94aae663787d23327c4588..21762c67e80b97ac25a16985ad6bd586fd7c85f5 100644 (file)
@@ -64,8 +64,7 @@ void m_etcomplete(void)
 
 /* M_frcend is called after a syntax error to end element VAL even
    if more content for that element is expected */
-void m_frcend(val)
-  M_ELEMENT val ;
+void m_frcend(M_ELEMENT val)
   {
     M_PARSE *stackptr ;
     M_ELEMENT poppedval ;
index 4f0a52d4e252661827d8c8940ebfdc9e88690468..8468f5608b433c2d050a67e51006c7c60efd45d0 100644 (file)
@@ -33,8 +33,7 @@
 
 /* Procedure callable by interface designer.  Returns number of occurrences
    of element on parse stack */
-int m_level(elt)
-  M_WCHAR *elt ;
+int m_level(M_WCHAR *elt)
   {
     int i = 0 ;
     M_PARSE *stackptr ;
@@ -48,8 +47,7 @@ int m_level(elt)
     }
 
 
-int m_mblevel(elt)
-  char *elt ;
+int m_mblevel(char *elt)
   {
   int     retval;
   M_WCHAR *wc_elt;
index 5cadab9111f2c526372cc7ea346a5b4d3fdead4e..e39c8878733996588b1c0dbbfff7ce4073e4f76c 100644 (file)
@@ -38,11 +38,8 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "parser.h"
 #include "entext.h"
 
-LOGICAL m_lookent(name, type, content, wheredef)
-  M_WCHAR *name ;
-  unsigned char *type ;
-  M_WCHAR **content ;
-  unsigned char *wheredef ;
+LOGICAL m_lookent(M_WCHAR *name, unsigned char *type,
+                  M_WCHAR **content, unsigned char *wheredef)
   {
     M_ENTITY *entity ;
 
index c18ceb1eabb8354a75cfee2874a67a48886cb21e..078da268834383d691a1e7e69a99c21701c62be2 100644 (file)
@@ -99,11 +99,8 @@ void m_expecting(void)
 
 /* Recursive procedure first called from expecting() to display
    names of elements reachable from a particular node */
-void m_expexpand(expstart, node, required, data)
-  LOGICAL *expstart ;
-  M_STATE node ;
-  LOGICAL *required ;
-  LOGICAL *data ;
+void m_expexpand(LOGICAL *expstart, M_STATE node, LOGICAL *required,
+                 LOGICAL *data)
   {
     M_ARC parc ;
     M_ANDGROUP pand ;
@@ -125,10 +122,7 @@ void m_expexpand(expstart, node, required, data)
     }
 
 /* M_expline writes one line for m_expecting() */
-void m_expline(expstart, data, label)
-  LOGICAL *expstart ;
-  LOGICAL *data ;
-  M_ELEMENT label ;
+void m_expline(LOGICAL *expstart, LOGICAL *data, M_ELEMENT label)
   {
     char buffer[M_NAMELEN + 2*MAXD + 1] ;
 
@@ -165,9 +159,7 @@ void m_expline(expstart, data, label)
 
 /* M_exptend is called from m_expecting to inform the user after an
    error if an end tag is permitted */
-void m_exptend(expstart, stackptr)
-  LOGICAL *expstart ;
-  M_PARSE *stackptr ;
+void m_exptend(LOGICAL *expstart, M_PARSE *stackptr)
   {
     char buffer[M_NAMELEN + 2*MAXD + 1] ;
 
@@ -216,9 +208,7 @@ void m_exptend(expstart, stackptr)
    element, 1 if character data is expected, and 0 (FALSE) if there is
    no unique element. 
 */
-M_ELEMENT m_findunique(from, newleft)
-  M_STATE from ;
-  int *newleft ;
+M_ELEMENT m_findunique(M_STATE from, int *newleft)
   {
     M_ARC parc ;
     M_ELEMENT cr = 0, minim = 0;
@@ -339,7 +329,7 @@ LOGICAL m_omitend(void)
 
 /* Tests to see if a start tag may have been omitted at this point of
    the parse.  If so, saves the element name in the MINVAL array*/
-LOGICAL m_omitstart()
+LOGICAL m_omitstart(void)
   {
     M_ELEMENT c = M_NULLVAL ;
 
index 255b32d64e2903fecac0005f27bc26bc08ca464b..9056f2eed10370369cce22b4873156ca3c6b8da5 100644 (file)
@@ -33,8 +33,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "parser.h"
 
 /* Get program options from a string */
-void m_optstring(p)
-  char *p ;
+void m_optstring(char *p)
   {
     if (strchr(p, 'a')) m_malftrace = TRUE ;
     if (strchr(p, 'c')) m_chtrace = TRUE ;
index bec0a121d96817b8a3c19b792f7848934ec89097..3eb226f75772f9f4440fea6632ac260b146a3f13 100644 (file)
@@ -42,8 +42,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 /* Process the value for the parameter whose index number was previously
    saved in m_ppsave */
-void m_attval(string)
-  M_WCHAR *string ;
+void m_attval(M_WCHAR *string)
   {
     const M_WCHAR *p ;
 
@@ -65,8 +64,7 @@ void m_attval(string)
 
 /* Process a string that is a parameter value not prefixed by the parameter
    name and value indicator */
-LOGICAL m_attvonly(string)
-  M_WCHAR *string ;
+LOGICAL m_attvonly(M_WCHAR *string)
   {
     const M_WCHAR *p ;
     int par, i ;
@@ -152,8 +150,7 @@ void m_findatt(void)
     }
 
 /* Free the parameter storage associated with an element on the parse stack */
-void m_freeparam(stackelt)
-  M_PARSE *stackelt ;
+void m_freeparam(M_PARSE *stackelt)
   {
     int i ;
     int par ;
@@ -173,9 +170,7 @@ void m_freeparam(stackelt)
 /* Force a parameter value to uppercase, if appropriate for its type.
    Also, if list-valued attribute, remove leading and trailing spaces,
    and condense white-space sequences to a single blank*/
-void m_parupper(par, string)
-  int par ;
-  M_WCHAR *string ;
+void m_parupper(int par, M_WCHAR *string)
   {
     M_WCHAR *p ;
     M_WCHAR *q ;
@@ -233,11 +228,7 @@ void m_stkdefaultparams(void)
     }
 
 /* Stack one default parameter */
-void m_stkonedef(par, scanel, poccur, i)
-  int par ;
-  M_ELEMENT scanel ;
-  M_WCHAR **poccur ;
-  int i ;
+void m_stkonedef(int par, M_ELEMENT scanel, M_WCHAR **poccur, int i)
   {
     if (m_parameter[par - 1].deftype == M_REQUIRED ||
         (m_parameter[par - 1].deftype == M_CURRENT &&
@@ -313,8 +304,7 @@ void m_updatedefault(const int par , const M_WCHAR *string )
 
 /* Check to see if a string that occurs after the element name in a start
    tag is a valid parameter name or value; if not, assume tag is ended */
-LOGICAL m_validinpar(string)
-  M_WCHAR *string ;
+LOGICAL m_validinpar(M_WCHAR *string)
   {
     int par ;
     M_WCHAR *p ;
index 4cadab455ce3bc62e6e8d6ec8d55bf6ced0686c4..a8c7e198e58a17c854f573d5a735aceefd1388ee 100644 (file)
@@ -34,8 +34,7 @@
 /* Procedure callable by interface designers.  Returns pointer to name
    of nth level parent of current element (0 is self, 1 is parent, 2
    is grandparent, etc.) */
-M_WCHAR *m_parent(n)
-  int n ;
+M_WCHAR *m_parent(int n)
   {
     M_PARSE *stackptr ;
 
index 754021cf67c7d540270577680c8953be075cf97d..7d7ac070bf3b98b85e5d627549d632f283dc624f 100644 (file)
@@ -38,9 +38,7 @@
 static void scanloop(LOGICAL prolog);
 
 /* Main procedure */
-int main(argc, argv)
-  int argc ;
-  char **argv ;
+int main(int argc, char **argv)
 {
 M_WCHAR *wc_userdef;
 
index 2c321ac9c043c44c8465251e2aa09137d5cf6e5a..f2f65715ea021ddc8f64a9f3783bfad8359abd28 100644 (file)
@@ -87,7 +87,7 @@ M_ELEMENT m_eltname(void)
       }
     }
 
-int get_mb_cur_max()
+int get_mb_cur_max(void)
 {
 char *l;
 int   i;
index b3b8b63344bb30c4aa911fcb56e47447bd4dc6b6..f254ac121eb7b21d84e414f1932781cdf547bf93 100644 (file)
@@ -38,10 +38,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 /* When a processing instruction or SDATA entity other than a CODE entity
    occurs */
-void m_piaction(m_pi, m_entname, m_enttype)
-  M_WCHAR *m_pi ;
-  M_WCHAR *m_entname ;
-  int m_enttype ;
+void m_piaction(M_WCHAR *m_pi, M_WCHAR *m_entname, int m_enttype)
   {
     m_stackpar = m_stacktop->piparam ;
     (*m_ptable[m_stacktop->picase])(m_pi, m_entname, m_enttype) ;
index 0d2bc240ef79c133bfd1cea36b7e66c522fee158..19c988d5120b4cf1f5172139ba2c2181e1350136 100644 (file)
@@ -62,8 +62,7 @@ int m_actgetc(void)
     }
 
 /* Expand an entity reference */
-void m_entexpand(openent)
-  M_ENTITY *openent ;
+void m_entexpand(M_ENTITY *openent)
   {
     M_WCHAR *p ;
     M_HOLDTYPE dchar ;
@@ -231,9 +230,7 @@ void m_entexpand(openent)
 
 /* An srlen-character long short-reference delimiter has been found.  Verify
    that it is not the prefix of a general delimiter recognized in context*/
-LOGICAL m_gendelim(srlen, context)
-  int srlen ;
-  int context ;
+LOGICAL m_gendelim(int srlen, int context)
   {
     int ghold[MAXD + 1] ;
     int ucase ;
@@ -321,8 +318,7 @@ LOGICAL m_gendelim(srlen, context)
 
 /* Reads next input character from the current source file or from an
    entity expansion */
-int m_getachar(dchar)
-  M_HOLDTYPE *dchar ;
+int m_getachar(M_HOLDTYPE *dchar)
   {
     int c ;
     int i ;
@@ -424,10 +420,7 @@ void m_getname(M_WCHAR first)
     }
 
 /* Reads the next token */
-int m_gettoken(c, dchar, context)
-  int *c ;
-  M_HOLDTYPE *dchar ;
-  int context ;
+int m_gettoken(int *c, M_HOLDTYPE *dchar, int context)
   {
     int hold[MAXD + 1], next ;
     int ucase ;
@@ -551,8 +544,7 @@ int m_gettoken(c, dchar, context)
     }
 
 /* Reads a literal */
-void m_litproc(delim)
-  int delim ;
+void m_litproc(int delim)
   {
     int n, i ;
     M_HOLDTYPE dchar ;
@@ -896,8 +888,7 @@ void m_setmap(int map, LOGICAL useoradd)
     }
 
 /* Check for short reference delimiters */
-void m_shortref(context)
-int context ;
+void m_shortref(int context)
 {
 int n = 0 ;
 int i ;
index 8dfae12912e4d8b44db8f1d5509641aa0aa8ec49..a9833119c9734db0279ee69e11195c13fae8565b 100644 (file)
@@ -35,9 +35,7 @@
 #include "parser.h"
 
 /* Set a user-defined C variable to the corresponding parameter value */
-void m_setparam(cvar, par)
-  M_WCHAR **cvar ;
-  int par ;
+void m_setparam(M_WCHAR **cvar, int par)
   {
     *cvar = m_stackpar->param[par] ;
     }
index ba35115baa1854fb521feaf6c747da9882d0299e..d3a3ca3e1d7d8ceb1322a28b42306cfb9502bebb 100644 (file)
@@ -36,8 +36,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "sfile.c"
 
 /* Perform the m_action-th start-code in the interface */
-void m_strtcase(m_action)
-  int m_action ;
+void m_strtcase(int m_action)
   {
     (*m_stable[m_action])() ;
     }
index 1b4e526c9364f9758d3ebe05de2e7bcbc38ef269..8c43ec9b672987d98a1acd6e3c5c1dddcd07e61a 100644 (file)
@@ -46,8 +46,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
    is valid input. It returns TRUE, FALSE, or M_NONCONTEXTUAL respectively
    if the element is allowed by content, not allowed, or allowed by an
    inclusion exception. */
-int m_checkstart(val)
-  M_ELEMENT val ;
+int m_checkstart(M_ELEMENT val)
   {
     M_PARSE *stackptr ;
     int except ;
@@ -238,8 +237,7 @@ void m_done(void)
     }
 
 /* Process the endtag (implied, abbreviated, or explicit) for element C*/
-void m_endtag(c)
-  M_ELEMENT c ;
+void m_endtag(M_ELEMENT c)
   {
     m_endaction(c) ;
     m_pop() ;
@@ -251,8 +249,7 @@ void m_endtag(c)
 
 /* Check that the identified element is not prohibited in the current context
    by an exclusion exception */
-LOGICAL m_excluded(elt)
-  M_ELEMENT elt ;
+LOGICAL m_excluded(M_ELEMENT elt)
   {
     M_PARSE *stackptr ;
     int except ;
@@ -270,8 +267,7 @@ LOGICAL m_excluded(elt)
 
 /* Free the OPEN FSA substructures associated with an element on
    the parse stack */
-void m_freeFSA(stackelt)
-  M_PARSE *stackelt ;
+void m_freeFSA(M_PARSE *stackelt)
   {
     M_OPENFSA *fsastack ;
     M_ANDLIST *usedand ;
@@ -290,9 +286,7 @@ void m_freeFSA(stackelt)
     }
 
 /* Free storage used for tentative chain of tag minimizations */
-void m_freemin(min, msg)
-  M_MIN *min ;
-  char *msg ;
+void m_freemin(M_MIN *min, char *msg)
   {
     M_MIN *discard ;
 
@@ -307,9 +301,7 @@ void m_freemin(min, msg)
    in the current content model by starting a new submodel of the and-group
    indicated by fsastack, or (if the and-group is within a seq-group) by
    continuing past the and-group */
-LOGICAL m_nextand(thisfsa, label)
-  M_OPENFSA *thisfsa ;
-  M_ELEMENT label ;
+LOGICAL m_nextand(M_OPENFSA *thisfsa, M_ELEMENT label)
   {
     M_ANDLIST *newgroup ;
     M_ANDGROUP pand ;
@@ -461,8 +453,7 @@ void m_push(M_ELEMENT elt, M_STATE current, LOGICAL need)
    character is treated differently so that if character data is not
    allowed in the current context, an error message is issued with the
    first character only and not with every character. */
-void m_strtcdata(scanval)
-  int scanval ;
+void m_strtcdata(int scanval)
   {
     if (! m_strtproc(M_NULLVAL))
       if (m_whitespace((M_WCHAR) scanval)) {
@@ -493,8 +484,7 @@ void m_strtcdata(scanval)
    to an element that was within #PCDATA, m_strtproc saves the current context
    and restores it after returning from the last call to m_endtag.)
 */
-LOGICAL m_strtproc(scanval)
-  M_ELEMENT scanval ;
+LOGICAL m_strtproc(M_ELEMENT scanval)
   {
     int check ;
     M_PARSE *original ;
index 3e9140306113ff42e24cbd60700a1b99cf1283a9..bc968106632a74104adddef3035104b9dde07bff 100644 (file)
@@ -166,9 +166,7 @@ delim.h.
 #include "cont.h"
 
 /* Main procedure */
-int main(argc, argv)
-  int argc ;
-  char **argv ;
+int main(int argc, char **argv)
 {
 int n ;
 
index 375923e861a2a5357a71d872e07bf899d1ea67fe..f17f33549a27ed3db055d44a540d63f1afe5f6c6 100644 (file)
@@ -81,8 +81,7 @@ void dumptree(LOGICAL sparse)
     }
 
 /* Enter a delimiter into the delimiter tree for a particular context */
-void enterdelim(n)
-  int n;
+void enterdelim(int n)
 {
 if (! contree[n])
     {
@@ -107,8 +106,7 @@ if (m_ntrtrie(dstruct->string,
 }
 
 /* Read the code to be executed with a given state transition */
-void getcode(n)
-int n;
+void getcode(int n)
 {
 int c ; /* c is int instead of char for use with ungetc */
 int nested = 1;
@@ -620,8 +618,7 @@ void nextcon(LOGICAL sparse)
   
 /* If sparse matrix output option, generate a single element of transit
    array */
-void prtctxt(column, value)
-  int column, value;
+void prtctxt(int column, int value)
   {
     static LOGICAL first = TRUE;
 
@@ -656,8 +653,7 @@ void skiptoend(void)
 }
 
 /* Return a character to the input stream for re-reading */
-void unread(c)
-int c;
+void unread(int c)
 {
 M_WCHAR wnl;
 
index a3bdc57193179001830bbde10d89ea5fe825e8f8..033096b4a3bf257fb58ce775f9ae6ec69bcdddfa 100644 (file)
@@ -28,9 +28,7 @@
 
 void main(int argc, char **argv);
 
-void main(argc, argv)
-  int argc ;
-  char **argv ;
+void main(int argc, char **argv)
   {
     if (argc != 2) {
       fprintf(stderr, "Usage: emptyfil filename\n") ;
index 5191a9cc5cbc4d333429223efa3c291b14201f58..c031d65a7dfe2edbc104435ce9b437cd59514332 100644 (file)
@@ -49,8 +49,7 @@ char xerror[] = "ERROR" ;
 
 /* Outputs entity definitions */
 #define ENTFILENAME 12
-void entout(fname)
-  char *fname ;
+void entout(char *fname)
   {
     char efilename[ENTFILENAME] ;
     int count = 1 ;
@@ -173,15 +172,13 @@ void entout(fname)
 
 /* Entptr is called by m_dumptrie to output the value stored with a
    particular entity in the entity trie */
-void entptr(data)
-  M_ENTITY *data ;
+void entptr(M_ENTITY *data)
   {
     fprintf(entfile, "(M_TRIE *) &m_entities[%d]", data->index - 1) ;
     }
 
 /* Typetype returns a string indicating the type of the nth entity.*/
-char *typetype(n)
-  int n ;
+char *typetype(int n)
   {
     switch(n) {
       case M_GENERAL: return(xgeneral) ;
index a8590f507783f99f27180fded369b105f32bb91d..883acc63e3ace104d1ccb068b1d93df0c97a8183 100644 (file)
@@ -83,16 +83,14 @@ void eprefix(LOGICAL flag)
 /* Writes part of an error message.  Called from m_malloc instead of
    m_err1, since PARSER's version of m_err1 calls m_malloc and recursive
    calls are possible when the heap is exhausted */
-void m_errline(text)
-char *text ;
+void m_errline(char *text)
 {
 fputs(text, stderr) ;
 fputs(text, m_errfile) ;
 }
 
 /* Writes an error message to standard error and file "error" */
-void m_error(text)
-  char *text ;
+void m_error(char *text)
   {
     eprefix(TRUE) ;
     fprintf(stderr,"%s", text) ;
@@ -192,30 +190,26 @@ void esuffix(void)
     }
 
 /* Print something to both stderr and m_errfile */
-void msgline(text)
-  char *text ;
+void msgline(char *text)
   {
     fprintf(stderr, "%s", text) ;
     fprintf(m_errfile, "%s", text) ;
     }
 
 /* Print something to both stderr and m_errfile */
-void msg1line(text, arg1)
-  char *text, *arg1 ;
+void msg1line(char *text, char *arg1)
   {
     fprintf(stderr, text, arg1) ;
     fprintf(m_errfile, text, arg1) ;
     }
 
 /* Trace used for m_malloc trace output */
-void m_trace(text)
-char *text ;
+void m_trace(char *text)
 {
 m_errline(text) ;
 }
 
-void m_wctrace(text)
-M_WCHAR *text ;
+void m_wctrace(M_WCHAR *text)
 {
 char *mb_text;
 
@@ -225,8 +219,7 @@ m_free(mb_text,"multi-byte string");
 }
 
 /* Writes a nonfatal error message to standard error and file "error" */
-void warning(text)
-  char *text ;
+void warning(char *text)
   {
     eprefix(FALSE) ;
     fprintf(stderr,"%s", text) ;
index 3991b618023211fa960cd210cdf89f63a42a17bd..47dd7e3b6b7b6adac494186ff2564dc1a381b45d 100644 (file)
@@ -31,8 +31,7 @@ void m_exit(int status);
 
 /* Exit function called by utilities used in PARSER and other programs in
    the MARKUP system */
-void m_exit(status)
-  int status ;
+void m_exit(int status)
   {
     exit(status) ;
     }
index 283befe3a522aff0fe1e470e72c9fc6a21f6f987..b69046c8a002473605fb8e758df30e2561386e9a 100644 (file)
@@ -61,9 +61,7 @@ void copyfile(char *pfile1, char *pfile2);
 
 int nextchar(FILE *file, struct data *data);
 
-void main(argc, argv)
-  int argc ;
-  char **argv ;
+void main(int argc, char **argv)
   {
     FILE *one, *two ;
     int c1, c2 ;
@@ -110,8 +108,7 @@ void main(argc, argv)
     }
 
 /* copyfile inserted by ced, 12-1-89. */
-void copyfile(pfile1,pfile2)
-  char *pfile1, *pfile2; 
+void copyfile(char *pfile1, char *pfile2)
 {
        int ret;
        char *pcmd;
@@ -128,9 +125,7 @@ void copyfile(pfile1,pfile2)
        free(pcmd);
 }
 
-int nextchar(file, data)
-  FILE *file ;
-  struct data *data ;
+int nextchar(FILE *file, struct data *data)
   {
     while (data->linestart) {
       data->linestart = FALSE ;
index 0967971572828acdf649a8d5d5694c4bc03436bb..a3d7feacc7aa2fd6a4d5b38d0c9fe6c299d42a92 100644 (file)
@@ -34,10 +34,7 @@ void m_exit(int status);
 void m_inctest(int *count, int limit, char *message);
 
 /* Increment a count and test against a limit */
-void m_inctest(count, limit, message)
-  int *count ;
-  int limit ;
-  char *message ;
+void m_inctest(int *count, int limit, char *message)
   {
     if (++*count <= limit) return ;
     m_err1("Internal error: %s exceeded", message) ;
index 2d5834b8e50441e9bfbcb5c0a17a0c5916088466..a3f59a4c8a9f526f7d0a75780dd8d59269c21439 100644 (file)
@@ -31,9 +31,7 @@ char *m_itoa(int n, char *s);
 
 void reverse(char *s);
 
-char *m_itoa(n, s)  /* convert n to characters in s */
-char s[]; 
-int n;
+char *m_itoa(int n, char *s) /* convert n to characters in s */
 {   
     int sign ;
     char *p = s ;
@@ -51,8 +49,7 @@ int n;
     return(s) ;
 }
 
-void reverse(s)
-char s[];
+void reverse(char s[])
 {
     int c, i, j;
 
index cc593a2a5e2387807ae27e85e30897b9857732db..96091df0d59203953272c0e72369d6c94a5deaab 100644 (file)
@@ -32,8 +32,7 @@ int m_lower(int c);
 
 
 /* Force a letter to lowercase */
-int m_lower(c)
-  int c ;
+int m_lower(int c)
   {
     if (c >= 'A' && c <= 'Z') c += 'a' - 'A' ;
     return(c) ;
index 04d28343e995472c012421b9422281d0351cdf88..32ef2dbf1ecf5d2c3cb9f77ac7fa9f9d148a0658 100644 (file)
@@ -49,9 +49,7 @@ void *m_trace(char *text);
 
 void *m_wctrace(M_WCHAR *text);
 
-void m_free(block, msg)
-  void *block ;
-  char *msg ;
+void m_free(void *block, char *msg)
   {
     char buffer[32] ;
 
@@ -71,9 +69,7 @@ void m_free(block, msg)
       }      
     }
 
-void *m_malloc(size, msg)
-  int size ;
-  char *msg ;
+void *m_malloc(int size, char *msg)
   {
     char buffer[32] ;
     void *p ;
@@ -105,10 +101,7 @@ void *m_malloc(size, msg)
     return(p) ;
     }
 
-void *m_realloc(ptr, size, msg)
-  void *ptr ;
-  int size ;
-  char *msg ;
+void *m_realloc(void *ptr, int size, char *msg)
   {
     char buffer[32] ;
     void *p ;
index dabc4bc3bcdc13ae20f76f8c4209c48f18ddfb73..44da72599dcf896a84f0820dc04105496759441d 100644 (file)
@@ -35,9 +35,7 @@ void m_exit(int status);
 void m_openchk(FILE **ptr, char *name, char *mode);
 
 /* Open a file and check that the open succeeded */
-void m_openchk(ptr, name, mode)
-  FILE **ptr ;
-  char *name, *mode ;
+void m_openchk(FILE **ptr, char *name, char *mode)
   {
     *ptr = fopen(name, mode) ;
     if (*ptr) return ;
index 5b1aaffca393bf2a99ecc37be50a6f93ce09ceb2..7a45adf6fbe9a44cd9f94cbcc3919675d8f65f2f 100644 (file)
@@ -72,9 +72,7 @@ return((int) wc);
 }
 
 /* Reads the next token stored in a packed trie (as defined by context.dat) */
-int gettoken(c, context)
-int *c;
-int context;
+int gettoken(int *c, int context)
 {
 int hold[MAXD + 1];
 int ucase;
@@ -123,8 +121,7 @@ return(M_NULLVAL);
 }
 
 /* Reads a literal (called after the opening quotation mark is read) */
-LOGICAL litproc(delim)
-int delim;
+LOGICAL litproc(int delim)
 {
 int n, i, number;
 M_WCHAR *p, *pStart; /* bigger than wide versions of lit or lita */
@@ -215,8 +212,7 @@ return(FALSE);
 
 /* Returns a context-dependent delimiter string to input stream so
    characters can be reread one at a time in another context */
-void undodelim(delim)
-M_WCHAR *delim;
+void undodelim(M_WCHAR *delim)
 {
 M_WCHAR *p;
 
@@ -234,8 +230,7 @@ while (TRUE)
 /* Returns a character to the input stream to read again later. Unexplained
    problems occurred using standard ungetc procedure; hence
    explicit declaration of buffer for read-ahead characters */
-void ungetachar(c)
-int c;
+void ungetachar(int c)
 {
 M_WCHAR wnl;
 
index 6216398f33f1adcb809a29ed6d255b5d8c6573b9..57cea3380cb14de211489864fa519f1a16bd7ad3 100644 (file)
@@ -25,8 +25,7 @@
 /* Sparse.c has a procedure used with the tables generated by program
    CONTEXT when the sparse option is used */
 
-int m_sprscon(i, j)
-  int i, j ;
+int m_sprscon(int i, int j)
   {
     int k ;
 
index fb4685948790662dd80efe8616086cf17687727a..020b91df5b369461961c37c06bc79fde0919eab0 100644 (file)
@@ -21,8 +21,8 @@
  * Floor, Boston, MA 02110-1301 USA
  */
 /* $XConsortium: strstr.c /main/3 1995/11/08 09:54:55 rswiston $ */
-char *strstr ( s1, s2 )
-char *s1, *s2 ; {
+char *strstr (char *s1, char *s2)
+{
        
        int x, y ;
        
index dc43f4f1aa9e3a0f6dcd24b94aeea440d8a20ca2..5490569c87cf8280a31cbf8b6b11a3ecbe11c88e 100644 (file)
@@ -117,10 +117,7 @@ void *m_lookfortrie( const M_WCHAR *p , const M_TRIE *xtrie )
     }
 
 /* Enters a string and associated data value into a trie */
-void *m_ntrtrie(p, xtrie, dataval)
-  M_WCHAR *p ;
-  M_TRIE *xtrie ;
-  void *dataval ;
+void *m_ntrtrie(M_WCHAR *p, M_TRIE *xtrie, void *dataval)
   {
     M_TRIE *currentnode ;
     void *n ;
index 155e1d68427dace7b09e9de5a3d76de5e86895a7..079bed8c6b33b4fb8fdfd25abc681315f8fafece 100644 (file)
@@ -40,9 +40,7 @@ void printval(FILE *file, void *value);
 
 /* Count the descendants of a node in order to generate declarations for
    the packed form of a trie*/
-void countdown(parent, count)
-  M_TRIE *parent ;
-  int *count ;
+void countdown(M_TRIE *parent, int *count)
   {
     M_TRIE *child ;
 
@@ -54,12 +52,8 @@ void countdown(parent, count)
 
 /* Output descendants of a node for the declaration of a trie, in packed
    or normal format*/
-void dumpnode(first, file, trieptr, count, proc)
-  LOGICAL *first ;
-  FILE *file ;
-  M_TRIE *trieptr ;
-  int *count ;
-  void (*proc) (FILE *file, void *value);
+void dumpnode(LOGICAL *first, FILE *file, M_TRIE *trieptr, int *count,
+              void (*proc) (FILE *file, void *value))
   {
     M_TRIE *p ;
     int savecount ;
@@ -89,9 +83,7 @@ void dumpnode(first, file, trieptr, count, proc)
 
 
 /* Most common procedure passed to dumpptrie */
-void printval(file, value)
-  FILE *file ;
-  void *value ;
+void printval(FILE *file, void *value)
   {
     fprintf(file, ", %ld", (long) value) ;
     }
index 3fc1d16e34febea5fb56c270fe29bf3ae78336db..859b16c629ac6d309f7daeaf37cdf9b4c8add282 100644 (file)
@@ -34,12 +34,8 @@ void countdown(M_TRIE *parent, int *count);
 void m_dumptrie(FILE *file, M_TRIE *xtrie, char *extname, int *count, void (*proc)(void *value));
 
 /* Write the C declaration of a trie */
-void m_dumptrie(file, xtrie, extname, count, proc)
-  FILE *file ;
-  M_TRIE *xtrie ;
-  char *extname ;
-  int *count ;
-  void (*proc)(void *value);
+void m_dumptrie(FILE *file, M_TRIE *xtrie, char *extname, int *count,
+                void (*proc)(void *value))
   {
     int firstson ;
     M_TRIE *p ;
index 04618ef6646cb129f147aaee566e07e87eb26cfb..7058d59f63f80334bd0ded7081b0ffd125d7c948 100644 (file)
@@ -38,13 +38,9 @@ void dumpptrie(M_TRIE *intname, char *extname, FILE *file, char *externdef, char
   void (*proc)(FILE *file, void *value));
 
 /* Write the declaration of a packed trie to the specified files */
-void dumpptrie(intname, extname, file, externdef, defdef, proc)
-  M_TRIE *intname ;
-  char *extname ;
-  FILE *file ;
-  char *externdef ;
-  char *defdef ;
-  void (*proc) (FILE *file, void *value) ;
+void dumpptrie(M_TRIE *intname, char *extname, FILE *file,
+               char *externdef, char *defdef,
+               void (*proc) (FILE *file, void *value))
   {
     LOGICAL first = TRUE ;
     int count = 0 ;
index 3f616419527936fc998421e96b7a7eec5a14ff4a..0a6607aae21a27fa971f2bc1fcb010977731c825 100644 (file)
@@ -39,9 +39,7 @@ extern M_CHARTYPE m_ctarray[M_CHARSETLEN] ;
 int m_packedlook(M_PTRIE *xptrie, M_WCHAR *name);
 
 /* Look for the string NAME in the packed trie PTRIE */
-int m_packedlook(xptrie, name)
-M_PTRIE *xptrie ;
-M_WCHAR *name ;
+int m_packedlook(M_PTRIE *xptrie, M_WCHAR *name)
 {
 int current = 0 ;
 int i ;
index e923176bc11f8cbb87854127babaee525955dc05..d397eabe98baa0718a88d1693ad8d0e09c1134a3 100644 (file)
 extern M_CHARTYPE m_ctarray[M_CHARSETLEN] ;
 
 /* Changes the value associated with an entry in a trie. */
-void *m_resettrie(xtrie, p, value)
-  M_TRIE *xtrie ;
-  M_WCHAR *p ;
-  void *value ;
+void *m_resettrie(M_TRIE *xtrie, M_WCHAR *p, void *value)
   {
     M_TRIE *currentnode ;
 
index a897d5862762710b4d15c0996bc51384b0756ee3..4927efdcbfd0e20c4ebe95fbe932b18388719e6d 100644 (file)
@@ -214,8 +214,7 @@ return wc_stringStart;
 
 
 /* Get-wide-char procedure */
-int mb_getwc(m_ptr)
-void *m_ptr;
+int mb_getwc(void *m_ptr)
 {
 int  c;
 M_WCHAR wc;
index f908e5b1eddef110bf9729063fabada60219419e..02bf4022471bd928cfe79519284a9e098684ea26 100644 (file)
@@ -38,9 +38,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "entdef.h"
 
 /* Main procedure */
-int main(argc, argv)
-int argc ;
-char **argv ;
+int main(int argc, char **argv)
 {
 int m_prevcon ;
 
index 735c8267d167d9886422c9b3df41a0dd7bdc3853..d3efc242f344e17d260f5f4021a3548a707369e7 100644 (file)
@@ -38,9 +38,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 /* Verify that <PARAM>, <MIN> or <USEMAP> has not previously occurred in
    this rule */
-void found(flag, delim)
-LOGICAL *flag;
-char *delim;
+void found(LOGICAL *flag, char *delim)
 {
 M_WCHAR wcbuff[129];
 ssize_t  length;
index 0049e076b2f67b0f5289a855bfa1a1252ba9ab59..eb8e39729d50e7877464194e8b71d185c13cb811 100644 (file)
@@ -34,8 +34,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "build.h"
 
 /* Enters an element name into the element name tree */
-ELTSTRUCT *ntrelt(p)
-  M_WCHAR *p ;
+ELTSTRUCT *ntrelt(M_WCHAR *p)
   {
     ELTSTRUCT *new ;
     ELTSTRUCT *old ;
index 0ebc8c25c52d0e1fb11367293cc2d0508034a04d..7f9ce0758127bbfbd614d16593911d9ee5e766a3 100644 (file)
@@ -58,11 +58,7 @@ int addarc(STATE *from, STATE *to, ELTSTRUCT *label, ANDGROUP *and, LOGICAL opti
 
 /*checkand is used to verify nondeterminism from start and final states
   of FSA's generated from and groups*/
-void checkand(andstart, andptr, start, root, errelt)
-  ANDGROUP *andstart, *andptr ;
-  STATE *start ;
-  TREE *root ;
-  ELTSTRUCT **errelt ;    
+void checkand(ANDGROUP *andstart, ANDGROUP *andptr, STATE *start, TREE *root, ELTSTRUCT **errelt)
   {
     ARC *parc ;
     ANDGROUP *pand ;
@@ -86,12 +82,7 @@ void checkand(andstart, andptr, start, root, errelt)
 /*Checkdfsa is called when adding an arc to an FSA in order to verify that
 no existing arc from the same state (or from a start state of an and-group
 FSA labelling an arc from the same state) has the same label. */
-int checkdfsa(from, label, and, id, errelt)
-  STATE *from ;
-  ELTSTRUCT *label ;
-  ANDGROUP *and ;
-  int id ;
-  ELTSTRUCT **errelt ;
+int checkdfsa(STATE *from, ELTSTRUCT *label, ANDGROUP *and, int id, ELTSTRUCT **errelt)
   {
     int c ;
     ARC *parc ;
@@ -116,10 +107,7 @@ int checkdfsa(from, label, and, id, errelt)
     }
 
 /* Check use of repeated models with and groups */
-int checkrepeat(from, and, errelt)
-  STATE *from ;
-  ANDGROUP *and ;
-  ELTSTRUCT **errelt ;
+int checkrepeat(STATE *from, ANDGROUP *and, ELTSTRUCT **errelt)
   {
     ARC *parc ;
     int c ;
@@ -142,8 +130,7 @@ int checkrepeat(from, and, errelt)
     }
 
 /* Copyintolist copies one list of states into another */
-void copyintolist(from, to)
-  STATELIST *from, **to ;
+void copyintolist(STATELIST *from, STATELIST **to)
   {
     STATELIST **new, *old ;
 
@@ -161,8 +148,7 @@ void copyintolist(from, to)
     }
 
 /* Dellist deletes a list of states */
-void dellist(list)
-  STATELIST **list ;
+void dellist(STATELIST **list)
   {
     STATELIST *p, *q ;
 
@@ -220,10 +206,7 @@ STATE *getstate(void)
     }
 
 /* Makeand processes a submodel whose connector is & */
-void makeand(canbenull, root, optional)
-  LOGICAL *canbenull ;
-  TREE *root ;
-  int optional ;
+void makeand(LOGICAL *canbenull, TREE *root, int optional)
   {
     TREE *child ;
     STATELIST *start, *final ;
@@ -308,9 +291,7 @@ void makeand(canbenull, root, optional)
    allfinal is passed from model to submodel; information in newfinal
    goes from submodel to model.
    */
-LOGICAL makefsa(root, optional)
-  TREE *root ;
-  int optional ;
+LOGICAL makefsa(TREE *root, int optional)
   {
     LOGICAL canbenull ;
 
@@ -344,9 +325,7 @@ LOGICAL makefsa(root, optional)
     }
 
 /* Makeor processes a submodel whose connector is | */
-void makeor(canbenull, root)
-  LOGICAL *canbenull ;
-  TREE *root ;
+void makeor(LOGICAL *canbenull, TREE *root)
   {
     TREE *child ;
     STATELIST *final ;
@@ -368,10 +347,7 @@ void makeor(canbenull, root)
     }
 
 /* Makeseq processes a submodel whose connector is , */
-void makeseq(canbenull, root, optional)
-  LOGICAL *canbenull ;
-  TREE *root ;
-  int optional ;
+void makeseq(LOGICAL *canbenull, TREE *root, int optional)
   {
     LOGICAL branchnull ;
     STATELIST *keepfinal = NULL, *final ;
@@ -409,10 +385,7 @@ void makeseq(canbenull, root, optional)
 
 /* Nondeterm issues a diagnostic when a nondeterministic model is
    encountered */
-void nondeterm(root, c, eltp)
-  TREE *root ;
-  int c ;
-  ELTSTRUCT *eltp ;
+void nondeterm(TREE *root, int c, ELTSTRUCT *eltp)
   {
   M_WCHAR *wtemp;
 
@@ -443,8 +416,7 @@ void nondeterm(root, c, eltp)
 
 /* Notinlist returns TRUE iff item is not in list.  If item is in list,
    it makes sure that the stored nesting level is the smaller of the two */
-LOGICAL notinlist(item, list)
-  STATELIST *item, *list ;
+LOGICAL notinlist(STATELIST *item, STATELIST *list)
   {
     for ( ; list ; list = list->next)
       if (list->value == item->value) {
@@ -456,8 +428,7 @@ LOGICAL notinlist(item, list)
 
 /* Returns true if the arc is labeled #PCDATA or with an and-group that
    has an arc labelled #PCDATA from a start state */
-LOGICAL permitspcd(a)
-  ARC *a ;
+LOGICAL permitspcd(ARC *a)
   {
     ANDGROUP *pand ;
     ARC *b ;
@@ -507,8 +478,7 @@ void push(void)
 
 /* Regenerate is used in error processing to print the portion of a grammar
    rule preceding an error */
-LOGICAL regenerate(start, stop)
-TREE *start, *stop ;
+LOGICAL regenerate(TREE *start, TREE *stop)
 {
 TREE *child ;
 
@@ -554,8 +524,7 @@ return(FALSE) ;
    by adding arcs from all the final states to all the states reachable
    in one transition from a start state, labelling them as arcs from
    start states are labelled. */
-void repeat(root)
-  TREE *root ;
+void repeat(TREE *root)
   {
     STATELIST *final ;
     ARC *a ;
@@ -606,9 +575,7 @@ void repeat(root)
 
 /* Used during processing of occurrence indicators in content models such
    as (a+)+ to prohibit duplicate arcs */
-LOGICAL samelabelarc(a, s)
-  ARC *a ;
-  STATE *s ;
+LOGICAL samelabelarc(ARC *a, STATE *s)
   {
     ARC *b ;
 
@@ -666,11 +633,7 @@ void savestartarcs(void)
 
 /* Simplebranch adds a new state and transition to it in an FSA when a
    submodel consists of a single element or of an and group */
-void simplebranch(root, value, group, optional)
-  TREE *root ;
-  ELTSTRUCT *value ;
-  ANDGROUP *group ;
-  int optional ;
+void simplebranch(TREE *root, ELTSTRUCT *value, ANDGROUP *group, int optional)
   {
     STATE *new = NULL ;
     STATELIST *index ;
@@ -718,9 +681,7 @@ void simplebranch(root, value, group, optional)
    subtree in the tree representing the grammar rule being processed and
    the pointer to a flag that is set to indicate whether or not the
    submodel can be null. */
-STATE *startfsa(root, canbenull)
-  TREE *root ;
-  LOGICAL *canbenull ;
+STATE *startfsa(TREE *root, LOGICAL *canbenull)
   {
     STATELIST *item ;
     STATE *first ;
index 1a4e8f0a4f8f822f908b385a4bf7e38acedc5500..af50a14856b2870c51a6d6ca7c3d50a19576c95f 100644 (file)
@@ -69,8 +69,7 @@ char mrequired[] = "M_REQUIRED" ;
 
 /* Deftype returns a string indicating the default type of the nth parameter.
    */
-char *deftype(n)
-  int n ;
+char *deftype(int n)
   {
     switch (n) {
       case NAME: return(mnamedef) ;
@@ -101,9 +100,7 @@ void done(void)
     }
 
 /* Prints data value of an entry in the element name tree */
-void dumpentnode(file, value)
-  FILE *file ;
-  M_TRIE *value ;
+void dumpentnode(FILE *file, M_TRIE *value)
   {
 
     fprintf(file, ", %d", ((ELTSTRUCT *) value)->eltno) ;
@@ -111,9 +108,7 @@ void dumpentnode(file, value)
 
 /* Prints data value of an entry in the trie of short reference map names,
    reporting any maps that are referenced but not defined */
-void dumpmapnode(file, value)
-  FILE *file ;
-  M_TRIE *value ;
+void dumpmapnode(FILE *file, M_TRIE *value)
   {
     fprintf(file, ", %d", ((MAP *) value)->map) ;
     if (! ((MAP *) value)->defined)
@@ -123,9 +118,7 @@ void dumpmapnode(file, value)
 
 
 /* Prints data value of an entry in the trie of short reference delimiters */
-void dumpsrefnode(file, value)
-  FILE *file ;
-  M_TRIE *value ;
+void dumpsrefnode(FILE *file, M_TRIE *value)
   {
     fprintf(file, ", %d", ((SREFSTRUCT *) value)->srefcnt) ;
     }
@@ -133,8 +126,7 @@ void dumpsrefnode(file, value)
 
 /* Controls printing of element blocks in alphabetical order to the
    template file */
-void eltblocks(tempfile)
-  FILE *tempfile ;
+void eltblocks(FILE *tempfile)
   {
     int n ;
     M_TRIE *node[M_NAMELEN + 1] ;
@@ -223,8 +215,7 @@ void eltreeout(void)
     }
 
 /* Enttype returns a string indicating the type of an entity */
-char *enttype(n)
-  int n ;
+char *enttype(int n)
   {
     switch(n) {
       case M_GENERAL: return(mgeneral) ;
@@ -452,8 +443,7 @@ fprintf(dtd, "#define M_MAXPAR %d\n\n", maxpar) ;
 }
 
 /* Partype returns a string indicating the type of the nth parameter. */
-char *partype(n)
-  int n ;
+char *partype(int n)
   {
     switch(n) {
       case GRPO: return(mkeyword) ;
@@ -545,9 +535,7 @@ void srefout(void)
     }
 
 /* Output one element block in a template */
-void tempelt(eltp, tempfile)
-ELTSTRUCT *eltp ;
-FILE *tempfile ;
+void tempelt(ELTSTRUCT *eltp, FILE *tempfile)
 {
 PARAMETER *paramp ;
 PTYPE *ptypep ;
@@ -653,8 +641,7 @@ void template(void)
     }
 
 /* Typecon returns a string indicating the content type of the nth element.*/
-char *typecon(n)
-  int n ;
+char *typecon(int n)
   {
     switch(n) {
       case GRPO: return(mregexp) ;
index 895c18a1ac7af527a0ec80cffa4dcf9633f5f91d..89504aeec76cd59cda05ff99dc541fb8d33e8304 100644 (file)
@@ -38,8 +38,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "sref.h"
 
 /* Reads a name */
-LOGICAL getname(first)
-  int first;
+LOGICAL getname(int first)
 {
 M_WCHAR *p;
 int c;
index 0bf9b0b6f561a75b1275435c7d9bc2b9bf693060..4eb3a41b6a5fd3883e69b0794f226668b4abed80 100644 (file)
@@ -36,8 +36,7 @@ static M_WCHAR *wc_prefix = NULL;
 /* Add an entity with the default name constructed by adding a suffix
    to the name of the short reference map in which it is invoked, and
    a prefix m- */
-void adddefent(mapname)
-M_WCHAR *mapname;
+void adddefent(M_WCHAR *mapname)
 {
 M_WCHAR *p;
 int n;
@@ -75,8 +74,7 @@ thissref->entidx = entity->index;
 
 /* Add an entity, return FALSE if already there, TRUE if adding it.
    Pointer to the entity structure is in global M_STRUCT *entity. */
-LOGICAL addent(name)
-M_WCHAR *name;
+LOGICAL addent(M_WCHAR *name)
 {
 M_ENTITY *new;
 
@@ -128,16 +126,14 @@ return(TRUE);
 }
 
 /* Add a named entity to a short reference map */
-void addndent(p)
-M_WCHAR *p;
+void addndent(M_WCHAR *p)
 {
 addent(p);
 thissref->entidx = entity->index;
 }
 
 /* Add a short reference delimiter */
-void addsref(p)
-M_WCHAR *p;
+void addsref(M_WCHAR *p)
 {
 SREFSTRUCT *delim;
 SREFSTRUCT *prevsr;
index 423557004e292f145e9d5bf1e4943e3492e2ec6a..f1b64c8c23649a17d3f0b89d1199fef5cd9634d6 100644 (file)
@@ -44,8 +44,7 @@ void endmodel(void)
     }
 
 /* Release storage used for the tree representation of a rule */
-void freetree(treep)
-  TREE *treep ;
+void freetree(TREE *treep)
   {
     TREE *child, *discard ;
 
index a1af1f181db759b3bc10ffaf428de97e70570060..7243f746b2264912200a01eedc4d976f4a75e06e 100644 (file)
@@ -46,9 +46,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "entity.h"
 
 /* Main program */
-int main(argc, argv)
-  int argc ;
-  char **argv ;
+int main(int argc, char **argv)
   {
     int m_token ;
 
index 9e958bcc97a2e96f67be625387748605657f3ed4..e537fb70d4b720f8796fdca8b9fef57e1a2888c7 100644 (file)
@@ -46,9 +46,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "version.h"
 
 /* Output indicated action pointer array to if.h */
-void actptrout(array, name)
-  ACTION **array;
-  char *name;
+void actptrout(ACTION **array, char *name)
   {
     int i;
 
@@ -267,8 +265,7 @@ void endstring(void)
 
 /* Set the type of an entity and check if different than declaration in
    BUILD */
-void enttype(type)
-  int type;
+void enttype(int type)
   {
     if ((entity->type == M_PI && type == M_CODEPI) ||
         (entity->type == M_SDATA && type == M_CODESDATA));
@@ -294,8 +291,7 @@ void freechain(void)
 
 /* Returns pointer to data field in action node for current chain of
    elements */
-int *getaction(array)
-  ACTION **array;
+int *getaction(ACTION **array)
   {
     ACTION *start, *node;
     CHAIN *chainp;
@@ -431,8 +427,7 @@ void outstring(void)
     }
 
 /* Output #define's for parameter values */
-void outpval(p)
-M_TRIE *p;
+void outpval(M_TRIE *p)
 {
 M_WCHAR *q;
 
@@ -530,14 +525,8 @@ void skiptoend(void)
   }
 
 /* Starts processing a code segment from the input file */
-void startcode(caseno, flag, file, prefix, proto, formal, formtype)
-int caseno;
-LOGICAL *flag;
-FILE *file;
-char *prefix;
-char *proto;
-char *formal;
-char *formtype;
+void startcode(int caseno, LOGICAL *flag, FILE *file, char *prefix,
+               char *proto, char *formal, char *formtype)
 {
 CVARSTRUCT *cvarp;
 
@@ -631,8 +620,7 @@ void storepname(void)
     }
 
 /* Called when a possible parameter value to be defined is encountered */
-void value(p)
-M_WCHAR *p;
+void value(M_WCHAR *p)
 {
 char buffer[5];
 
index 811cecd32a9f65372947c398830570be9db21a9b..89a912753e898a535ee32e0f8e82b08e251462cf 100644 (file)
@@ -43,8 +43,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "delim.h"
 
 /* Reads a name token */
-void getname(first)
-int first;
+void getname(int first)
 {
 M_WCHAR *p, wus;
 int c, cttype;
index 68412bbd3d5349c6a7e37a15c47a741a79ffe7e4..b3687b405b41dc965adaf8676124ec883def7caf 100644 (file)
@@ -33,9 +33,7 @@ Copyright (c) 1988, 1989 Hewlett-Packard Co.
 #include <stdlib.h>
 
 /* Write input file and line number for an error message */
-void m_dumpline(file, line)
-M_WCHAR *file;
-int line;
+void m_dumpline(M_WCHAR *file, int line)
 {
 char buffer[10];
 char *mbyte;
@@ -71,8 +69,7 @@ m_errline(",\n");
 }
 
 /* Process error message text */
-void m_errline(p)
-char *p;
+void m_errline(char *p)
 {
 char c;
 
@@ -96,8 +93,7 @@ if (++m_errcnt == m_errlim)
 }
 
 /* Exit procedure */
-void m_exit(status)
-int status;
+void m_exit(int status)
 {
 if (filefound)
     {
@@ -134,8 +130,7 @@ exit(0);
 }
 
 /* Get-char procedure */
-int m_getc(m_ptr)
-void *m_ptr;
+int m_getc(void *m_ptr)
 {
 int  c;
 M_WCHAR wc;
@@ -189,8 +184,7 @@ return((int) wc);
 }
 
 /* Open SYSTEM entity procedure */
-void *m_openent(entcontent)
-M_WCHAR *entcontent;
+void *m_openent(M_WCHAR *entcontent)
 {
 FILE *open;
 char *filename;
@@ -270,7 +264,7 @@ return((void *) first);
 }
 
 /* Set program options */
-void m_setoptions()
+void m_setoptions(void)
 {
 /* F option used for FILELIST (checking done in basename, which is
 called before this function is called) */
@@ -284,8 +278,7 @@ if (m_argc > 2)
 
 /* Process signon message text, stripping out MARKUP version number, so
    only one version number will appear */
-void m_signmsg(p)
-  char *p;
+void m_signmsg(char *p)
   {
     char *q;
     char *pCopy;
@@ -305,7 +298,7 @@ void m_signmsg(p)
 
 /* All entity declarations have been processed.  Can now check if .TEX
    file uptodate and open appropriate output file */
-void m_startdoc()
+void m_startdoc(void)
 {
 LOGICAL init = TRUE;
 unsigned char type;
@@ -345,16 +338,14 @@ else
 }
 
 /* Write debugging trace information */
-void m_trace(p)
-char *p;
+void m_trace(char *p)
 {
 if (tracetostd) fputs(p, stdout);
 else fputs(p, m_outfile);
 }
 
 
-void m_wctrace(p)
-M_WCHAR *p;
+void m_wctrace(M_WCHAR *p)
 {
 char *mb_p;
 
index 8a0d691af05a68708aaf4fe698d5cac0987dc26a..97060a6bad9234c407aa475e16b553abfeba8f9d 100644 (file)
@@ -250,8 +250,7 @@ else
 
 
 /* This procedure starts a CHAPTER */
-void chapstart(id)
-M_WCHAR *id;
+void chapstart(M_WCHAR *id)
 {
 M_WCHAR *p, *q, *wc;
 int i;
@@ -498,9 +497,7 @@ return ( 0 );
 }  /* end mb_getqualified */
 
 
-int getqualified (qualname, unqualname)
-M_WCHAR *qualname;
-M_WCHAR *unqualname;
+int getqualified(M_WCHAR *qualname, M_WCHAR *unqualname)
 {
 int retval;
 char mb_qualname[FNAMELEN],
@@ -520,13 +517,9 @@ return retval;
 
 /* handle the common link and graphic code for <p> and <image> */
 void
-handle_link_and_graphic(parent,
-                       gentity,
-                       gposition,
-                       ghyperlink,
-                       glinktype,
-                       gdescription)
-M_WCHAR *parent, *gentity, *gposition, *ghyperlink, *glinktype, *gdescription;
+handle_link_and_graphic(M_WCHAR *parent, M_WCHAR *gentity,
+                        M_WCHAR *gposition, M_WCHAR *ghyperlink,
+                        M_WCHAR *glinktype, M_WCHAR *gdescription)
 {
 unsigned char etype, wheredef;
 char *mb_content, *ssi, id[32];
@@ -912,8 +905,7 @@ if (item_id)
 
 
 /* Start a rsect */
-void rsectstart(id)
-M_WCHAR *id;
+void rsectstart(M_WCHAR *id)
 {
 savid = checkid(id);
 iderr = FALSE;
@@ -933,8 +925,7 @@ rsectseq = FALSE;
 
 
 /* Follow search path to find a file, returning qualified name */
-M_WCHAR *searchforfile(file)
-M_WCHAR *file;
+M_WCHAR *searchforfile(M_WCHAR *file)
 {
 M_WCHAR *filename;
 SEARCH *searchp;
@@ -1055,9 +1046,7 @@ if (wc_id)
 
 
 /* Start a labeled list */
-void StartLabList(spacing, longlabel)
-M_WCHAR *spacing;
-M_WCHAR *longlabel;
+void StartLabList(M_WCHAR *spacing, M_WCHAR *longlabel)
 {
        char *mb_spacing;
 static char  def_spacing[] = "LOOSE";
@@ -1240,7 +1229,7 @@ lastlist = nextlist;
 }
 
 
-void EndList()
+void EndList(void)
 {
 LIST *curlist ;
 CONTCHAIN *chain, *xchain ;
@@ -1658,7 +1647,7 @@ return buffer;
  * versions of the language and charset.
 */
 void
-SetDefaultLocale()
+SetDefaultLocale(void)
 {
 unsigned char type,wheredef;
 M_WCHAR *elementName;
@@ -2173,14 +2162,14 @@ while (*wcp)
 return(newstring);
 }
 
-int NextId()
+int NextId(void)
 {
 static id = 0;
 
 return ++id;
 }
 
-char *GetLanguage()
+char *GetLanguage(void)
 {
 static char *pLang = NULL;
 
@@ -2192,7 +2181,7 @@ if (!pLang)
 return pLang;
 }
 
-char *GetCharset()
+char *GetCharset(void)
 {
 static char *pCharset = NULL;
 
@@ -2755,7 +2744,7 @@ return(name) ;
  * content is modified to be <SPC NAME="[......]"> so that it may be
  * emitted into the SDL output.
 */
-void ModifyEntities()
+void ModifyEntities(void)
 {
 unsigned char type;
 unsigned char wheredef;
@@ -2918,7 +2907,7 @@ fputs(">\n", outfile);
 needFData = TRUE;
 }
 
-void PopForm()
+void PopForm(void)
 {
 if (inBlock)
     {
@@ -2934,7 +2923,7 @@ mb_free(&(formStackTop->rowVec));
 --formStackTop;
 }
 
-void PopForm2()
+void PopForm2(void)
 {
 if (inBlock)
     {
@@ -2955,7 +2944,7 @@ mb_free(&(formStackTop->rowVec));
  * is pushed but the source doesn't go to text either because the text
  * is explicitly optional or due to the fact that text can be null.
 */
-void PopFormMaybe()
+void PopFormMaybe(void)
 {
 if ((formStackTop >= formStackBase) && (formStackTop->vecLen == 1))
     {
@@ -2964,7 +2953,7 @@ if ((formStackTop >= formStackBase) && (formStackTop->vecLen == 1))
     }
 }
 
-void EmitSavedAnchors()
+void EmitSavedAnchors(void)
 {
 char buffer[BIGBUF];
 
@@ -2979,7 +2968,7 @@ if (parTextId)
     }
 }
 
-void CloseVirpage()
+void CloseVirpage(void)
 {
 if (parTextId)
     {
index ddb0e10a9c224bbb86f1363d4d9f3d1f64beb439..c4bda7d3250ccda5e0d30b2e4f1732dfd9fe4c04 100644 (file)
@@ -31,8 +31,7 @@
 
 /* Echo part of a head to the screen to indicate how much of the document
    has been processed */
-void echohead(p)
-M_WCHAR *p;
+void echohead(M_WCHAR *p)
 {
 char *mb_p,*mb_string;
 
@@ -54,8 +53,7 @@ m_free(mb_string,"multi-byte string");
 }
 
 /* call echohead with a literal string */
-void mb_echohead(p)
-char *p;
+void mb_echohead(char *p)
 {
 M_WCHAR *wc;
 
@@ -104,7 +102,7 @@ echo = savhd = FALSE;
  * location is placed in the snb file and the <snb> elements are
  * emitted there too.
 */
-void chksnb()
+void chksnb(void)
 {
 fputs("</HEAD>\n", outfile);
 snbstart = ftell(outfile);
@@ -276,10 +274,7 @@ else
 
 
 /* Called for processing instruction */
-void outpi(enttype, pi, entname)
-int enttype;
-M_WCHAR *pi;
-M_WCHAR *entname;
+void outpi(int enttype, M_WCHAR *pi, M_WCHAR *entname)
 {
 strcode(pi, outfile);
 
@@ -392,13 +387,8 @@ shchar(wc_textchar, len, max, string, proc, msg, errflg);
 
 /* Save a string in the array used to store table of contents entries
    when processing a head */
-void shstring(addstring, len, max, storestring, msg, errflg)
-M_WCHAR *addstring;
-int *len;
-int max;
-M_WCHAR *storestring;
-char *msg;
-LOGICAL *errflg;
+void shstring(M_WCHAR *addstring, int *len, int max,
+              M_WCHAR *storestring, char *msg, LOGICAL *errflg)
 {
 int addlength;
 
@@ -419,13 +409,8 @@ else
 }
 
 
-void mb_shstring(addstring, len, max, storestring, msg, errflg)
-char *addstring;
-int *len;
-int max;
-M_WCHAR *storestring;
-char *msg;
-LOGICAL *errflg;
+void mb_shstring(char *addstring, int *len, int max,
+                 M_WCHAR *storestring, char *msg, LOGICAL *errflg)
 {
 M_WCHAR *wc_addstring;
 
@@ -435,9 +420,7 @@ m_free(wc_addstring,"wide character string");
 }
 
 /* Writes a string to the output file, and if appropriate saves it */
-void strcode(string, outfile)
-M_WCHAR *string;
-FILE *outfile;
+void strcode(M_WCHAR *string, FILE *outfile)
 {
 char    exbuff[32]; /* arbitrarily large */
 int     bufflen;
@@ -492,9 +475,7 @@ if (savex)
 }
 
 
-void mb_strcode(string, outfile)
-char *string;
-FILE *outfile;
+void mb_strcode(char *string, FILE *outfile)
 {
 M_WCHAR *wc;
 
@@ -504,8 +485,7 @@ m_free(wc,"wide character string");
 }
 
 /* Copies string to end of buffer where saving head for table of contents */
-void svhdstring(string)
-M_WCHAR *string;
+void svhdstring(M_WCHAR *string)
 {
 int length;
 
@@ -524,8 +504,7 @@ svheadlen += length;
 }
 
 /* Copies string to end of buffer where saving table caption */
-void svtcstring(string)
-M_WCHAR *string;
+void svtcstring(M_WCHAR *string)
 {
 int length;
 
@@ -605,10 +584,7 @@ else
 }
 
 /* Process a PI in a term */
-void termpi(m_enttype, m_pi, m_entname)
-int m_enttype;
-M_WCHAR *m_pi;
-M_WCHAR *m_entname;
+void termpi(int m_enttype, M_WCHAR *m_pi, M_WCHAR *m_entname)
 {
 int length;
 
index 6ec2d5d63191d24ec97fa5b7e7babc0ac0a5e1df..d25355be931ba631160347ab4f12c787a0f85309 100644 (file)
@@ -138,9 +138,7 @@ struct {
 #define NO8BITCHARS 256
 int invert[NO8BITCHARS], emptycell;
 
-main(argc, argv)
-int argc;
-char *argv[];
+int main(int argc, char *argv[])
 {
 int i, both = FALSE, spec = FALSE, coll = FALSE, error = FALSE ;
 
index c80b893b6ee4fe123c0dd43e3f3a828d547c45da..6b7bac2c78e212b7c0fbee18fecb660cd4f03882 100644 (file)
@@ -31,8 +31,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "globdec.h"
 
 /* Chk for duplicate xref id's, called in TEST, S1, S2, S3, S4, and rsect. */
-M_WCHAR *checkid(id)
-M_WCHAR *id;
+M_WCHAR *checkid(M_WCHAR *id)
 {
 struct xref *xref;
 char *buffer;
@@ -80,10 +79,7 @@ return(NULL);
 }
 
 /* Write a single cross-reference macro definition */
-static void defxref(xfile, id, xref)
-FILE *xfile;
-M_WCHAR *id;
-struct xref *xref;
+static void defxref(FILE *xfile, M_WCHAR *id, struct xref *xref)
 {
 char *csname;
 char *p;
@@ -196,8 +192,7 @@ while (TRUE)
 }
 
 /* Copies string to end of current cross-reference string */
-void idstring(string)
-M_WCHAR *string;
+void idstring(M_WCHAR *string)
 {
 int length;
 
@@ -414,8 +409,7 @@ savid = NULL;
 }
 
 /* Generate a cross-reference */
-void xrefexpand(id)
-M_WCHAR *id;
+void xrefexpand(M_WCHAR *id)
 {
 struct xref *xref;
 struct xref *old;
index 2d5ee736bf2b0b2044da3767dbc0057945305689..81ef022f36fe527cea9eb3b1192541ea16af9415 100644 (file)
@@ -44,8 +44,7 @@ in the interface definition.*/
 #include "signon.h"
 
 /* When an explicit or implied end-tag occurs */
-void m_endaction(m_elt)
-  M_ELEMENT m_elt;
+void m_endaction(M_ELEMENT m_elt)
   {
     M_ELEMENT m_action;
     char buffer[2*MAXD+M_NAMELEN+1];
@@ -76,9 +75,7 @@ void m_endaction(m_elt)
     }
 
 /* Find appropriate action according to current stack */
-int m_findact(elt, array)
-  M_ELEMENT elt;
-  int *array;
+int m_findact(M_ELEMENT elt, int *array)
   {
     int chainlen = 0;
     int index;
@@ -156,8 +153,7 @@ m_free(wc_string,"wide character string");
 }    
 
 /* When an explicit or implied start-tag occurs */
-void m_strtaction(m_elt)
-  M_ELEMENT m_elt;
+void m_strtaction(M_ELEMENT m_elt)
   {
     int m_par, m_i;
     M_WCHAR *m_p;
index ca80be854e074c2ce96941a4bce1c700c6d4eac3..f3280154dd724073bb213f4de18996f973061f3f 100644 (file)
@@ -28,8 +28,7 @@
 #include "userinc.h"
 #include "globdec.h"
 
-void m_closent(m_ptr)
-  void *m_ptr ;
+void m_closent(void *m_ptr)
   {
     fclose((FILE *) m_ptr) ;
     }
index aed6f7945bb29dbc3495f25825da768baf4b32d6..36afa6ceef2dc338c47a0f2317977854beabcf0d 100644 (file)
@@ -37,8 +37,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "entfile.c"
 
 /* When a reference to a CODE entity is encountered */
-void m_codeent(m_ent)
-  int m_ent ;
+void m_codeent(int m_ent)
   {
     (*m_ctable[m_ent])() ;
   }
index 4e5465332e5e774eae046d8b38ef5057a131a459..13794674ab5901ec2830914a30d13dec35e9d1b0 100644 (file)
@@ -29,9 +29,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "globdec.h"
 
 /* Displays current element after some error messages */
-void m_dispcurelt(file, line)
-M_WCHAR *file ;
-int line ;
+void m_dispcurelt(M_WCHAR *file, int line)
 {
 char *mb_parent;
 
index f3601280172e8f3c85bd41ccca6532dbfbdc60a9..c4de1f992a6c82e9a1f731586577e111e15e241e 100644 (file)
@@ -37,8 +37,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 
 /* Perform the m_action-th end-code in the interface */
-void m_endcase(m_action)
-  int m_action ;
+void m_endcase(int m_action)
   {
     (*m_etable[m_action])() ;
     }
index c81b35f01caa6bdfedce66149b114fdee9cf6c66..3bc878e03f14ff1dccca6e1d217a082203e75717 100644 (file)
@@ -52,8 +52,7 @@ void m_ckmap(M_WCHAR *name, LOGICAL useoradd)
 /* Check type specified in entity declaration for previously defined
    entity.  Testing to see if the new declaration is identical to the
    original one. */
-void m_eduptype(type)
-  int type ;
+void m_eduptype(int type)
   {
     if ((int) m_entity->type != type) {
       m_err1("Redefinition of entity %s ignored", m_entity->name) ;
@@ -63,8 +62,7 @@ void m_eduptype(type)
     }
 
 /* Tests if an entity is too long */
-void m_longent(context)
-  int context ;
+void m_longent(int context)
   {
     if (m_entclen >= M_LITLEN) {
       m_curcon = context ;
@@ -74,8 +72,7 @@ void m_longent(context)
     }
 
 /* Enters an entity name into the entity name tree */
-void m_ntrent(p)
-  M_WCHAR *p ;
+void m_ntrent(M_WCHAR *p)
   {
     M_ENTITY *new ;
 
index c93defc5e4632f56975566a78789448db3de1bf7..b2e9db8c55eec41db4afb36d7677e899218efa26 100644 (file)
@@ -40,8 +40,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 
 /* Issue error message (no arguments) */
-void m_error(text)
-  char *text;
+void m_error(char *text)
   {
     m_startmsg();
     m_errline(text);
@@ -316,9 +315,7 @@ void m_err7(
 
 /* Getline.c returns the name of the current input file and the number
    of the current line */
-void m_getline(file, line)
-  M_WCHAR **file;
-  int *line;
+void m_getline(M_WCHAR **file, int *line)
   {
     int i;
 
index 8c23b2f7037777fa8acbb775b3a268cd7579939a..2a75ce3eff594b7c9d99d32c2225b65afae9b381 100644 (file)
@@ -64,8 +64,7 @@ void m_etcomplete(void)
 
 /* M_frcend is called after a syntax error to end element VAL even
    if more content for that element is expected */
-void m_frcend(val)
-  M_ELEMENT val ;
+void m_frcend(M_ELEMENT val)
   {
     M_PARSE *stackptr ;
     M_ELEMENT poppedval ;
index ef7ad203697d336933a7cfb768fb3450222d241c..f79a2ccf846b0b4808e3cf8b3874569051602851 100644 (file)
@@ -33,8 +33,7 @@
 
 /* Procedure callable by interface designer.  Returns number of occurrences
    of element on parse stack */
-int m_level(elt)
-  M_WCHAR *elt ;
+int m_level(M_WCHAR *elt)
   {
     int i = 0 ;
     M_PARSE *stackptr ;
@@ -48,8 +47,7 @@ int m_level(elt)
     }
 
 
-int m_mblevel(elt)
-  char *elt ;
+int m_mblevel(char *elt)
   {
   int     retval;
   M_WCHAR *wc_elt;
index 07c2f222558fd28be5d16e5bf4e7c7bcd2ca175a..401be0b83c54ae0b89ccb1e1846d3fb6c66923c8 100644 (file)
@@ -38,11 +38,8 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "parser.h"
 #include "entext.h"
 
-LOGICAL m_lookent(name, type, content, wheredef)
-  M_WCHAR *name ;
-  unsigned char *type ;
-  M_WCHAR **content ;
-  unsigned char *wheredef ;
+LOGICAL m_lookent(M_WCHAR *name, unsigned char *type, M_WCHAR **content,
+                  unsigned char *wheredef)
   {
     M_ENTITY *entity ;
 
index 2405dcf4b3bc02d021cdf670954578f36f74ba99..9a5e82c3c111a12d84cae95655d2e7809a16189d 100644 (file)
@@ -99,11 +99,7 @@ void m_expecting(void)
 
 /* Recursive procedure first called from expecting() to display
    names of elements reachable from a particular node */
-void m_expexpand(expstart, node, required, data)
-  LOGICAL *expstart ;
-  M_STATE node ;
-  LOGICAL *required ;
-  LOGICAL *data ;
+void m_expexpand(LOGICAL *expstart, M_STATE node, LOGICAL *required, LOGICAL *data)
   {
     M_ARC parc ;
     M_ANDGROUP pand ;
@@ -125,10 +121,7 @@ void m_expexpand(expstart, node, required, data)
     }
 
 /* M_expline writes one line for m_expecting() */
-void m_expline(expstart, data, label)
-  LOGICAL *expstart ;
-  LOGICAL *data ;
-  M_ELEMENT label ;
+void m_expline(LOGICAL *expstart, LOGICAL *data, M_ELEMENT label)
   {
     char buffer[M_NAMELEN + 2*MAXD + 1] ;
 
@@ -165,9 +158,7 @@ void m_expline(expstart, data, label)
 
 /* M_exptend is called from m_expecting to inform the user after an
    error if an end tag is permitted */
-void m_exptend(expstart, stackptr)
-  LOGICAL *expstart ;
-  M_PARSE *stackptr ;
+void m_exptend(LOGICAL *expstart, M_PARSE *stackptr)
   {
     char buffer[M_NAMELEN + 2*MAXD + 1] ;
 
@@ -216,9 +207,7 @@ void m_exptend(expstart, stackptr)
    element, 1 if character data is expected, and 0 (FALSE) if there is
    no unique element. 
 */
-M_ELEMENT m_findunique(from, newleft)
-  M_STATE from ;
-  int *newleft ;
+M_ELEMENT m_findunique(M_STATE from, int *newleft)
   {
     M_ARC parc ;
     M_ELEMENT cr = 0, minim = 0;
@@ -339,7 +328,7 @@ LOGICAL m_omitend(void)
 
 /* Tests to see if a start tag may have been omitted at this point of
    the parse.  If so, saves the element name in the MINVAL array*/
-LOGICAL m_omitstart()
+LOGICAL m_omitstart(void)
   {
     M_ELEMENT c = M_NULLVAL ;
 
index f6926554deb41955d6bb8e233e4502edebad3741..5ca84929df4220b95e7477347f539732f9872fbb 100644 (file)
@@ -33,8 +33,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "parser.h"
 
 /* Get program options from a string */
-void m_optstring(p)
-  char *p ;
+void m_optstring(char *p)
   {
     if (strchr(p, 'a')) m_malftrace = TRUE ;
     if (strchr(p, 'c')) m_chtrace = TRUE ;
index be6a493d5a734cbb74e91ac80573e128f8704a80..1425c489fd68689020e6c0e830971cd3f2dfd577 100644 (file)
@@ -42,8 +42,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 /* Process the value for the parameter whose index number was previously
    saved in m_ppsave */
-void m_attval(string)
-  M_WCHAR *string ;
+void m_attval(M_WCHAR *string)
   {
     const M_WCHAR *p ;
 
@@ -65,8 +64,7 @@ void m_attval(string)
 
 /* Process a string that is a parameter value not prefixed by the parameter
    name and value indicator */
-LOGICAL m_attvonly(string)
-  M_WCHAR *string ;
+LOGICAL m_attvonly(M_WCHAR *string)
   {
     const M_WCHAR *p ;
     int par, i ;
@@ -152,8 +150,7 @@ void m_findatt(void)
     }
 
 /* Free the parameter storage associated with an element on the parse stack */
-void m_freeparam(stackelt)
-  M_PARSE *stackelt ;
+void m_freeparam(M_PARSE *stackelt)
   {
     int i ;
     int par ;
@@ -173,9 +170,7 @@ void m_freeparam(stackelt)
 /* Force a parameter value to uppercase, if appropriate for its type.
    Also, if list-valued attribute, remove leading and trailing spaces,
    and condense white-space sequences to a single blank*/
-void m_parupper(par, string)
-  int par ;
-  M_WCHAR *string ;
+void m_parupper(int par, M_WCHAR *string)
   {
     M_WCHAR *p ;
     M_WCHAR *q ;
@@ -233,11 +228,7 @@ void m_stkdefaultparams(void)
     }
 
 /* Stack one default parameter */
-void m_stkonedef(par, scanel, poccur, i)
-  int par ;
-  M_ELEMENT scanel ;
-  M_WCHAR **poccur ;
-  int i ;
+void m_stkonedef(int par, M_ELEMENT scanel, M_WCHAR **poccur, int i)
   {
     if (m_parameter[par - 1].deftype == M_REQUIRED ||
         (m_parameter[par - 1].deftype == M_CURRENT &&
@@ -313,8 +304,7 @@ void m_updatedefault(const int par , const M_WCHAR *string )
 
 /* Check to see if a string that occurs after the element name in a start
    tag is a valid parameter name or value; if not, assume tag is ended */
-LOGICAL m_validinpar(string)
-  M_WCHAR *string ;
+LOGICAL m_validinpar(M_WCHAR *string)
   {
     int par ;
     M_WCHAR *p ;
index e7f6217a77573078890593f56adb3cfdce36cc4e..aaf8fc2f3deacfcd6a9616e682922ca26c8bb786 100644 (file)
@@ -34,8 +34,7 @@
 /* Procedure callable by interface designers.  Returns pointer to name
    of nth level parent of current element (0 is self, 1 is parent, 2
    is grandparent, etc.) */
-M_WCHAR *m_parent(n)
-  int n ;
+M_WCHAR *m_parent(int n)
   {
     M_PARSE *stackptr ;
 
index 9c766429e3c65fe9cf23e8e5cd333b7e6f8659f3..1a28b615f27ed1ee80409da7d4b37555108637df 100644 (file)
@@ -36,9 +36,7 @@
 #include "entext.h"
 
 /* Main procedure */
-int main(argc, argv)
-  int argc ;
-  char **argv ;
+int main(int argc, char **argv)
   {
     static char parserr[] = "\nM_token=%d, m_prevcon=%d, m_scanval=%d\n" ;
     static char sopt[] =
index d388d0837fd3f9f6f6279f86f3f6a00304767589..65087f69f024f347a3e548b220a09b08d8eb9bfc 100644 (file)
@@ -87,7 +87,7 @@ M_ELEMENT m_eltname(void)
       }
     }
 
-int get_mb_cur_max()
+int get_mb_cur_max(void)
 {
 char *l;
 int   i;
index a51a90d152d2c7445844267dde606d4e8aa1adde..bd74454aa9bed97b2a6c967a0ebc8e03bc833e82 100644 (file)
@@ -38,10 +38,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 /* When a processing instruction or SDATA entity other than a CODE entity
    occurs */
-void m_piaction(m_pi, m_entname, m_enttype)
-  M_WCHAR *m_pi ;
-  M_WCHAR *m_entname ;
-  int m_enttype ;
+void m_piaction(M_WCHAR *m_pi, M_WCHAR *m_entname, int m_enttype)
   {
     m_stackpar = m_stacktop->piparam ;
     (*m_ptable[m_stacktop->picase])(m_pi, m_entname, m_enttype) ;
index 0e9c8fe131fd8f22f793734abd9521e6816114b0..bc20a3b73ba25aab42bb651196710d94ae1bd856 100644 (file)
@@ -62,8 +62,7 @@ int m_actgetc(void)
     }
 
 /* Expand an entity reference */
-void m_entexpand(openent)
-  M_ENTITY *openent ;
+void m_entexpand(M_ENTITY *openent)
   {
     M_WCHAR *p ;
     M_HOLDTYPE dchar ;
@@ -231,9 +230,7 @@ void m_entexpand(openent)
 
 /* An srlen-character long short-reference delimiter has been found.  Verify
    that it is not the prefix of a general delimiter recognized in context*/
-LOGICAL m_gendelim(srlen, context)
-  int srlen ;
-  int context ;
+LOGICAL m_gendelim(int srlen, int context)
   {
     int ghold[MAXD + 1] ;
     int ucase ;
@@ -321,8 +318,7 @@ LOGICAL m_gendelim(srlen, context)
 
 /* Reads next input character from the current source file or from an
    entity expansion */
-int m_getachar(dchar)
-  M_HOLDTYPE *dchar ;
+int m_getachar(M_HOLDTYPE *dchar)
   {
     int c ;
     int i ;
@@ -424,10 +420,7 @@ void m_getname(M_WCHAR first)
     }
 
 /* Reads the next token */
-int m_gettoken(c, dchar, context)
-  int *c ;
-  M_HOLDTYPE *dchar ;
-  int context ;
+int m_gettoken(int *c, M_HOLDTYPE *dchar, int context)
   {
     int hold[MAXD + 1], next ;
     int ucase ;
@@ -551,8 +544,7 @@ int m_gettoken(c, dchar, context)
     }
 
 /* Reads a literal */
-void m_litproc(delim)
-  int delim ;
+void m_litproc(int delim)
   {
     int n, i ;
     M_HOLDTYPE dchar ;
@@ -883,8 +875,7 @@ void m_setmap(int map, LOGICAL useoradd)
     }
 
 /* Check for short reference delimiters */
-void m_shortref(context)
-int context ;
+void m_shortref(int context)
 {
 int n = 0 ;
 int i ;
index be3c66bd29fb5a15ce5ae2593ded0af859ab7e32..6eef9fe53cbf0a3b71627b453819e94b249e8eed 100644 (file)
@@ -35,9 +35,7 @@
 #include "parser.h"
 
 /* Set a user-defined C variable to the corresponding parameter value */
-void m_setparam(cvar, par)
-  M_WCHAR **cvar ;
-  int par ;
+void m_setparam(M_WCHAR **cvar, int par)
   {
     *cvar = m_stackpar->param[par] ;
     }
index 07da69f1a542a1927274d46f7f29507baf3ef4ad..4dace66cf2879434171c749b7b17c8d704f8448e 100644 (file)
@@ -36,8 +36,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "sfile.c"
 
 /* Perform the m_action-th start-code in the interface */
-void m_strtcase(m_action)
-  int m_action ;
+void m_strtcase(int m_action)
   {
     (*m_stable[m_action])() ;
     }
index c261567c4c892159a805d89f14d4feb881e0feab..14397638e6bb4c90f955de011908b0268bf52c92 100644 (file)
@@ -46,8 +46,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
    is valid input. It returns TRUE, FALSE, or M_NONCONTEXTUAL respectively
    if the element is allowed by content, not allowed, or allowed by an
    inclusion exception. */
-int m_checkstart(val)
-  M_ELEMENT val ;
+int m_checkstart(M_ELEMENT val)
   {
     M_PARSE *stackptr ;
     int except ;
@@ -238,8 +237,7 @@ void m_done(void)
     }
 
 /* Process the endtag (implied, abbreviated, or explicit) for element C*/
-void m_endtag(c)
-  M_ELEMENT c ;
+void m_endtag(M_ELEMENT c)
   {
     m_endaction(c) ;
     m_pop() ;
@@ -251,8 +249,7 @@ void m_endtag(c)
 
 /* Check that the identified element is not prohibited in the current context
    by an exclusion exception */
-LOGICAL m_excluded(elt)
-  M_ELEMENT elt ;
+LOGICAL m_excluded(M_ELEMENT elt)
   {
     M_PARSE *stackptr ;
     int except ;
@@ -270,8 +267,7 @@ LOGICAL m_excluded(elt)
 
 /* Free the OPEN FSA substructures associated with an element on
    the parse stack */
-void m_freeFSA(stackelt)
-  M_PARSE *stackelt ;
+void m_freeFSA(M_PARSE *stackelt)
   {
     M_OPENFSA *fsastack ;
     M_ANDLIST *usedand ;
@@ -290,9 +286,7 @@ void m_freeFSA(stackelt)
     }
 
 /* Free storage used for tentative chain of tag minimizations */
-void m_freemin(min, msg)
-  M_MIN *min ;
-  char *msg ;
+void m_freemin(M_MIN *min, char *msg)
   {
     M_MIN *discard ;
 
@@ -307,9 +301,7 @@ void m_freemin(min, msg)
    in the current content model by starting a new submodel of the and-group
    indicated by fsastack, or (if the and-group is within a seq-group) by
    continuing past the and-group */
-LOGICAL m_nextand(thisfsa, label)
-  M_OPENFSA *thisfsa ;
-  M_ELEMENT label ;
+LOGICAL m_nextand(M_OPENFSA *thisfsa, M_ELEMENT label)
   {
     M_ANDLIST *newgroup ;
     M_ANDGROUP pand ;
@@ -461,8 +453,7 @@ void m_push(M_ELEMENT elt, M_STATE current, LOGICAL need)
    character is treated differently so that if character data is not
    allowed in the current context, an error message is issued with the
    first character only and not with every character. */
-void m_strtcdata(scanval)
-  int scanval ;
+void m_strtcdata(int scanval)
   {
     if (! m_strtproc(M_NULLVAL))
       if (m_whitespace((M_WCHAR) scanval)) {
@@ -493,8 +484,7 @@ void m_strtcdata(scanval)
    to an element that was within #PCDATA, m_strtproc saves the current context
    and restores it after returning from the last call to m_endtag.)
 */
-LOGICAL m_strtproc(scanval)
-  M_ELEMENT scanval ;
+LOGICAL m_strtproc(M_ELEMENT scanval)
   {
     int check ;
     M_PARSE *original ;
index 3d13a5025338b4393f53d438789dbe198e744eac..e7185ce8f116abd1ad93ebca18229dd69e75ad7d 100644 (file)
@@ -167,9 +167,7 @@ delim.h.
 #include "cont.h"
 
 /* Main procedure */
-int main(argc, argv)
-  int argc ;
-  char **argv ;
+int main(int argc, char **argv)
 {
 int n ;
 
index d83aa0a8823f1c93e1e5ea07712a806c4a16ea32..4fbdada5fd226ac94d8ce18795151c51fac8c93c 100644 (file)
@@ -81,8 +81,7 @@ void dumptree(LOGICAL sparse)
     }
 
 /* Enter a delimiter into the delimiter tree for a particular context */
-void enterdelim(n)
-  int n;
+void enterdelim(int n)
 {
 if (! contree[n])
     {
@@ -107,8 +106,7 @@ if (m_ntrtrie(dstruct->string,
 }
 
 /* Read the code to be executed with a given state transition */
-void getcode(n)
-int n;
+void getcode(int n)
 {
 int c ; /* c is int instead of char for use with ungetc */
 int nested = 1;
@@ -616,8 +614,7 @@ void nextcon(LOGICAL sparse)
   
 /* If sparse matrix output option, generate a single element of transit
    array */
-void prtctxt(column, value)
-  int column, value;
+void prtctxt(int column, int value)
   {
     static LOGICAL first = TRUE;
 
@@ -652,8 +649,7 @@ void skiptoend(void)
 }
 
 /* Return a character to the input stream for re-reading */
-void unread(c)
-int c;
+void unread(int c)
 {
 M_WCHAR wnl;
 
index 5a50fb66e9bca793ebbad3f230803bc8e50c3c18..793a08964932ba20b8dd5b8f9ed46ca041c690a6 100644 (file)
@@ -49,8 +49,7 @@ char xerror[] = "ERROR" ;
 
 /* Outputs entity definitions */
 #define ENTFILENAME 12
-void entout(fname)
-  char *fname ;
+void entout(char *fname)
   {
     char efilename[ENTFILENAME] ;
     int count = 1 ;
@@ -173,15 +172,13 @@ void entout(fname)
 
 /* Entptr is called by m_dumptrie to output the value stored with a
    particular entity in the entity trie */
-void entptr(data)
-  M_ENTITY *data ;
+void entptr(M_ENTITY *data)
   {
     fprintf(entfile, "(M_TRIE *) &m_entities[%d]", data->index - 1) ;
     }
 
 /* Typetype returns a string indicating the type of the nth entity.*/
-char *typetype(n)
-  int n ;
+char *typetype(int n)
   {
     switch(n) {
       case M_GENERAL: return(xgeneral) ;
index aa1f2a0cd50b87676461eac73d7f647f8ce87d10..c9061fae5357eec03d6696c31a790c57dabaadef 100644 (file)
@@ -83,16 +83,14 @@ void eprefix(LOGICAL flag)
 /* Writes part of an error message.  Called from m_malloc instead of
    m_err1, since PARSER's version of m_err1 calls m_malloc and recursive
    calls are possible when the heap is exhausted */
-void m_errline(text)
-char *text ;
+void m_errline(char *text)
 {
 fputs(text, stderr) ;
 fputs(text, m_errfile) ;
 }
 
 /* Writes an error message to standard error and file "error" */
-void m_error(text)
-  char *text ;
+void m_error(char *text)
   {
     eprefix(TRUE) ;
     fprintf(stderr,"%s", text) ;
@@ -192,30 +190,26 @@ void esuffix(void)
     }
 
 /* Print something to both stderr and m_errfile */
-void msgline(text)
-  char *text ;
+void msgline(char *text)
   {
     fprintf(stderr, "%s", text) ;
     fprintf(m_errfile, "%s", text) ;
     }
 
 /* Print something to both stderr and m_errfile */
-void msg1line(text, arg1)
-  char *text, *arg1 ;
+void msg1line(char *text, char *arg1)
   {
     fprintf(stderr, text, arg1) ;
     fprintf(m_errfile, text, arg1) ;
     }
 
 /* Trace used for m_malloc trace output */
-void m_trace(text)
-char *text ;
+void m_trace(char *text)
 {
 m_errline(text) ;
 }
 
-void m_wctrace(text)
-M_WCHAR *text ;
+void m_wctrace(M_WCHAR *text)
 {
 char *mb_text;
 
@@ -225,8 +219,7 @@ m_free(mb_text,"multi-byte string");
 }
 
 /* Writes a nonfatal error message to standard error and file "error" */
-void warning(text)
-  char *text ;
+void warning(char *text)
   {
     eprefix(FALSE) ;
     fprintf(stderr,"%s", text) ;
index 541a6590b3915480fb920769138677b9c6c67741..2a2ae08b33af3b979afbea0a9586b555d46a8428 100644 (file)
@@ -31,8 +31,7 @@ void m_exit(int status);
 
 /* Exit function called by utilities used in PARSER and other programs in
    the MARKUP system */
-void m_exit(status)
-  int status ;
+void m_exit(int status)
   {
     exit(status) ;
     }
index e7c0005e831dd815eaa564c54e6a8270f1eddc52..eb0dcebf0a68c03e863a9ff7b50dac5554c0fb9b 100644 (file)
@@ -61,9 +61,7 @@ void copyfile(char *pfile1, char *pfile2);
 
 int nextchar(FILE *file, struct data *data);
 
-int main(argc, argv)
-  int argc ;
-  char **argv ;
+int main(int argc, char **argv)
   {
     FILE *one, *two ;
     int c1, c2 ;
@@ -110,8 +108,7 @@ int main(argc, argv)
     }
 
 /* copyfile inserted by ced, 12-1-89. */
-void copyfile(pfile1,pfile2)
-  char *pfile1, *pfile2; 
+void copyfile(char *pfile1, char *pfile2)
 {
        int ret;
        char *pcmd;
@@ -128,9 +125,7 @@ void copyfile(pfile1,pfile2)
        free(pcmd);
 }
 
-int nextchar(file, data)
-  FILE *file ;
-  struct data *data ;
+int nextchar(FILE *file, struct data *data)
   {
     while (data->linestart) {
       data->linestart = FALSE ;
index ac45e68bec0358ad09c3848c2546f49464a9161c..75663b877f0b99d90af71b1a55ecebbf6478c6f2 100644 (file)
@@ -34,10 +34,7 @@ void m_exit(int status);
 void m_inctest(int *count, int limit, char *message);
 
 /* Increment a count and test against a limit */
-void m_inctest(count, limit, message)
-  int *count ;
-  int limit ;
-  char *message ;
+void m_inctest(int *count, int limit, char *message)
   {
     if (++*count <= limit) return ;
     m_err1("Internal error: %s exceeded", message) ;
index 9a4e0d95ae7e06028b4be468cf75a002413c5ff8..51de1f70d2c7567d96f2d19235859c9233468a3a 100644 (file)
@@ -31,9 +31,7 @@ char *m_itoa(int n, char *s);
 
 void reverse(char *s);
 
-char *m_itoa(n, s)  /* convert n to characters in s */
-char s[]; 
-int n;
+char *m_itoa(int n, char *s) /* convert n to characters in s */
 {   
     int sign ;
     char *p = s ;
@@ -51,8 +49,7 @@ int n;
     return(s) ;
 }
 
-void reverse(s)
-char s[];
+void reverse(char s[])
 {
     int c, i, j;
 
index 8dbf041a43f4ef680be5a5a6207fe55dbc376c27..af4fedf2f9e0bf616710df69517a06a90fb099df 100644 (file)
@@ -32,8 +32,7 @@ int m_lower(int c);
 
 
 /* Force a letter to lowercase */
-int m_lower(c)
-  int c ;
+int m_lower(int c)
   {
     if (c >= 'A' && c <= 'Z') c += 'a' - 'A' ;
     return(c) ;
index 1d036af2a6202195941635d5435a58efc696b7e4..b574fafd73c869100fb5657ffb029f1ad2541bf6 100644 (file)
@@ -49,9 +49,7 @@ void *m_trace(char *text);
 
 void *m_wctrace(M_WCHAR *text);
 
-void m_free(block, msg)
-  void *block ;
-  char *msg ;
+void m_free(void *block, char *msg)
   {
     char buffer[32] ;
 
@@ -71,9 +69,7 @@ void m_free(block, msg)
     free(block) ;
     }
 
-void *m_malloc(size, msg)
-  int size ;
-  char *msg ;
+void *m_malloc(int size, char *msg)
   {
     char buffer[32] ;
     void *p ;
@@ -105,10 +101,7 @@ void *m_malloc(size, msg)
     return(p) ;
     }
 
-void *m_realloc(ptr, size, msg)
-  void *ptr ;
-  int size ;
-  char *msg ;
+void *m_realloc(void *ptr, int size, char *msg)
   {
     char buffer[32] ;
     void *p ;
index ecf3ab402a59dd031ca5fe1d0afc9aadcad35edd..935aefb7af3617eced5a01193a570a0fdbb264eb 100644 (file)
@@ -35,9 +35,7 @@ void m_exit(int status);
 void m_openchk(FILE **ptr, char *name, char *mode);
 
 /* Open a file and check that the open succeeded */
-void m_openchk(ptr, name, mode)
-  FILE **ptr ;
-  char *name, *mode ;
+void m_openchk(FILE **ptr, char *name, char *mode)
   {
     *ptr = fopen(name, mode) ;
     if (*ptr) return ;
index e3100503ae360aa8d3b190556f348062b60f2fe5..86d9def39885a12d004b8546c955cb327809b373 100644 (file)
@@ -72,9 +72,7 @@ return((int) wc);
 }
 
 /* Reads the next token stored in a packed trie (as defined by context.dat) */
-int gettoken(c, context)
-int *c;
-int context;
+int gettoken(int *c, int context)
 {
 int hold[MAXD + 1];
 int ucase;
@@ -123,8 +121,7 @@ return(M_NULLVAL);
 }
 
 /* Reads a literal (called after the opening quotation mark is read) */
-LOGICAL litproc(delim)
-int delim;
+LOGICAL litproc(int delim)
 {
 int n, i, number;
 M_WCHAR *p, *pStart; /* bigger than wide versions of lit or lita */
@@ -215,8 +212,7 @@ return(FALSE);
 
 /* Returns a context-dependent delimiter string to input stream so
    characters can be reread one at a time in another context */
-void undodelim(delim)
-M_WCHAR *delim;
+void undodelim(M_WCHAR *delim)
 {
 M_WCHAR *p;
 
@@ -234,8 +230,7 @@ while (TRUE)
 /* Returns a character to the input stream to read again later. Unexplained
    problems occurred using standard ungetc procedure; hence
    explicit declaration of buffer for read-ahead characters */
-void ungetachar(c)
-int c;
+void ungetachar(int c)
 {
 M_WCHAR wnl;
 
index b831fbf775a91fabfbebd335dc91da2aad21c39e..c6a67f0e71d00b4359116c62c75b4b0d8e415cdc 100644 (file)
@@ -25,8 +25,7 @@
 /* Sparse.c has a procedure used with the tables generated by program
    CONTEXT when the sparse option is used */
 
-int m_sprscon(i, j)
-  int i, j ;
+int m_sprscon(int i, int j)
   {
     int k ;
 
index 81300d5bef4302ed14df61a14edd418f9a15f8b6..4d91891b8ee4f32892ecf99dc934dd1d84220ffa 100644 (file)
@@ -117,10 +117,7 @@ void *m_lookfortrie( const M_WCHAR *p , const M_TRIE *xtrie )
     }
 
 /* Enters a string and associated data value into a trie */
-void *m_ntrtrie(p, xtrie, dataval)
-  M_WCHAR *p ;
-  M_TRIE *xtrie ;
-  void *dataval ;
+void *m_ntrtrie(M_WCHAR *p, M_TRIE *xtrie, void *dataval)
   {
     M_TRIE *currentnode ;
     void *n ;
index a4d256f506076a1dd9bea92870263191369a9365..2899ff748c11cb0789e49504c88c9d7a0f337e16 100644 (file)
@@ -40,9 +40,7 @@ void printval(FILE *file, void *value);
 
 /* Count the descendants of a node in order to generate declarations for
    the packed form of a trie*/
-void countdown(parent, count)
-  M_TRIE *parent ;
-  int *count ;
+void countdown(M_TRIE *parent, int *count)
   {
     M_TRIE *child ;
 
@@ -54,12 +52,8 @@ void countdown(parent, count)
 
 /* Output descendants of a node for the declaration of a trie, in packed
    or normal format*/
-void dumpnode(first, file, trieptr, count, proc)
-  LOGICAL *first ;
-  FILE *file ;
-  M_TRIE *trieptr ;
-  int *count ;
-  void (*proc) (FILE *file, void *value);
+void dumpnode(LOGICAL *first, FILE *file, M_TRIE *trieptr, int *count,
+              void (*proc) (FILE *file, void *value))
   {
     M_TRIE *p ;
     int savecount ;
@@ -89,9 +83,7 @@ void dumpnode(first, file, trieptr, count, proc)
 
 
 /* Most common procedure passed to dumpptrie */
-void printval(file, value)
-  FILE *file ;
-  void *value ;
+void printval(FILE *file, void *value)
   {
     fprintf(file, ", %ld", (long) value) ;
     }
index 4a16ceff8840cb23dec01e67ec1ed933b348e3a6..e137eaf56d2c6ffb6d39cd43b123723963b4db3e 100644 (file)
@@ -35,12 +35,8 @@ void m_dumptrie(FILE *file, M_TRIE *xtrie, char *extname, int *count,
   void (*proc)(void *value));
 
 /* Write the C declaration of a trie */
-void m_dumptrie(file, xtrie, extname, count, proc)
-  FILE *file ;
-  M_TRIE *xtrie ;
-  char *extname ;
-  int *count ;
-  void (*proc)(void *value);
+void m_dumptrie(FILE *file, M_TRIE *xtrie, char *extname, int *count,
+                void (*proc)(void *value))
   {
     int firstson ;
     M_TRIE *p ;
index 2b2e72e68132533e89b932a3c748b31490218733..e18f9200ad2093a1bb8eb50da9e5cb629635a83e 100644 (file)
@@ -38,13 +38,9 @@ void dumpptrie(M_TRIE *intname, char *extname, FILE *file, char *externdef, char
   void (*proc)(FILE *file, void *value));
 
 /* Write the declaration of a packed trie to the specified files */
-void dumpptrie(intname, extname, file, externdef, defdef, proc)
-  M_TRIE *intname ;
-  char *extname ;
-  FILE *file ;
-  char *externdef ;
-  char *defdef ;
-  void (*proc) (FILE *file, void *value);
+void dumpptrie(M_TRIE *intname, char *extname, FILE *file,
+               char *externdef, char *defdef,
+               void (*proc) (FILE *file, void *value))
   {
     LOGICAL first = TRUE ;
     int count = 0 ;
index 129a8652433353a36dbfae9b79182b0b9b297719..d0706f4594460ad827f9d39fb6145883cdbcda29 100644 (file)
@@ -40,9 +40,7 @@ int m_packedlook(M_PTRIE *xptrie,
   M_WCHAR *name);
 
 /* Look for the string NAME in the packed trie PTRIE */
-int m_packedlook(xptrie, name)
-M_PTRIE *xptrie ;
-M_WCHAR *name ;
+int m_packedlook(M_PTRIE *xptrie, M_WCHAR *name)
 {
 int current = 0 ;
 int i ;
index 3a9fa97cabb159f09f6ebbcea912b21c62fc29d8..b2f91d0733ddc09e3d8ee9d770e97a4b2006cdbf 100644 (file)
 extern M_CHARTYPE m_ctarray[M_CHARSETLEN] ;
 
 /* Changes the value associated with an entry in a trie. */
-void *m_resettrie(xtrie, p, value)
-  M_TRIE *xtrie ;
-  M_WCHAR *p ;
-  void *value ;
+void *m_resettrie(M_TRIE *xtrie, M_WCHAR *p, void *value)
   {
     M_TRIE *currentnode ;
 
index 4d2167f336a55e0df4e9f4e33435a9f1e48bc391..c1ca8f1fc401a16a552293739f6fa6d19b6239fa 100644 (file)
@@ -214,8 +214,7 @@ return wc_stringStart;
 
 
 /* Get-wide-char procedure */
-int mb_getwc(m_ptr)
-void *m_ptr;
+int mb_getwc(void *m_ptr)
 {
 int  c;
 M_WCHAR wc;
index a44fb29759f5a082eed0a6d0be8a819cc20f43c5..d0117c2ce6463c280c7fcdfda7abc52dcda0bb28 100644 (file)
@@ -38,9 +38,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "entdef.h"
 
 /* Main procedure */
-int main(argc, argv)
-int argc ;
-char **argv ;
+int main(int argc, char **argv)
 {
 int m_prevcon ;
 
index 46692d6d829f29e9abdfba8718ad64d055d12fb7..ceb614cfc9c1f35dcf615ca4875bfc9bf7ad6df9 100644 (file)
@@ -38,9 +38,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 /* Verify that <PARAM>, <MIN> or <USEMAP> has not previously occurred in
    this rule */
-void found(flag, delim)
-LOGICAL *flag;
-char *delim;
+void found(LOGICAL *flag, char *delim)
 {
 M_WCHAR wcbuff[129];
 ssize_t  length;
index fadf193b1520831cb3277197406aac7940c8cb9a..c78a5ad0f6929761b5f4f26eaf99e736e93ceff2 100644 (file)
@@ -34,8 +34,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "build.h"
 
 /* Enters an element name into the element name tree */
-ELTSTRUCT *ntrelt(p)
-  M_WCHAR *p ;
+ELTSTRUCT *ntrelt(M_WCHAR *p)
   {
     ELTSTRUCT *new ;
     ELTSTRUCT *old ;
index b15c4b21c866f0c16df47548977ed84528a0ceb3..dd9cda1b80af74fd9b77a18c8823d7027317470e 100644 (file)
@@ -58,11 +58,8 @@ int addarc(STATE *from, STATE *to, ELTSTRUCT *label, ANDGROUP *and, LOGICAL opti
 
 /*checkand is used to verify nondeterminism from start and final states
   of FSA's generated from and groups*/
-void checkand(andstart, andptr, start, root, errelt)
-  ANDGROUP *andstart, *andptr ;
-  STATE *start ;
-  TREE *root ;
-  ELTSTRUCT **errelt ;    
+void checkand(ANDGROUP *andstart, ANDGROUP *andptr, STATE *start,
+              TREE *root, ELTSTRUCT **errelt)
   {
     ARC *parc ;
     ANDGROUP *pand ;
@@ -86,12 +83,8 @@ void checkand(andstart, andptr, start, root, errelt)
 /*Checkdfsa is called when adding an arc to an FSA in order to verify that
 no existing arc from the same state (or from a start state of an and-group
 FSA labelling an arc from the same state) has the same label. */
-int checkdfsa(from, label, and, id, errelt)
-  STATE *from ;
-  ELTSTRUCT *label ;
-  ANDGROUP *and ;
-  int id ;
-  ELTSTRUCT **errelt ;
+int checkdfsa(STATE *from, ELTSTRUCT *label, ANDGROUP *and, int id,
+              ELTSTRUCT **errelt)
   {
     int c ;
     ARC *parc ;
@@ -116,10 +109,7 @@ int checkdfsa(from, label, and, id, errelt)
     }
 
 /* Check use of repeated models with and groups */
-int checkrepeat(from, and, errelt)
-  STATE *from ;
-  ANDGROUP *and ;
-  ELTSTRUCT **errelt ;
+int checkrepeat(STATE *from, ANDGROUP *and, ELTSTRUCT **errelt)
   {
     ARC *parc ;
     int c ;
@@ -142,8 +132,7 @@ int checkrepeat(from, and, errelt)
     }
 
 /* Copyintolist copies one list of states into another */
-void copyintolist(from, to)
-  STATELIST *from, **to ;
+void copyintolist(STATELIST *from, STATELIST **to)
   {
     STATELIST **new, *old ;
 
@@ -161,8 +150,7 @@ void copyintolist(from, to)
     }
 
 /* Dellist deletes a list of states */
-void dellist(list)
-  STATELIST **list ;
+void dellist(STATELIST **list)
   {
     STATELIST *p, *q ;
 
@@ -220,10 +208,7 @@ STATE *getstate(void)
     }
 
 /* Makeand processes a submodel whose connector is & */
-void makeand(canbenull, root, optional)
-  LOGICAL *canbenull ;
-  TREE *root ;
-  int optional ;
+void makeand(LOGICAL *canbenull, TREE *root, int optional)
   {
     TREE *child ;
     STATELIST *start, *final ;
@@ -308,9 +293,7 @@ void makeand(canbenull, root, optional)
    allfinal is passed from model to submodel; information in newfinal
    goes from submodel to model.
    */
-LOGICAL makefsa(root, optional)
-  TREE *root ;
-  int optional ;
+LOGICAL makefsa(TREE *root, int optional)
   {
     LOGICAL canbenull ;
 
@@ -344,9 +327,7 @@ LOGICAL makefsa(root, optional)
     }
 
 /* Makeor processes a submodel whose connector is | */
-void makeor(canbenull, root)
-  LOGICAL *canbenull ;
-  TREE *root ;
+void makeor(LOGICAL *canbenull, TREE *root)
   {
     TREE *child ;
     STATELIST *final ;
@@ -368,10 +349,7 @@ void makeor(canbenull, root)
     }
 
 /* Makeseq processes a submodel whose connector is , */
-void makeseq(canbenull, root, optional)
-  LOGICAL *canbenull ;
-  TREE *root ;
-  int optional ;
+void makeseq(LOGICAL *canbenull, TREE *root, int optional)
   {
     LOGICAL branchnull ;
     STATELIST *keepfinal = NULL, *final ;
@@ -409,10 +387,7 @@ void makeseq(canbenull, root, optional)
 
 /* Nondeterm issues a diagnostic when a nondeterministic model is
    encountered */
-void nondeterm(root, c, eltp)
-  TREE *root ;
-  int c ;
-  ELTSTRUCT *eltp ;
+void nondeterm(TREE *root, int c, ELTSTRUCT *eltp)
   {
   M_WCHAR *wtemp;
 
@@ -443,8 +418,7 @@ void nondeterm(root, c, eltp)
 
 /* Notinlist returns TRUE iff item is not in list.  If item is in list,
    it makes sure that the stored nesting level is the smaller of the two */
-LOGICAL notinlist(item, list)
-  STATELIST *item, *list ;
+LOGICAL notinlist(STATELIST *item, STATELIST *list)
   {
     for ( ; list ; list = list->next)
       if (list->value == item->value) {
@@ -456,8 +430,7 @@ LOGICAL notinlist(item, list)
 
 /* Returns true if the arc is labeled #PCDATA or with an and-group that
    has an arc labelled #PCDATA from a start state */
-LOGICAL permitspcd(a)
-  ARC *a ;
+LOGICAL permitspcd(ARC *a)
   {
     ANDGROUP *pand ;
     ARC *b ;
@@ -507,8 +480,7 @@ void push(void)
 
 /* Regenerate is used in error processing to print the portion of a grammar
    rule preceding an error */
-LOGICAL regenerate(start, stop)
-TREE *start, *stop ;
+LOGICAL regenerate(TREE *start, TREE *stop)
 {
 TREE *child ;
 
@@ -554,8 +526,7 @@ return(FALSE) ;
    by adding arcs from all the final states to all the states reachable
    in one transition from a start state, labelling them as arcs from
    start states are labelled. */
-void repeat(root)
-  TREE *root ;
+void repeat(TREE *root)
   {
     STATELIST *final ;
     ARC *a ;
@@ -606,9 +577,7 @@ void repeat(root)
 
 /* Used during processing of occurrence indicators in content models such
    as (a+)+ to prohibit duplicate arcs */
-LOGICAL samelabelarc(a, s)
-  ARC *a ;
-  STATE *s ;
+LOGICAL samelabelarc(ARC *a, STATE *s)
   {
     ARC *b ;
 
@@ -666,11 +635,8 @@ void savestartarcs(void)
 
 /* Simplebranch adds a new state and transition to it in an FSA when a
    submodel consists of a single element or of an and group */
-void simplebranch(root, value, group, optional)
-  TREE *root ;
-  ELTSTRUCT *value ;
-  ANDGROUP *group ;
-  int optional ;
+void simplebranch(TREE *root, ELTSTRUCT *value, ANDGROUP *group,
+                  int optional)
   {
     STATE *new = NULL ;
     STATELIST *index ;
@@ -718,9 +684,7 @@ void simplebranch(root, value, group, optional)
    subtree in the tree representing the grammar rule being processed and
    the pointer to a flag that is set to indicate whether or not the
    submodel can be null. */
-STATE *startfsa(root, canbenull)
-  TREE *root ;
-  LOGICAL *canbenull ;
+STATE *startfsa(TREE *root, LOGICAL *canbenull)
   {
     STATELIST *item ;
     STATE *first ;
index a051387f314c693764e992f518564a4a518877e5..17183153ee5ddf90beeebc08affc335e61e8851d 100644 (file)
@@ -69,8 +69,7 @@ char mrequired[] = "M_REQUIRED" ;
 
 /* Deftype returns a string indicating the default type of the nth parameter.
    */
-char *deftype(n)
-  int n ;
+char *deftype(int n)
   {
     switch (n) {
       case NAME: return(mnamedef) ;
@@ -101,9 +100,7 @@ void done(void)
     }
 
 /* Prints data value of an entry in the element name tree */
-void dumpentnode(file, value)
-  FILE *file ;
-  M_TRIE *value ;
+void dumpentnode(FILE *file, M_TRIE *value)
   {
 
     fprintf(file, ", %d", ((ELTSTRUCT *) value)->eltno) ;
@@ -111,9 +108,7 @@ void dumpentnode(file, value)
 
 /* Prints data value of an entry in the trie of short reference map names,
    reporting any maps that are referenced but not defined */
-void dumpmapnode(file, value)
-  FILE *file ;
-  M_TRIE *value ;
+void dumpmapnode(FILE *file, M_TRIE *value)
   {
     fprintf(file, ", %d", ((MAP *) value)->map) ;
     if (! ((MAP *) value)->defined)
@@ -123,9 +118,7 @@ void dumpmapnode(file, value)
 
 
 /* Prints data value of an entry in the trie of short reference delimiters */
-void dumpsrefnode(file, value)
-  FILE *file ;
-  M_TRIE *value ;
+void dumpsrefnode(FILE *file, M_TRIE *value)
   {
     fprintf(file, ", %d", ((SREFSTRUCT *) value)->srefcnt) ;
     }
@@ -133,8 +126,7 @@ void dumpsrefnode(file, value)
 
 /* Controls printing of element blocks in alphabetical order to the
    template file */
-void eltblocks(tempfile)
-  FILE *tempfile ;
+void eltblocks(FILE *tempfile)
   {
     int n ;
     M_TRIE *node[M_NAMELEN + 1] ;
@@ -223,8 +215,7 @@ void eltreeout(void)
     }
 
 /* Enttype returns a string indicating the type of an entity */
-char *enttype(n)
-  int n ;
+char *enttype(int n)
   {
     switch(n) {
       case M_GENERAL: return(mgeneral) ;
@@ -452,8 +443,7 @@ fprintf(dtd, "#define M_MAXPAR %d\n\n", maxpar) ;
 }
 
 /* Partype returns a string indicating the type of the nth parameter. */
-char *partype(n)
-  int n ;
+char *partype(int n)
   {
     switch(n) {
       case GRPO: return(mkeyword) ;
@@ -546,9 +536,7 @@ void srefout(void)
     }
 
 /* Output one element block in a template */
-void tempelt(eltp, tempfile)
-ELTSTRUCT *eltp ;
-FILE *tempfile ;
+void tempelt(ELTSTRUCT *eltp, FILE *tempfile)
 {
 PARAMETER *paramp ;
 PTYPE *ptypep ;
@@ -658,8 +646,7 @@ void template(void)
     }
 
 /* Typecon returns a string indicating the content type of the nth element.*/
-char *typecon(n)
-  int n ;
+char *typecon(int n)
   {
     switch(n) {
       case GRPO: return(mregexp) ;
index c6838ebb14718e489ab3d4a800a943f748d329d0..dc4c118d59906f3cdf2bc8e5e0d8e917b00f0eaf 100644 (file)
@@ -38,8 +38,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "sref.h"
 
 /* Reads a name */
-LOGICAL getname(first)
-  int first;
+LOGICAL getname(int first)
 {
 M_WCHAR *p;
 int c;
index 795d846fed8214f936f5d2d46e8b7f1246d99305..a38fa84207de53b84427c9e059094c7bd06d0b35 100644 (file)
@@ -36,8 +36,7 @@ static M_WCHAR *wc_prefix = NULL;
 /* Add an entity with the default name constructed by adding a suffix
    to the name of the short reference map in which it is invoked, and
    a prefix m- */
-void adddefent(mapname)
-M_WCHAR *mapname;
+void adddefent(M_WCHAR *mapname)
 {
 M_WCHAR *p;
 int n;
@@ -75,8 +74,7 @@ thissref->entidx = entity->index;
 
 /* Add an entity, return FALSE if already there, TRUE if adding it.
    Pointer to the entity structure is in global M_STRUCT *entity. */
-LOGICAL addent(name)
-M_WCHAR *name;
+LOGICAL addent(M_WCHAR *name)
 {
 M_ENTITY *new;
 
@@ -128,16 +126,14 @@ return(TRUE);
 }
 
 /* Add a named entity to a short reference map */
-void addndent(p)
-M_WCHAR *p;
+void addndent(M_WCHAR *p)
 {
 addent(p);
 thissref->entidx = entity->index;
 }
 
 /* Add a short reference delimiter */
-void addsref(p)
-M_WCHAR *p;
+void addsref(M_WCHAR *p)
 {
 SREFSTRUCT *delim;
 SREFSTRUCT *prevsr;
index bf1dd24948a234f718b377cec38dd2939e264d3f..6988410fbe779668fd80b3edb68944a36b7183a6 100644 (file)
@@ -44,8 +44,7 @@ void endmodel(void)
     }
 
 /* Release storage used for the tree representation of a rule */
-void freetree(treep)
-  TREE *treep ;
+void freetree(TREE *treep)
   {
     TREE *child, *discard ;
 
index f59e5801243d43011fde6cda78f452815a5455f6..b92ce7decc486d2c4121ab4046e0231a5e32e1d0 100644 (file)
@@ -46,9 +46,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "entity.h"
 
 /* Main program */
-int main(argc, argv)
-  int argc ;
-  char **argv ;
+int main(int argc, char **argv)
   {
     int m_token ;
 
index 3a63e5c73ec393f2b3040202207bd6cdded36682..c7d0a24d038a51f24b54208b9b152df269200883 100644 (file)
@@ -46,9 +46,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "version.h"
 
 /* Output indicated action pointer array to if.h */
-void actptrout(array, name)
-  ACTION **array;
-  char *name;
+void actptrout(ACTION **array, char *name)
   {
     int i;
 
@@ -267,8 +265,7 @@ void endstring(void)
 
 /* Set the type of an entity and check if different than declaration in
    BUILD */
-void enttype(type)
-  int type;
+void enttype(int type)
   {
     if ((entity->type == M_PI && type == M_CODEPI) ||
         (entity->type == M_SDATA && type == M_CODESDATA));
@@ -294,8 +291,7 @@ void freechain(void)
 
 /* Returns pointer to data field in action node for current chain of
    elements */
-int *getaction(array)
-  ACTION **array;
+int *getaction(ACTION **array)
   {
     ACTION *start, *node;
     CHAIN *chainp;
@@ -431,8 +427,7 @@ void outstring(void)
     }
 
 /* Output #define's for parameter values */
-void outpval(p)
-M_TRIE *p;
+void outpval(M_TRIE *p)
 {
 M_WCHAR *q;
 
@@ -530,14 +525,8 @@ void skiptoend(void)
   }
 
 /* Starts processing a code segment from the input file */
-void startcode(caseno, flag, file, prefix, proto, formal, formtype)
-int caseno;
-LOGICAL *flag;
-FILE *file;
-char *prefix;
-char *proto;
-char *formal;
-char *formtype;
+void startcode(int caseno, LOGICAL *flag, FILE *file, char *prefix,
+               char *proto, char *formal, char *formtype)
 {
 CVARSTRUCT *cvarp;
 
@@ -631,8 +620,7 @@ void storepname(void)
     }
 
 /* Called when a possible parameter value to be defined is encountered */
-void value(p)
-M_WCHAR *p;
+void value(M_WCHAR *p)
 {
 char buffer[5];
 
index a32a268a1aa59bfab2e1aad5c9169a10adff73de..7caa367064a63d1143e3bcc5200bef6732861d90 100644 (file)
@@ -43,8 +43,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "delim.h"
 
 /* Reads a name token */
-void getname(first)
-int first;
+void getname(int first)
 {
 M_WCHAR *p, wus;
 int c, cttype;
index 68ff596614c1f4f97c7f8245d7d44c2b366f065a..c4a0986b5f6cce01d10ac6e7e362f0ae83e49c24 100644 (file)
@@ -33,9 +33,7 @@ Copyright (c) 1988, 1989 Hewlett-Packard Co.
 #include <stdlib.h>
 
 /* Write input file and line number for an error message */
-void m_dumpline(file, line)
-M_WCHAR *file;
-int line;
+void m_dumpline(M_WCHAR *file, int line)
 {
 char buffer[10];
 char *mbyte;
@@ -69,8 +67,7 @@ m_errline(",\n");
 }
 
 /* Process error message text */
-void m_errline(p)
-char *p;
+void m_errline(char *p)
 {
 char c;
 
@@ -94,8 +91,7 @@ if (++m_errcnt == m_errlim)
 }
 
 /* Exit procedure */
-void m_exit(status)
-int status;
+void m_exit(int status)
 {
 
 if (status)
@@ -123,8 +119,7 @@ exit(0);
 }
 
 /* Get-char procedure */
-int m_getc(m_ptr)
-void *m_ptr;
+int m_getc(void *m_ptr)
 {
 int  c;
 M_WCHAR wc;
@@ -210,8 +205,7 @@ return((int) wc);
 }
 
 /* Open SYSTEM entity procedure */
-void *m_openent(entcontent)
-M_WCHAR *entcontent;
+void *m_openent(M_WCHAR *entcontent)
 {
 FILE *open;
 char *filename;
@@ -259,7 +253,7 @@ return((void *) inFile);
 }
 
 /* Set program options */
-void m_setoptions()
+void m_setoptions(void)
 {
 if (m_argc > 2)
     {
@@ -269,8 +263,7 @@ if (m_argc > 2)
 
 /* Process signon message text, stripping out MARKUP version number, so
    only one version number will appear */
-void m_signmsg(p)
-  char *p;
+void m_signmsg(char *p)
   {
     char *q;
     char *pCopy;
@@ -287,19 +280,17 @@ void m_signmsg(p)
     }
 
 /* All entity declarations have been processed. */
-void m_startdoc()
+void m_startdoc(void)
 {
 }
 
 /* Write debugging trace information */
-void m_trace(p)
-char *p;
+void m_trace(char *p)
 {
 }
 
 
-void m_wctrace(p)
-M_WCHAR *p;
+void m_wctrace(M_WCHAR *p)
 {
 char *mb_p;
 
index 07641eb90d2699ed99ca6e46fe077e799196ced0..7c50e04f68e26006bf8085e4828927d856f52682 100644 (file)
@@ -861,7 +861,7 @@ static ElementPtr *currentElementStack;
 static int currentElementStackSize = 0;
 static int currentElementStackTop = -1;
 
-void PushCurrentElement()
+void PushCurrentElement(void)
 {
 currentElementStackTop++;
 if (currentElementStackSize == 0)
@@ -905,7 +905,7 @@ thisElementStack[thisElementStackTop] = pThis;
 }
 
 
-void PopCurrentElement()
+void PopCurrentElement(void)
 {
 pCurrentElement = currentElementStack[currentElementStackTop];
 if (currentElementStackTop < 0)
@@ -921,7 +921,7 @@ else
 }
 
 
-static ElementPtr PopThisElement()
+static ElementPtr PopThisElement(void)
 {
 ElementPtr pThisElement;
 
@@ -1302,7 +1302,7 @@ else
 
 
 /* decompress an SDL file */
-static void DecompressSDL()
+static void DecompressSDL(void)
 {
 int           outFd, zFd;
 FILE         *inFile;
@@ -4823,7 +4823,7 @@ EmitSDL(pVirpage);
 
 
 /* A routine to emit a help message and exit */
-static void Help()
+static void Help(void)
 {
 printf("The available options to %s are 'c', 'd', 'h', 'o' and 't'.\n\n",
        progName);
@@ -4843,7 +4843,7 @@ exit(0);
 
 
 /* A routine to emit a usage message and exit */
-static void Usage()
+static void Usage(void)
 {
 fprintf(stderr,
        "Usage: %s [-cdhot] <inFileName> [<outFileName>]\n",
@@ -4862,7 +4862,7 @@ exit(1);
  * A routine to pre-build all the input, output and intermediate file
  * names that we'll need.
 */
-static void MakeFileNames()
+static void MakeFileNames(void)
 {
 int   argCount;
 int   length, c;
@@ -5292,7 +5292,7 @@ return pc - string;
 /*
  * A routine to build the index from the .idx file (if any).
 */
-void BuildIndex()
+void BuildIndex(void)
 {
 char  buffer[BUFSIZ+1], *pFrom, *pTo, *pRestart, thisChar;
 int   length, size;
@@ -5704,7 +5704,7 @@ FcloseFile(sdlIdxFile, sortedIdxFileName, xxx);
 }
 
 
-static void HandleSNB()
+static void HandleSNB(void)
 {
 int   oldOffset, newOffset;
 FILE *snbFile;
@@ -5775,7 +5775,7 @@ CloseFile(outFd, tempFileName, xxx);
 /* calculate the size of the TOSS if only the used elements are
  * emitted
 */
-static int RestrictedTossSize()
+static int RestrictedTossSize(void)
 {
 char       buffer[32];
 ElementPtr pThis;
@@ -6085,7 +6085,7 @@ return size;
 /* iterate over the LOIDS computing the offsets as we remove the old
  * LOIDS and INDEX and replace them with the new
 */ 
-void IterateLoids()
+void IterateLoids(void)
 {
 int       replacing, length, incr, tmp;
 int       loidsSize;
@@ -6161,7 +6161,7 @@ while (incr)
  * the amount of padding needed in between the vstruct and the first
  * virpage to make everything work
 */
-static void CompressVstruct()
+static void CompressVstruct(void)
 {
 #define COMPRESS_PAD_LENGTH 10
 char      buffer[BUFSIZ], zTemp[4];
@@ -6304,7 +6304,7 @@ while (pad >= 0)
 
 
 /* insert the new loids and index then close the output file */
-static void IncorporateVstructElements()
+static void IncorporateVstructElements(void)
 {
 char      buffer[BUFSIZ];
 int       length, delta;
@@ -6510,7 +6510,7 @@ return(name) ;
  * file and its name is "TOSSFILE", change its content to be the
  * current file name base plus ".tss".
 */
-void UpdateTossFileName()
+void UpdateTossFileName(void)
 {
 unsigned char type;
 unsigned char wheredef;
@@ -6652,7 +6652,7 @@ _DtLcxCloseDb(&myDb);
 /* a routine to do all the things we want to do before actually
  * parsing the SDL document.
 */
-void OpenDocument()
+void OpenDocument(void)
 {
 MakeFileNames();
 m_errfile = FopenFile(errFileName, O_WRONLY|O_APPEND, xxx);
@@ -6674,7 +6674,7 @@ outFile   = FopenFile(vstructFileName, O_WRONLY, xxx);
 /* a routine to do all those things we want to do after parsing the
  * document such as doing the fixups in the vstruct
 */
-void CloseDocument()
+void CloseDocument(void)
 {
 FcloseFile(outFile, tempFileName, xxx);
 BuildIndex();
index 59e084ead16ce8cf7f97fe09ae80233ef179aeda..cbf1f50e0cf7ff92c0a0063642df5c10370b4f09 100644 (file)
@@ -44,8 +44,7 @@ in the interface definition.*/
 #include "signon.h"
 
 /* When an explicit or implied end-tag occurs */
-void m_endaction(m_elt)
-  M_ELEMENT m_elt;
+void m_endaction(M_ELEMENT m_elt)
   {
     M_ELEMENT m_action;
     char buffer[2*MAXD+M_NAMELEN+1];
@@ -76,9 +75,7 @@ void m_endaction(m_elt)
     }
 
 /* Find appropriate action according to current stack */
-int m_findact(elt, array)
-  M_ELEMENT elt;
-  int *array;
+int m_findact(M_ELEMENT elt, int *array)
   {
     int chainlen = 0;
     int index;
@@ -156,8 +153,7 @@ m_free(wc_string,"wide character string");
 }    
 
 /* When an explicit or implied start-tag occurs */
-void m_strtaction(m_elt)
-  M_ELEMENT m_elt;
+void m_strtaction(M_ELEMENT m_elt)
   {
     int m_par, m_i;
     M_WCHAR *m_p;
index c057ce7f92947acd4355de6e15d65db089af0a53..7921725ca84a40dd0c0b11784801b7aa72254037 100644 (file)
@@ -28,8 +28,7 @@
 #include "userinc.h"
 #include "globdec.h"
 
-void m_closent(m_ptr)
-  void *m_ptr ;
+void m_closent(void *m_ptr)
   {
     fclose((FILE *) m_ptr) ;
     }
index 681a40a820097107cd8fda3aded031f3b4163a59..4b73888ac42e49b4a4215d9f23ebf8297ca7fb0e 100644 (file)
@@ -37,8 +37,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "entfile.c"
 
 /* When a reference to a CODE entity is encountered */
-void m_codeent(m_ent)
-  int m_ent ;
+void m_codeent(int m_ent)
   {
     (*m_ctable[m_ent])() ;
   }
index 00ebd21f1905f0400758d231901df1fc1de3facc..f0fe2f419477565d3b1d5b0b314f31818acb48be 100644 (file)
@@ -29,9 +29,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "globdec.h"
 
 /* Displays current element after some error messages */
-void m_dispcurelt(file, line)
-M_WCHAR *file ;
-int line ;
+void m_dispcurelt(M_WCHAR *file, int line)
 {
 char *mb_parent;
 
index 3902fc80a8c6278968f5831ae3e5232d22c2af75..07e347fa70c7714ac3a782028acd8493d8797b46 100644 (file)
@@ -37,8 +37,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 
 /* Perform the m_action-th end-code in the interface */
-void m_endcase(m_action)
-  int m_action ;
+void m_endcase(int m_action)
   {
     (*m_etable[m_action])() ;
     }
index 703f39fff4561fb6798a29e7b7360f486002979f..041eb03d463c21990b68a53e368f805aee1897c3 100644 (file)
@@ -52,8 +52,7 @@ void m_ckmap(M_WCHAR *name, LOGICAL useoradd)
 /* Check type specified in entity declaration for previously defined
    entity.  Testing to see if the new declaration is identical to the
    original one. */
-void m_eduptype(type)
-  int type ;
+void m_eduptype(int type)
   {
     if ((int) m_entity->type != type) {
       m_err1("Redefinition of entity %s ignored", m_entity->name) ;
@@ -63,8 +62,7 @@ void m_eduptype(type)
     }
 
 /* Tests if an entity is too long */
-void m_longent(context)
-  int context ;
+void m_longent(int context)
   {
     if (m_entclen >= M_LITLEN) {
       m_curcon = context ;
@@ -74,8 +72,7 @@ void m_longent(context)
     }
 
 /* Enters an entity name into the entity name tree */
-void m_ntrent(p)
-  M_WCHAR *p ;
+void m_ntrent(M_WCHAR *p)
   {
     M_ENTITY *new ;
 
index 7f6b9ab51cbcd4fa0a2112f8e67f2245206c745d..17ddf2cbadb7d32d3b32aee990977e5d4445dd28 100644 (file)
@@ -40,8 +40,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 
 /* Issue error message (no arguments) */
-void m_error(text)
-  char *text;
+void m_error(char *text)
   {
     m_startmsg();
     m_errline(text);
@@ -316,9 +315,7 @@ void m_err7(
 
 /* Getline.c returns the name of the current input file and the number
    of the current line */
-void m_getline(file, line)
-  M_WCHAR **file;
-  int *line;
+void m_getline(M_WCHAR **file, int *line)
   {
     int i;
 
index 1245c7caf4a36967c2a80f30fdfa97f1cb688c8f..3887c7b42090e9fec5624fdef589165b27e5520d 100644 (file)
@@ -64,8 +64,7 @@ void m_etcomplete(void)
 
 /* M_frcend is called after a syntax error to end element VAL even
    if more content for that element is expected */
-void m_frcend(val)
-  M_ELEMENT val ;
+void m_frcend(M_ELEMENT val)
   {
     M_PARSE *stackptr ;
     M_ELEMENT poppedval ;
index 0d861585df83ecf9a82721b59bc4be99dae0cc3d..1846ef39ae3fb29e01387b77efcf2e6727283d26 100644 (file)
@@ -33,8 +33,7 @@
 
 /* Procedure callable by interface designer.  Returns number of occurrences
    of element on parse stack */
-int m_level(elt)
-  M_WCHAR *elt ;
+int m_level(M_WCHAR *elt)
   {
     int i = 0 ;
     M_PARSE *stackptr ;
@@ -48,8 +47,7 @@ int m_level(elt)
     }
 
 
-int m_mblevel(elt)
-  char *elt ;
+int m_mblevel(char *elt)
   {
   int     retval;
   M_WCHAR *wc_elt;
index 761a64d03fa4b7eefb855a69cbb0f44b3829d902..fd47220befd5b9dd9f52e22bd1575cbce4918f5f 100644 (file)
@@ -38,11 +38,8 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "parser.h"
 #include "entext.h"
 
-LOGICAL m_lookent(name, type, content, wheredef)
-  M_WCHAR *name ;
-  unsigned char *type ;
-  M_WCHAR **content ;
-  unsigned char *wheredef ;
+LOGICAL m_lookent(M_WCHAR *name, unsigned char *type, M_WCHAR **content,
+                  unsigned char *wheredef)
   {
     M_ENTITY *entity ;
 
index 2a7564db69ec7566f456a8b8fb1d5c5de1ab36c0..1a0c1eb5789c563d99d59b14669386b788a5c24c 100644 (file)
@@ -99,11 +99,7 @@ void m_expecting(void)
 
 /* Recursive procedure first called from expecting() to display
    names of elements reachable from a particular node */
-void m_expexpand(expstart, node, required, data)
-  LOGICAL *expstart ;
-  M_STATE node ;
-  LOGICAL *required ;
-  LOGICAL *data ;
+void m_expexpand(LOGICAL *expstart, M_STATE node, LOGICAL *required, LOGICAL *data)
   {
     M_ARC parc ;
     M_ANDGROUP pand ;
@@ -125,10 +121,7 @@ void m_expexpand(expstart, node, required, data)
     }
 
 /* M_expline writes one line for m_expecting() */
-void m_expline(expstart, data, label)
-  LOGICAL *expstart ;
-  LOGICAL *data ;
-  M_ELEMENT label ;
+void m_expline(LOGICAL *expstart, LOGICAL *data, M_ELEMENT label)
   {
     char buffer[M_NAMELEN + 2*MAXD + 1] ;
 
@@ -165,9 +158,7 @@ void m_expline(expstart, data, label)
 
 /* M_exptend is called from m_expecting to inform the user after an
    error if an end tag is permitted */
-void m_exptend(expstart, stackptr)
-  LOGICAL *expstart ;
-  M_PARSE *stackptr ;
+void m_exptend(LOGICAL *expstart, M_PARSE *stackptr)
   {
     char buffer[M_NAMELEN + 2*MAXD + 1] ;
 
@@ -216,9 +207,7 @@ void m_exptend(expstart, stackptr)
    element, 1 if character data is expected, and 0 (FALSE) if there is
    no unique element. 
 */
-M_ELEMENT m_findunique(from, newleft)
-  M_STATE from ;
-  int *newleft ;
+M_ELEMENT m_findunique(M_STATE from, int *newleft)
   {
     M_ARC parc ;
     M_ELEMENT cr = 0, minim = 0;
@@ -339,7 +328,7 @@ LOGICAL m_omitend(void)
 
 /* Tests to see if a start tag may have been omitted at this point of
    the parse.  If so, saves the element name in the MINVAL array*/
-LOGICAL m_omitstart()
+LOGICAL m_omitstart(void)
   {
     M_ELEMENT c = M_NULLVAL ;
 
@@ -420,4 +409,3 @@ LOGICAL m_omitstart()
     m_nextms = &(*m_nextms)->next ;
     return(TRUE) ;
     }
-
index 9045345bf969fd6f5d2485911f37bb1d25c8d0db..3c8f8ac12640a56de8e666c13d40f40fc729f267 100644 (file)
@@ -33,8 +33,7 @@ Copyright 1988, 1989 Hewlett-Packard Co.
 #include "parser.h"
 
 /* Get program options from a string */
-void m_optstring(p)
-  char *p ;
+void m_optstring(char *p)
   {
     if (strchr(p, 'a')) m_malftrace = TRUE ;
     if (strchr(p, 'c')) m_chtrace = TRUE ;
index 528c890dcfedfa1dfddc570432226d723277c8bb..bc4a4ed23bd99c9bc41476b289c7c9d3518a59a3 100644 (file)
@@ -42,8 +42,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 /* Process the value for the parameter whose index number was previously
    saved in m_ppsave */
-void m_attval(string)
-  M_WCHAR *string ;
+void m_attval(M_WCHAR *string)
   {
     const M_WCHAR *p ;
 
@@ -65,8 +64,7 @@ void m_attval(string)
 
 /* Process a string that is a parameter value not prefixed by the parameter
    name and value indicator */
-LOGICAL m_attvonly(string)
-  M_WCHAR *string ;
+LOGICAL m_attvonly(M_WCHAR *string)
   {
     const M_WCHAR *p ;
     int par, i ;
@@ -152,8 +150,7 @@ void m_findatt(void)
     }
 
 /* Free the parameter storage associated with an element on the parse stack */
-void m_freeparam(stackelt)
-  M_PARSE *stackelt ;
+void m_freeparam(M_PARSE *stackelt)
   {
     int i ;
     int par ;
@@ -173,9 +170,7 @@ void m_freeparam(stackelt)
 /* Force a parameter value to uppercase, if appropriate for its type.
    Also, if list-valued attribute, remove leading and trailing spaces,
    and condense white-space sequences to a single blank*/
-void m_parupper(par, string)
-  int par ;
-  M_WCHAR *string ;
+void m_parupper(int par, M_WCHAR *string)
   {
     M_WCHAR *p ;
     M_WCHAR *q ;
@@ -233,11 +228,7 @@ void m_stkdefaultparams(void)
     }
 
 /* Stack one default parameter */
-void m_stkonedef(par, scanel, poccur, i)
-  int par ;
-  M_ELEMENT scanel ;
-  M_WCHAR **poccur ;
-  int i ;
+void m_stkonedef(int par, M_ELEMENT scanel, M_WCHAR **poccur, int i)
   {
     if (m_parameter[par - 1].deftype == M_REQUIRED ||
         (m_parameter[par - 1].deftype == M_CURRENT &&
@@ -313,8 +304,7 @@ void m_updatedefault(const int par , const M_WCHAR *string )
 
 /* Check to see if a string that occurs after the element name in a start
    tag is a valid parameter name or value; if not, assume tag is ended */
-LOGICAL m_validinpar(string)
-  M_WCHAR *string ;
+LOGICAL m_validinpar(M_WCHAR *string)
   {
     int par ;
     M_WCHAR *p ;
index 800143bd5d2a280d488d8fbf5173c5f06fa9aa56..2a7234da21de2e75f1117db02b35f65caabebc81 100644 (file)
@@ -34,8 +34,7 @@
 /* Procedure callable by interface designers.  Returns pointer to name
    of nth level parent of current element (0 is self, 1 is parent, 2
    is grandparent, etc.) */
-M_WCHAR *m_parent(n)
-  int n ;
+M_WCHAR *m_parent(int n)
   {
     M_PARSE *stackptr ;
 
index fcfb86ab446f025be6bcd6e7e3ed6f29aebaf2d6..0c915da226bcf4733de15f8aa9ac81b32042bc26 100644 (file)
@@ -36,9 +36,7 @@
 #include "entext.h"
 
 /* Main procedure */
-void main(argc, argv)
-  int argc ;
-  char **argv ;
+void main(int argc, char **argv)
   {
     static char parserr[] = "\nM_token=%d, m_prevcon=%d, m_scanval=%d\n" ;
     static char sopt[] =
index 499a91b3b78f6a5112a209ff4a5f0de8063a3fde..9431830f54c10caa001d2da00205005689c82353 100644 (file)
@@ -87,7 +87,7 @@ M_ELEMENT m_eltname(void)
       }
     }
 
-int get_mb_cur_max()
+int get_mb_cur_max(void)
 {
 char *l;
 int   i;
index 22efdd848953c19ef8de0487c939874d0b645f62..7b4870132cfce7e74dbfff6fb452db034cd199be 100644 (file)
@@ -38,10 +38,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 
 /* When a processing instruction or SDATA entity other than a CODE entity
    occurs */
-void m_piaction(m_pi, m_entname, m_enttype)
-  M_WCHAR *m_pi ;
-  M_WCHAR *m_entname ;
-  int m_enttype ;
+void m_piaction(M_WCHAR *m_pi, M_WCHAR *m_entname, int m_enttype)
   {
     m_stackpar = m_stacktop->piparam ;
     (*m_ptable[m_stacktop->picase])(m_pi, m_entname, m_enttype) ;
index 309d0c51c7900229766cf3109a7db092db18b9a3..3bc16ced84eafbded840b66bf2ab38304e7d1a89 100644 (file)
@@ -62,8 +62,7 @@ int m_actgetc(void)
     }
 
 /* Expand an entity reference */
-void m_entexpand(openent)
-  M_ENTITY *openent ;
+void m_entexpand(M_ENTITY *openent)
   {
     M_WCHAR *p ;
     M_HOLDTYPE dchar ;
@@ -231,9 +230,7 @@ void m_entexpand(openent)
 
 /* An srlen-character long short-reference delimiter has been found.  Verify
    that it is not the prefix of a general delimiter recognized in context*/
-LOGICAL m_gendelim(srlen, context)
-  int srlen ;
-  int context ;
+LOGICAL m_gendelim(int srlen, int context)
   {
     int ghold[MAXD + 1] ;
     int ucase ;
@@ -321,8 +318,7 @@ LOGICAL m_gendelim(srlen, context)
 
 /* Reads next input character from the current source file or from an
    entity expansion */
-int m_getachar(dchar)
-  M_HOLDTYPE *dchar ;
+int m_getachar(M_HOLDTYPE *dchar)
   {
     int c ;
     int i ;
@@ -427,10 +423,7 @@ void m_getname(M_WCHAR first)
     }
 
 /* Reads the next token */
-int m_gettoken(c, dchar, context)
-  int *c ;
-  M_HOLDTYPE *dchar ;
-  int context ;
+int m_gettoken(int *c, M_HOLDTYPE *dchar, int context)
   {
     int hold[MAXD + 1], next ;
     int ucase ;
@@ -554,8 +547,7 @@ int m_gettoken(c, dchar, context)
     }
 
 /* Reads a literal */
-void m_litproc(delim)
-  int delim ;
+void m_litproc(int delim)
   {
     int n, i ;
     M_HOLDTYPE dchar ;
@@ -886,8 +878,7 @@ void m_setmap(int map, LOGICAL useoradd)
     }
 
 /* Check for short reference delimiters */
-void m_shortref(context)
-int context ;
+void m_shortref(int context)
 {
 int n = 0 ;
 int i ;
index 4a198d42ef8d42d1d3e2f92a3211dd72faa9912e..4124a45c4238bb4d3b744b098c6176ae25c02e3e 100644 (file)
@@ -35,9 +35,7 @@
 #include "parser.h"
 
 /* Set a user-defined C variable to the corresponding parameter value */
-void m_setparam(cvar, par)
-  M_WCHAR **cvar ;
-  int par ;
+void m_setparam(M_WCHAR **cvar, int par)
   {
     *cvar = m_stackpar->param[par] ;
     }
index 24120add2e4d7c4700b9de3866a6777684b6467f..8b82ee5247d1f5d68c859c5ac407a9c9b922aff2 100644 (file)
@@ -36,8 +36,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
 #include "sfile.c"
 
 /* Perform the m_action-th start-code in the interface */
-void m_strtcase(m_action)
-  int m_action ;
+void m_strtcase(int m_action)
   {
     (*m_stable[m_action])() ;
     }
index a0cebd549aca7a7d93068e77e83257d0550e3a66..7471ae2b23b02dd9da700d568ecc209669a36cde 100644 (file)
@@ -46,8 +46,7 @@ This product and information is proprietary of Tandem Computers Incorporated.
    is valid input. It returns TRUE, FALSE, or M_NONCONTEXTUAL respectively
    if the element is allowed by content, not allowed, or allowed by an
    inclusion exception. */
-int m_checkstart(val)
-  M_ELEMENT val ;
+int m_checkstart(M_ELEMENT val)
   {
     M_PARSE *stackptr ;
     int except ;
@@ -238,8 +237,7 @@ void m_done(void)
     }
 
 /* Process the endtag (implied, abbreviated, or explicit) for element C*/
-void m_endtag(c)
-  M_ELEMENT c ;
+void m_endtag(M_ELEMENT c)
   {
     m_endaction(c) ;
     m_pop() ;
@@ -251,8 +249,7 @@ void m_endtag(c)
 
 /* Check that the identified element is not prohibited in the current context
    by an exclusion exception */
-LOGICAL m_excluded(elt)
-  M_ELEMENT elt ;
+LOGICAL m_excluded(M_ELEMENT elt)
   {
     M_PARSE *stackptr ;
     int except ;
@@ -270,8 +267,7 @@ LOGICAL m_excluded(elt)
 
 /* Free the OPEN FSA substructures associated with an element on
    the parse stack */
-void m_freeFSA(stackelt)
-  M_PARSE *stackelt ;
+void m_freeFSA(M_PARSE *stackelt)
   {
     M_OPENFSA *fsastack ;
     M_ANDLIST *usedand ;
@@ -290,9 +286,7 @@ void m_freeFSA(stackelt)
     }
 
 /* Free storage used for tentative chain of tag minimizations */
-void m_freemin(min, msg)
-  M_MIN *min ;
-  char *msg ;
+void m_freemin(M_MIN *min, char *msg)
   {
     M_MIN *discard ;
 
@@ -307,9 +301,7 @@ void m_freemin(min, msg)
    in the current content model by starting a new submodel of the and-group
    indicated by fsastack, or (if the and-group is within a seq-group) by
    continuing past the and-group */
-LOGICAL m_nextand(thisfsa, label)
-  M_OPENFSA *thisfsa ;
-  M_ELEMENT label ;
+LOGICAL m_nextand(M_OPENFSA *thisfsa, M_ELEMENT label)
   {
     M_ANDLIST *newgroup ;
     M_ANDGROUP pand ;
@@ -461,8 +453,7 @@ void m_push(M_ELEMENT elt, M_STATE current, LOGICAL need)
    character is treated differently so that if character data is not
    allowed in the current context, an error message is issued with the
    first character only and not with every character. */
-void m_strtcdata(scanval)
-  int scanval ;
+void m_strtcdata(int scanval)
   {
     if (! m_strtproc(M_NULLVAL))
       if (m_whitespace((M_WCHAR) scanval)) {
@@ -493,8 +484,7 @@ void m_strtcdata(scanval)
    to an element that was within #PCDATA, m_strtproc saves the current context
    and restores it after returning from the last call to m_endtag.)
 */
-LOGICAL m_strtproc(scanval)
-  M_ELEMENT scanval ;
+LOGICAL m_strtproc(M_ELEMENT scanval)
   {
     int check ;
     M_PARSE *original ;
index 080ff411cc7ccd5a8a7a6553e3ca4fa65bf6ccd8..f59f86f72aa88c13c12c7881855555ad37cf9fe3 100644 (file)
@@ -166,9 +166,7 @@ delim.h.
 #include "cont.h"
 
 /* Main procedure */
-int main(argc, argv)
-  int argc ;
-  char **argv ;
+int main(int argc, char **argv)
 {
 int n ;
 
index 8607f124b7e820052f546861173121a96fbb4a4a..6aa93c561b2bbafa9877b64d611543d8248443e6 100644 (file)
@@ -81,8 +81,7 @@ void dumptree(LOGICAL sparse)
     }
 
 /* Enter a delimiter into the delimiter tree for a particular context */
-void enterdelim(n)
-  int n;
+void enterdelim(int n)
 {
 if (! contree[n])
     {
@@ -107,8 +106,7 @@ if (m_ntrtrie(dstruct->string,
 }
 
 /* Read the code to be executed with a given state transition */
-void getcode(n)
-int n;
+void getcode(int n)
 {
 int c ; /* c is int instead of char for use with ungetc */
 int nested = 1;
@@ -619,8 +617,7 @@ void nextcon(LOGICAL sparse)
   
 /* If sparse matrix output option, generate a single element of transit
    array */
-void prtctxt(column, value)
-  int column, value;
+void prtctxt(int column, int value)
   {
     static LOGICAL first = TRUE;
 
@@ -655,8 +652,7 @@ void skiptoend(void)
 }
 
 /* Return a character to the input stream for re-reading */
-void unread(c)
-int c;
+void unread(int c)
 {
 M_WCHAR wnl;
 
index 17e773624ffa2eab2e603409864dbafe95d1966b..9db9b9e94527c42250a5adf543d2232644acdd28 100644 (file)
@@ -49,8 +49,7 @@ char xerror[] = "ERROR" ;
 
 /* Outputs entity definitions */
 #define ENTFILENAME 12
-void entout(fname)
-  char *fname ;
+void entout(char *fname)
   {
     char efilename[ENTFILENAME] ;
     int count = 1 ;
@@ -173,15 +172,13 @@ void entout(fname)
 
 /* Entptr is called by m_dumptrie to output the value stored with a
    particular entity in the entity trie */
-void entptr(data)
-  M_ENTITY *data ;
+void entptr(M_ENTITY *data)
   {
     fprintf(entfile, "(M_TRIE *) &m_entities[%d]", data->index - 1) ;
     }
 
 /* Typetype returns a string indicating the type of the nth entity.*/
-char *typetype(n)
-  int n ;
+char *typetype(int n)
   {
     switch(n) {
       case M_GENERAL: return(xgeneral) ;
index 3b799666d9e3a310d5b38810be27f74decbf7481..27e9caec73b6f055f848bb3b88c5e3f09e649360 100644 (file)
@@ -83,16 +83,14 @@ void eprefix(LOGICAL flag)
 /* Writes part of an error message.  Called from m_malloc instead of
    m_err1, since PARSER's version of m_err1 calls m_malloc and recursive
    calls are possible when the heap is exhausted */
-void m_errline(text)
-char *text ;
+void m_errline(char *text)
 {
 fputs(text, stderr) ;
 fputs(text, m_errfile) ;
 }
 
 /* Writes an error message to standard error and file "error" */
-void m_error(text)
-  char *text ;
+void m_error(char *text)
   {
     eprefix(TRUE) ;
     fprintf(stderr,"%s", text) ;
@@ -192,30 +190,26 @@ void esuffix(void)
     }
 
 /* Print something to both stderr and m_errfile */
-void msgline(text)
-  char *text ;
+void msgline(char *text)
   {
     fprintf(stderr, "%s", text) ;
     fprintf(m_errfile, "%s", text) ;
     }
 
 /* Print something to both stderr and m_errfile */
-void msg1line(text, arg1)
-  char *text, *arg1 ;
+void msg1line(char *text, char *arg1)
   {
     fprintf(stderr, text, arg1) ;
     fprintf(m_errfile, text, arg1) ;
     }
 
 /* Trace used for m_malloc trace output */
-void m_trace(text)
-char *text ;
+void m_trace(char *text)
 {
 m_errline(text) ;
 }
 
-void m_wctrace(text)
-M_WCHAR *text ;
+void m_wctrace(M_WCHAR *text)
 {
 char *mb_text;
 
@@ -225,8 +219,7 @@ m_free(mb_text,"multi-byte string");
 }
 
 /* Writes a nonfatal error message to standard error and file "error" */
-void warning(text)
-  char *text ;
+void warning(char *text)
   {
     eprefix(FALSE) ;
     fprintf(stderr,"%s", text) ;
index ed0ca63eb01b05caa72ce4c81f4a73bd84f80d6f..d326e97d6d9eaf22a8c6f570f254af28b4566751 100644 (file)
@@ -31,8 +31,7 @@ void m_exit(int status);
 
 /* Exit function called by utilities used in PARSER and other programs in
    the MARKUP system */
-void m_exit(status)
-  int status ;
+void m_exit(int status)
   {
     exit(status) ;
     }
index 68060805504af6b8c929c591cf090fd5cf25f44a..1c1eb501c7f58f7cf4cc82d21a3a07e07cf74698 100644 (file)
@@ -61,9 +61,7 @@ void copyfile(char *pfile1, char *pfile2);
 
 int nextchar(FILE *file, struct data *data);
 
-void main(argc, argv)
-  int argc ;
-  char **argv ;
+void main(int argc, char **argv)
   {
     FILE *one, *two ;
     int c1, c2 ;
@@ -110,8 +108,7 @@ void main(argc, argv)
     }
 
 /* copyfile inserted by ced, 12-1-89. */
-void copyfile(pfile1,pfile2)
-  char *pfile1, *pfile2; 
+void copyfile(char *pfile1, char *pfile2)
 {
        int ret;
        char *pcmd;
@@ -128,9 +125,7 @@ void copyfile(pfile1,pfile2)
        free(pcmd);
 }
 
-int nextchar(file, data)
-  FILE *file ;
-  struct data *data ;
+int nextchar(FILE *file, struct data *data)
   {
     while (data->linestart) {
       data->linestart = FALSE ;
index a9a393219e4dbe1e37fffed3bb4462d38d26a0eb..db343b98b2a5d63e2064ead15bd7ca10c00f938f 100644 (file)
@@ -34,10 +34,7 @@ void m_exit(int status);
 void m_inctest(int *count, int limit, char *message);
 
 /* Increment a count and test against a limit */
-void m_inctest(count, limit, message)
-  int *count ;
-  int limit ;
-  char *message ;
+void m_inctest(int *count, int limit, char *message)
   {
     if (++*count <= limit) return ;
     m_err1("Internal error: %s exceeded", message) ;
index b86d103e85288558c703e434033bb10c7243d9ab..a08f4bf7965ac53e1e7dbbc647f123fcd2785551 100644 (file)
@@ -31,9 +31,7 @@ char *m_itoa(int n, char *s);
 
 void reverse(char *s);
 
-char *m_itoa(n, s)  /* convert n to characters in s */
-char s[]; 
-int n;
+char *m_itoa(int n, char *s)  /* convert n to characters in s */
 {   
     int sign ;
     char *p = s ;
@@ -51,8 +49,7 @@ int n;
     return(s) ;
 }
 
-void reverse(s)
-char s[];
+void reverse(char s[])
 {
     int c, i, j;
 
index e53f0ff81c03bb1be2af738b97fbee3f8bdf4509..52cac2bc89b7e380942cdff0528d91354d21d846 100644 (file)
@@ -32,8 +32,7 @@ int m_lower(int c);
 
 
 /* Force a letter to lowercase */
-int m_lower(c)
-  int c ;
+int m_lower(int c)
   {
     if (c >= 'A' && c <= 'Z') c += 'a' - 'A' ;
     return(c) ;
index bead0dbdf216b623de890780d50fc7d0b3c88248..ff63f1348e7497e52eabdddc53f7eabe051c2d6b 100644 (file)
@@ -69,9 +69,7 @@ void m_free(void *block, char *msg)
     free(block) ;
     }
 
-void *m_malloc(size, msg)
-  int size ;
-  char *msg ;
+void *m_malloc(int size, char *msg)
   {
     char buffer[32] ;
     void *p ;
@@ -103,10 +101,7 @@ void *m_malloc(size, msg)
     return(p) ;
     }
 
-void *m_realloc(ptr, size, msg)
-  void *ptr ;
-  int size ;
-  char *msg ;
+void *m_realloc(void *ptr, int size, char *msg)
   {
     char buffer[32] ;
     void *p ;
index 25445b13db2c760cf0a2b4fce30f466455e0337a..13e45b0a632a2f9944c6eada0f35c2dabe7f9a16 100644 (file)
@@ -35,9 +35,7 @@ void m_exit(int status);
 void m_openchk(FILE **ptr, char *name, char *mode);
 
 /* Open a file and check that the open succeeded */
-void m_openchk(ptr, name, mode)
-  FILE **ptr ;
-  char *name, *mode ;
+void m_openchk(FILE **ptr, char *name, char *mode)
   {
     *ptr = fopen(name, mode) ;
     if (*ptr) return ;
index c9ceed66ff72e63a34de2ce9c3bde2bd34ee631f..9f3ff6b349d77bd57aebd372189b2e0778b06160 100644 (file)
@@ -72,9 +72,7 @@ return((int) wc);
 }
 
 /* Reads the next token stored in a packed trie (as defined by context.dat) */
-int gettoken(c, context)
-int *c;
-int context;
+int gettoken(int *c, int context)
 {
 int hold[MAXD + 1];
 int ucase;
@@ -123,8 +121,7 @@ return(M_NULLVAL);
 }
 
 /* Reads a literal (called after the opening quotation mark is read) */
-LOGICAL litproc(delim)
-int delim;
+LOGICAL litproc(int delim)
 {
 int n, i, number;
 M_WCHAR *p, *pStart; /* bigger than wide versions of lit or lita */
@@ -215,8 +212,7 @@ return(FALSE);
 
 /* Returns a context-dependent delimiter string to input stream so
    characters can be reread one at a time in another context */
-void undodelim(delim)
-M_WCHAR *delim;
+void undodelim(M_WCHAR *delim)
 {
 M_WCHAR *p;
 
@@ -234,8 +230,7 @@ while (TRUE)
 /* Returns a character to the input stream to read again later. Unexplained
    problems occurred using standard ungetc procedure; hence
    explicit declaration of buffer for read-ahead characters */
-void ungetachar(c)
-int c;
+void ungetachar(int c)
 {
 M_WCHAR wnl;
 
index 8f6ec8c9d6e97669d6adfea762168b1a9a6dc869..89339678dcf63d42f609d2a83da69243179849b6 100644 (file)
@@ -25,8 +25,7 @@
 /* Sparse.c has a procedure used with the tables generated by program
    CONTEXT when the sparse option is used */
 
-int m_sprscon(i, j)
-  int i, j ;
+int m_sprscon(int i, int j)
   {
     int k ;
 
index 1476ed76f3bbce5808a69ccf142a9222fa893372..eca3dc21a5eedf0860a22d4dcdb23924339ae76c 100644 (file)
@@ -117,10 +117,7 @@ void *m_lookfortrie( const M_WCHAR *p , const M_TRIE *xtrie )
     }
 
 /* Enters a string and associated data value into a trie */
-void *m_ntrtrie(p, xtrie, dataval)
-  M_WCHAR *p ;
-  M_TRIE *xtrie ;
-  void *dataval ;
+void *m_ntrtrie(M_WCHAR *p, M_TRIE *xtrie, void *dataval)
   {
     M_TRIE *currentnode ;
     void *n ;
index 0deb4cfc73b9499db3e74b1d863f4c08b7957649..4225352bfade2bb0cd00c7fb0f6d2812ac5f3b12 100644 (file)
@@ -40,9 +40,7 @@ void printval(FILE *file, void *value);
 
 /* Count the descendants of a node in order to generate declarations for
    the packed form of a trie*/
-void countdown(parent, count)
-  M_TRIE *parent ;
-  int *count ;
+void countdown(M_TRIE *parent, int *count)
   {
     M_TRIE *child ;
 
@@ -54,12 +52,8 @@ void countdown(parent, count)
 
 /* Output descendants of a node for the declaration of a trie, in packed
    or normal format*/
-void dumpnode(first, file, trieptr, count, proc)
-  LOGICAL *first ;
-  FILE *file ;
-  M_TRIE *trieptr ;
-  int *count ;
-  void (*proc) (FILE *file, void *value) ;
+void dumpnode(LOGICAL *first, FILE *file, M_TRIE *trieptr, int *count,
+              void (*proc) (FILE *file, void *value))
   {
     M_TRIE *p ;
     int savecount ;
@@ -89,9 +83,7 @@ void dumpnode(first, file, trieptr, count, proc)
 
 
 /* Most common procedure passed to dumpptrie */
-void printval(file, value)
-  FILE *file ;
-  void *value ;
+void printval(FILE *file, void *value)
   {
     fprintf(file, ", %ld", (long) value) ;
     }
index 3e49c9b99c30ba3975b658e214795675b9bc13b3..e69fd1a7880d91c77ea2010e75fc0942fa211881 100644 (file)
@@ -35,12 +35,8 @@ void m_dumptrie(FILE *file, M_TRIE *xtrie, char *extname, int *count,
   void (*proc)(void *value));
 
 /* Write the C declaration of a trie */
-void m_dumptrie(file, xtrie, extname, count, proc)
-  FILE *file ;
-  M_TRIE *xtrie ;
-  char *extname ;
-  int *count ;
-  void (*proc)(void *value) ;
+void m_dumptrie(FILE *file, M_TRIE *xtrie, char *extname, int *count,
+                void (*proc)(void *value))
   {
     int firstson ;
     M_TRIE *p ;
index 3c052e33259e2989baf1b884001233109d727ee7..faa036c9e20e1ed014fb2c218de3dfd82976f561 100644 (file)
@@ -38,13 +38,9 @@ void dumpptrie(M_TRIE *intname, char *extname, FILE *file, char *externdef, char
   void (*proc)(FILE *file, void *value));
 
 /* Write the declaration of a packed trie to the specified files */
-void dumpptrie(intname, extname, file, externdef, defdef, proc)
-  M_TRIE *intname ;
-  char *extname ;
-  FILE *file ;
-  char *externdef ;
-  char *defdef ;
-  void (*proc) (FILE *file, void *value);
+void dumpptrie(M_TRIE *intname, char *extname, FILE *file,
+               char *externdef, char *defdef,
+               void (*proc) (FILE *file, void *value))
   {
     LOGICAL first = TRUE ;
     int count = 0 ;
index 1ee74fc4bc67a2a9861178b7e2487838c7257cc9..cad82ed57fa891547bec8229857d79ef99500c96 100644 (file)
@@ -39,9 +39,7 @@ extern M_CHARTYPE m_ctarray[M_CHARSETLEN] ;
 int m_packedlook(M_PTRIE *xptrie, M_WCHAR *name);
 
 /* Look for the string NAME in the packed trie PTRIE */
-int m_packedlook(xptrie, name)
-M_PTRIE *xptrie ;
-M_WCHAR *name ;
+int m_packedlook(M_PTRIE *xptrie, M_WCHAR *name)
 {
 int current = 0 ;
 int i ;
index 69f01f6599597069cd484b1030d99ddaef247134..ad795ab305396e22b2be1486674c1597d310fb1a 100644 (file)
 extern M_CHARTYPE m_ctarray[M_CHARSETLEN] ;
 
 /* Changes the value associated with an entry in a trie. */
-void *m_resettrie(xtrie, p, value)
-  M_TRIE *xtrie ;
-  M_WCHAR *p ;
-  void *value ;
+void *m_resettrie(M_TRIE *xtrie, M_WCHAR *p, void *value)
   {
     M_TRIE *currentnode ;
 
index 34d21271a9c2b22605e119a5def4aa814935e424..8cb9181dd19f6176a79ab825e2765fd68beb7f2c 100644 (file)
@@ -31,8 +31,7 @@
 
 int m_upper(int c);
 
-int m_upper(c)
-  int c ;
+int m_upper(int c)
   {
     if (c >= 'a' && c <= 'z') c += 'A' - 'a' ;
     return(c) ;
index 6033a2567ce5a59c38830343e77eb17e12a1f0b4..a0a307fc3ba82f03f618685c4e14bcc5439f3c50 100644 (file)
@@ -33,8 +33,7 @@ int m_upper(int c);
 
 int m_upstrcmp(char *p, char *q);
 
-int m_upstrcmp(p, q)
-  char *p, *q ;
+int m_upstrcmp(char *p, char *q)
   {
     do {
       if (m_upper((int) *p) < m_upper((int) *q)) return(-1) ;
index 8fdfd0855558fea3c87fa48d1a6f2c3d454ab423..23ded0c8c956bbd76e4eb781cbb38e9974bad592 100644 (file)
@@ -238,8 +238,7 @@ return wc_stringStart;
 
 
 /* Get-wide-char procedure */
-int mb_getwc(m_ptr)
-void *m_ptr;
+int mb_getwc(void *m_ptr)
 {
 int  c;
 M_WCHAR wc;