Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ./tool/lemon.c:32:14: error: conflicting types for ‘malloc’; have ‘void *(void)’
- 32 | extern void *malloc();
- | ^~~~~~
- In file included from ./tool/lemon.c:13:
- /usr/include/stdlib.h:672:14: note: previous declaration of ‘malloc’ with type ‘void *(long unsigned int)’
- 672 | extern void *malloc (size_t __size) __THROW __attribute_malloc__
- | ^~~~~~
- ./tool/lemon.c: In function ‘Action_new’:
- ./tool/lemon.c:337:33: error: too many arguments to function ‘malloc’; expected 0, have 1
- 337 | freelist = (struct action *)malloc( sizeof(struct action)*amt );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘actioncmp’:
- ./tool/lemon.c:351:12: warning: old-style function definition [-Wold-style-definition]
- 351 | static int actioncmp(ap1,ap2)
- | ^~~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:359:5: note: in expansion of macro ‘assert’
- 359 | assert( ap1->type==REDUCE || ap1->type==RD_RESOLVED || ap1->type==CONFLICT);
- | ^~~~~~
- ./tool/lemon.c:39:6: note: declared here
- 39 | void myassert();
- | ^~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:360:5: note: in expansion of macro ‘assert’
- 360 | assert( ap2->type==REDUCE || ap2->type==RD_RESOLVED || ap2->type==CONFLICT);
- | ^~~~~~
- ./tool/lemon.c:39:6: note: declared here
- 39 | void myassert();
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘Action_sort’:
- ./tool/lemon.c:367:16: warning: old-style function definition [-Wold-style-definition]
- 367 | struct action *Action_sort(ap)
- | ^~~~~~~~~~~
- ./tool/lemon.c:369:1: error: number of arguments doesn’t match prototype
- 369 | {
- | ^
- ./tool/lemon.c:36:16: error: prototype declaration
- 36 | struct action *Action_sort();
- | ^~~~~~~~~~~
- ./tool/lemon.c:370:25: error: too many arguments to function ‘msort’; expected 0, have 3
- 370 | ap = (struct action *)msort((char *)ap,(char **)&ap->next,actioncmp);
- | ^~~~~ ~~~~~~~~~~
- ./tool/lemon.c:31:7: note: declared here
- 31 | char *msort();
- | ^~~~~
- ./tool/lemon.c: In function ‘Action_add’:
- ./tool/lemon.c:374:6: warning: old-style function definition [-Wold-style-definition]
- 374 | void Action_add(app,type,sp,arg)
- | ^~~~~~~~~~
- ./tool/lemon.c: In function ‘acttab_alloc’:
- ./tool/lemon.c:435:15: error: too many arguments to function ‘malloc’; expected 0, have 1
- 435 | acttab *p = malloc( sizeof(*p) );
- | ^~~~~~ ~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘acttab_insert’:
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:481:3: note: in expansion of macro ‘assert’
- 481 | assert( p->nLookahead>0 );
- | ^~~~~~
- ./tool/lemon.c:39:6: note: declared here
- 39 | void myassert();
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘myassert’:
- ./tool/lemon.c:560:6: warning: old-style function definition [-Wold-style-definition]
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c:563:1: error: number of arguments doesn’t match prototype
- 563 | {
- | ^
- ./tool/lemon.c:39:6: error: prototype declaration
- 39 | void myassert();
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘FindRulePrecedences’:
- ./tool/lemon.c:582:6: warning: old-style function definition [-Wold-style-definition]
- 582 | void FindRulePrecedences(xp)
- | ^~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:584:1: error: number of arguments doesn’t match prototype
- 584 | {
- | ^
- ./tool/lemon.c:47:6: error: prototype declaration
- 47 | void FindRulePrecedences();
- | ^~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c: In function ‘FindFirstSets’:
- ./tool/lemon.c:605:6: warning: old-style function definition [-Wold-style-definition]
- 605 | void FindFirstSets(lemp)
- | ^~~~~~~~~~~~~
- ./tool/lemon.c:607:1: error: number of arguments doesn’t match prototype
- 607 | {
- | ^
- ./tool/lemon.c:48:6: error: prototype declaration
- 48 | void FindFirstSets();
- | ^~~~~~~~~~~~~
- ./tool/lemon.c:643:23: error: too many arguments to function ‘SetAdd’; expected 0, have 2
- 643 | progress += SetAdd(s1->firstset,s2->index);
- | ^~~~~~ ~~~~~~~~~~~~
- ./tool/lemon.c:104:5: note: declared here
- 104 | int SetAdd(/* char*,int */); /* Add element to a set */
- | ^~~~~~
- ./tool/lemon.c:648:23: error: too many arguments to function ‘SetUnion’; expected 0, have 2
- 648 | progress += SetUnion(s1->firstset,s2->firstset);
- | ^~~~~~~~ ~~~~~~~~~~~~
- ./tool/lemon.c:105:5: note: declared here
- 105 | int SetUnion(/* char *A,char *B */); /* A <- A U B, thru element N */
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘FindStates’:
- ./tool/lemon.c:662:6: warning: old-style function definition [-Wold-style-definition]
- 662 | void FindStates(lemp)
- | ^~~~~~~~~~
- ./tool/lemon.c:664:1: error: number of arguments doesn’t match prototype
- 664 | {
- | ^
- ./tool/lemon.c:49:6: error: prototype declaration
- 49 | void FindStates();
- | ^~~~~~~~~~
- ./tool/lemon.c:672:10: error: too many arguments to function ‘Symbol_find’; expected 0, have 1
- 672 | sp = Symbol_find(lemp->start);
- | ^~~~~~~~~~~ ~~~~~~~~~~~
- ./tool/lemon.c:304:16: note: declared here
- 304 | struct symbol *Symbol_find(/* char * */);
- | ^~~~~~~~~~~
- ./tool/lemon.c:706:14: error: too many arguments to function ‘Configlist_addbasis’; expected 0, have 2
- 706 | newcfp = Configlist_addbasis(rp,0);
- | ^~~~~~~~~~~~~~~~~~~ ~~
- ./tool/lemon.c:57:16: note: declared here
- 57 | struct config *Configlist_addbasis(/* struct rule *, int */);
- | ^~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:707:5: error: too many arguments to function ‘SetAdd’; expected 0, have 2
- 707 | SetAdd(newcfp->fws,0);
- | ^~~~~~ ~~~~~~~~~~~
- ./tool/lemon.c:104:5: note: declared here
- 104 | int SetAdd(/* char*,int */); /* Add element to a set */
- | ^~~~~~
- ./tool/lemon.c:713:9: error: too many arguments to function ‘getstate’; expected 0, have 1
- 713 | (void)getstate(lemp);
- | ^~~~~~~~ ~~~~
- ./tool/lemon.c:661:23: note: declared here
- 661 | PRIVATE struct state *getstate(/* struct lemon * */); /* forward reference */
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘getstate’:
- ./tool/lemon.c:721:23: warning: old-style function definition [-Wold-style-definition]
- 721 | PRIVATE struct state *getstate(lemp)
- | ^~~~~~~~
- ./tool/lemon.c:723:1: error: number of arguments doesn’t match prototype
- 723 | {
- | ^
- ./tool/lemon.c:661:23: error: prototype declaration
- 661 | PRIVATE struct state *getstate(/* struct lemon * */); /* forward reference */
- | ^~~~~~~~
- ./tool/lemon.c:733:9: error: too many arguments to function ‘State_find’; expected 0, have 1
- 733 | stp = State_find(bp);
- | ^~~~~~~~~~ ~~
- ./tool/lemon.c:315:15: note: declared here
- 315 | struct state *State_find(/* struct config * */);
- | ^~~~~~~~~~
- ./tool/lemon.c:740:7: error: too many arguments to function ‘Plink_copy’; expected 0, have 2
- 740 | Plink_copy(&y->bplp,x->bplp);
- | ^~~~~~~~~~ ~~~~~~~~
- ./tool/lemon.c:89:6: note: declared here
- 89 | void Plink_copy(/* struct plink **, struct plink * */);
- | ^~~~~~~~~~
- ./tool/lemon.c:741:7: error: too many arguments to function ‘Plink_delete’; expected 0, have 1
- 741 | Plink_delete(x->fplp);
- | ^~~~~~~~~~~~ ~~~~~~~
- ./tool/lemon.c:90:6: note: declared here
- 90 | void Plink_delete(/* struct plink * */);
- | ^~~~~~~~~~~~
- ./tool/lemon.c:745:5: error: too many arguments to function ‘Configlist_eat’; expected 0, have 1
- 745 | Configlist_eat(cfp);
- | ^~~~~~~~~~~~~~ ~~~
- ./tool/lemon.c:63:6: note: declared here
- 63 | void Configlist_eat(/* struct config * */);
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:748:5: error: too many arguments to function ‘Configlist_closure’; expected 0, have 1
- 748 | Configlist_closure(lemp); /* Compute the configuration closure */
- | ^~~~~~~~~~~~~~~~~~ ~~~~
- ./tool/lemon.c:58:6: note: declared here
- 58 | void Configlist_closure(/* void */);
- | ^~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:757:5: error: too many arguments to function ‘State_insert’; expected 0, have 2
- 757 | State_insert(stp,stp->bp); /* Add to the state table */
- | ^~~~~~~~~~~~ ~~~
- ./tool/lemon.c:314:5: note: declared here
- 314 | int State_insert(/* struct state *, struct config * */);
- | ^~~~~~~~~~~~
- ./tool/lemon.c:758:5: error: too many arguments to function ‘buildshifts’; expected 0, have 2
- 758 | buildshifts(lemp,stp); /* Recursively compute successor states */
- | ^~~~~~~~~~~ ~~~~
- ./tool/lemon.c:720:14: note: declared here
- 720 | PRIVATE void buildshifts(/* struct lemon *, struct state * */); /* Forwd ref */
- | ^~~~~~~~~~~
- ./tool/lemon.c: In function ‘buildshifts’:
- ./tool/lemon.c:766:14: warning: old-style function definition [-Wold-style-definition]
- 766 | PRIVATE void buildshifts(lemp,stp)
- | ^~~~~~~~~~~
- ./tool/lemon.c:769:1: error: number of arguments doesn’t match prototype
- 769 | {
- | ^
- ./tool/lemon.c:720:14: error: prototype declaration
- 720 | PRIVATE void buildshifts(/* struct lemon *, struct state * */); /* Forwd ref */
- | ^~~~~~~~~~~
- ./tool/lemon.c:797:13: error: too many arguments to function ‘Configlist_addbasis’; expected 0, have 2
- 797 | new = Configlist_addbasis(bcfp->rp,bcfp->dot+1);
- | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~
- ./tool/lemon.c:57:16: note: declared here
- 57 | struct config *Configlist_addbasis(/* struct rule *, int */);
- | ^~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:798:7: error: too many arguments to function ‘Plink_add’; expected 0, have 2
- 798 | Plink_add(&new->bplp,bcfp);
- | ^~~~~~~~~ ~~~~~~~~~~
- ./tool/lemon.c:88:6: note: declared here
- 88 | void Plink_add(/* struct plink **, struct config * */);
- | ^~~~~~~~~
- ./tool/lemon.c:803:14: error: too many arguments to function ‘getstate’; expected 0, have 1
- 803 | newstp = getstate(lemp);
- | ^~~~~~~~ ~~~~
- ./tool/lemon.c:721:23: note: declared here
- 721 | PRIVATE struct state *getstate(lemp)
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘FindLinks’:
- ./tool/lemon.c:814:6: warning: old-style function definition [-Wold-style-definition]
- 814 | void FindLinks(lemp)
- | ^~~~~~~~~
- ./tool/lemon.c:816:1: error: number of arguments doesn’t match prototype
- 816 | {
- | ^
- ./tool/lemon.c:50:6: error: prototype declaration
- 50 | void FindLinks();
- | ^~~~~~~~~
- ./tool/lemon.c:839:9: error: too many arguments to function ‘Plink_add’; expected 0, have 2
- 839 | Plink_add(&other->fplp,cfp);
- | ^~~~~~~~~ ~~~~~~~~~~~~
- ./tool/lemon.c:88:6: note: declared here
- 88 | void Plink_add(/* struct plink **, struct config * */);
- | ^~~~~~~~~
- ./tool/lemon.c: In function ‘FindFollowSets’:
- ./tool/lemon.c:850:6: warning: old-style function definition [-Wold-style-definition]
- 850 | void FindFollowSets(lemp)
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:852:1: error: number of arguments doesn’t match prototype
- 852 | {
- | ^
- ./tool/lemon.c:51:6: error: prototype declaration
- 51 | void FindFollowSets();
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:871:20: error: too many arguments to function ‘SetUnion’; expected 0, have 2
- 871 | change = SetUnion(plp->cfp->fws,cfp->fws);
- | ^~~~~~~~ ~~~~~~~~~~~~~
- ./tool/lemon.c:105:5: note: declared here
- 105 | int SetUnion(/* char *A,char *B */); /* A <- A U B, thru element N */
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘FindActions’:
- ./tool/lemon.c:887:6: warning: old-style function definition [-Wold-style-definition]
- 887 | void FindActions(lemp)
- | ^~~~~~~~~~~
- ./tool/lemon.c:889:1: error: number of arguments doesn’t match prototype
- 889 | {
- | ^
- ./tool/lemon.c:52:6: error: prototype declaration
- 52 | void FindActions();
- | ^~~~~~~~~~~
- ./tool/lemon.c:917:10: error: too many arguments to function ‘Symbol_find’; expected 0, have 1
- 917 | sp = Symbol_find(lemp->start);
- | ^~~~~~~~~~~ ~~~~~~~~~~~
- ./tool/lemon.c:304:16: note: declared here
- 304 | struct symbol *Symbol_find(/* char * */);
- | ^~~~~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:932:5: note: in expansion of macro ‘assert’
- 932 | assert( stp->ap );
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c:933:15: error: too many arguments to function ‘Action_sort’; expected 0, have 1
- 933 | stp->ap = Action_sort(stp->ap);
- | ^~~~~~~~~~~ ~~~~~~~
- ./tool/lemon.c:367:16: note: declared here
- 367 | struct action *Action_sort(ap)
- | ^~~~~~~~~~~
- ./tool/lemon.c:938:29: error: too many arguments to function ‘resolve_conflict’; expected 0, have 3
- 938 | lemp->nconflict += resolve_conflict(ap,nap,lemp->errsym);
- | ^~~~~~~~~~~~~~~~ ~~
- ./tool/lemon.c:883:12: note: declared here
- 883 | static int resolve_conflict();
- | ^~~~~~~~~~~~~~~~
- ./tool/lemon.c: In function ‘resolve_conflict’:
- ./tool/lemon.c:971:12: warning: old-style function definition [-Wold-style-definition]
- 971 | static int resolve_conflict(apx,apy,errsym)
- | ^~~~~~~~~~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:978:3: note: in expansion of macro ‘assert’
- 978 | assert( apx->sp==apy->sp ); /* Otherwise there would be no conflict */
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:995:7: note: in expansion of macro ‘assert’
- 995 | assert( spx->prec==spy->prec && spx->assoc==NONE );
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:1012:5: note: in expansion of macro ‘assert’
- 1012 | assert(
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘newconfig’:
- ./tool/lemon.c:1044:33: error: too many arguments to function ‘malloc’; expected 0, have 1
- 1044 | freelist = (struct config *)malloc( sizeof(struct config)*amt );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘deleteconfig’:
- ./tool/lemon.c:1058:14: warning: old-style function definition [-Wold-style-definition]
- 1058 | PRIVATE void deleteconfig(old)
- | ^~~~~~~~~~~~
- ./tool/lemon.c: In function ‘Configlist_reset’:
- ./tool/lemon.c:1081:3: error: too many arguments to function ‘Configtable_clear’; expected 0, have 1
- 1081 | Configtable_clear(0);
- | ^~~~~~~~~~~~~~~~~ ~
- ./tool/lemon.c:323:6: note: declared here
- 323 | void Configtable_clear(/* int(*)(struct config *) */);
- | ^~~~~~~~~~~~~~~~~
- ./tool/lemon.c: In function ‘Configlist_add’:
- ./tool/lemon.c:1086:16: warning: old-style function definition [-Wold-style-definition]
- 1086 | struct config *Configlist_add(rp,dot)
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:1089:1: error: number of arguments doesn’t match prototype
- 1089 | {
- | ^
- ./tool/lemon.c:56:16: error: prototype declaration
- 56 | struct config *Configlist_add(/* struct rule *, int */);
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:1092:3: note: in expansion of macro ‘assert’
- 1092 | assert( currentend!=0 );
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c:1095:9: error: too many arguments to function ‘Configtable_find’; expected 0, have 1
- 1095 | cfp = Configtable_find(&model);
- | ^~~~~~~~~~~~~~~~ ~~~~~~
- ./tool/lemon.c:322:16: note: declared here
- 322 | struct config *Configtable_find(/* struct config * */);
- | ^~~~~~~~~~~~~~~~
- ./tool/lemon.c:1107:5: error: too many arguments to function ‘Configtable_insert’; expected 0, have 1
- 1107 | Configtable_insert(cfp);
- | ^~~~~~~~~~~~~~~~~~ ~~~
- ./tool/lemon.c:321:5: note: declared here
- 321 | int Configtable_insert(/* struct config * */);
- | ^~~~~~~~~~~~~~~~~~
- ./tool/lemon.c: In function ‘Configlist_addbasis’:
- ./tool/lemon.c:1113:16: warning: old-style function definition [-Wold-style-definition]
- 1113 | struct config *Configlist_addbasis(rp,dot)
- | ^~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:1116:1: error: number of arguments doesn’t match prototype
- 1116 | {
- | ^
- ./tool/lemon.c:57:16: error: prototype declaration
- 57 | struct config *Configlist_addbasis(/* struct rule *, int */);
- | ^~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:1119:3: note: in expansion of macro ‘assert’
- 1119 | assert( basisend!=0 );
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:1120:3: note: in expansion of macro ‘assert’
- 1120 | assert( currentend!=0 );
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c:1123:9: error: too many arguments to function ‘Configtable_find’; expected 0, have 1
- 1123 | cfp = Configtable_find(&model);
- | ^~~~~~~~~~~~~~~~ ~~~~~~
- ./tool/lemon.c:322:16: note: declared here
- 322 | struct config *Configtable_find(/* struct config * */);
- | ^~~~~~~~~~~~~~~~
- ./tool/lemon.c:1137:5: error: too many arguments to function ‘Configtable_insert’; expected 0, have 1
- 1137 | Configtable_insert(cfp);
- | ^~~~~~~~~~~~~~~~~~ ~~~
- ./tool/lemon.c:321:5: note: declared here
- 321 | int Configtable_insert(/* struct config * */);
- | ^~~~~~~~~~~~~~~~~~
- ./tool/lemon.c: In function ‘Configlist_closure’:
- ./tool/lemon.c:1143:6: warning: old-style function definition [-Wold-style-definition]
- 1143 | void Configlist_closure(lemp)
- | ^~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:1145:1: error: number of arguments doesn’t match prototype
- 1145 | {
- | ^
- ./tool/lemon.c:58:6: error: prototype declaration
- 58 | void Configlist_closure(/* void */);
- | ^~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:1151:3: note: in expansion of macro ‘assert’
- 1151 | assert( currentend!=0 );
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c:1164:18: error: too many arguments to function ‘Configlist_add’; expected 0, have 2
- 1164 | newcfp = Configlist_add(newrp,0);
- | ^~~~~~~~~~~~~~ ~~~~~
- ./tool/lemon.c:1086:16: note: declared here
- 1086 | struct config *Configlist_add(rp,dot)
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:1168:13: error: too many arguments to function ‘SetAdd’; expected 0, have 2
- 1168 | SetAdd(newcfp->fws,xsp->index);
- | ^~~~~~ ~~~~~~~~~~~
- ./tool/lemon.c:104:5: note: declared here
- 104 | int SetAdd(/* char*,int */); /* Add element to a set */
- | ^~~~~~
- ./tool/lemon.c:1171:13: error: too many arguments to function ‘SetUnion’; expected 0, have 2
- 1171 | SetUnion(newcfp->fws,xsp->firstset);
- | ^~~~~~~~ ~~~~~~~~~~~
- ./tool/lemon.c:105:5: note: declared here
- 105 | int SetUnion(/* char *A,char *B */); /* A <- A U B, thru element N */
- | ^~~~~~~~
- ./tool/lemon.c:1175:27: error: too many arguments to function ‘Plink_add’; expected 0, have 2
- 1175 | if( i==rp->nrhs ) Plink_add(&cfp->fplp,newcfp);
- | ^~~~~~~~~ ~~~~~~~~~~
- ./tool/lemon.c:88:6: note: declared here
- 88 | void Plink_add(/* struct plink **, struct config * */);
- | ^~~~~~~~~
- ./tool/lemon.c: In function ‘Configlist_sort’:
- ./tool/lemon.c:1184:30: error: too many arguments to function ‘msort’; expected 0, have 3
- 1184 | current = (struct config *)msort((char *)current,(char **)&(current->next),Configcmp);
- | ^~~~~ ~~~~~~~~~~~~~~~
- ./tool/lemon.c:31:7: note: declared here
- 31 | char *msort();
- | ^~~~~
- ./tool/lemon.c: In function ‘Configlist_sortbasis’:
- ./tool/lemon.c:1191:28: error: too many arguments to function ‘msort’; expected 0, have 3
- 1191 | basis = (struct config *)msort((char *)current,(char **)&(current->bp),Configcmp);
- | ^~~~~ ~~~~~~~~~~~~~~~
- ./tool/lemon.c:31:7: note: declared here
- 31 | char *msort();
- | ^~~~~
- ./tool/lemon.c: In function ‘Configlist_eat’:
- ./tool/lemon.c:1217:6: warning: old-style function definition [-Wold-style-definition]
- 1217 | void Configlist_eat(cfp)
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:1219:1: error: number of arguments doesn’t match prototype
- 1219 | {
- | ^
- ./tool/lemon.c:63:6: error: prototype declaration
- 63 | void Configlist_eat(/* struct config * */);
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:1223:5: note: in expansion of macro ‘assert’
- 1223 | assert( cfp->fplp==0 );
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:1224:5: note: in expansion of macro ‘assert’
- 1224 | assert( cfp->bplp==0 );
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c:1225:20: error: too many arguments to function ‘SetFree’; expected 0, have 1
- 1225 | if( cfp->fws ) SetFree(cfp->fws);
- | ^~~~~~~ ~~~~~~~~
- ./tool/lemon.c:102:7: note: declared here
- 102 | void SetFree(/* char* */); /* Deallocate a set */
- | ^~~~~~~
- ./tool/lemon.c: In function ‘findbreak’:
- ./tool/lemon.c:1238:12: warning: old-style function definition [-Wold-style-definition]
- 1238 | static int findbreak(msg,min,max)
- | ^~~~~~~~~
- ./tool/lemon.c: In function ‘main’:
- ./tool/lemon.c:1317:5: warning: old-style function definition [-Wold-style-definition]
- 1317 | int main(argc,argv)
- | ^~~~
- ./tool/lemon.c:1341:3: error: too many arguments to function ‘OptInit’; expected 0, have 3
- 1341 | OptInit(argv,options,stderr);
- | ^~~~~~~ ~~~~
- ./tool/lemon.c:77:8: note: declared here
- 77 | int OptInit(/* char**,struct s_options*,FILE* */);
- | ^~~~~~~
- ./tool/lemon.c:1357:18: error: too many arguments to function ‘OptArg’; expected 0, have 1
- 1357 | lem.filename = OptArg(0);
- | ^~~~~~ ~
- ./tool/lemon.c:79:8: note: declared here
- 79 | char *OptArg(/* int */);
- | ^~~~~~
- ./tool/lemon.c:1368:3: error: too many arguments to function ‘Symbol_new’; expected 0, have 1
- 1368 | Symbol_new("$");
- | ^~~~~~~~~~ ~~~
- ./tool/lemon.c:300:16: note: declared here
- 300 | struct symbol *Symbol_new();
- | ^~~~~~~~~~
- ./tool/lemon.c:1369:16: error: too many arguments to function ‘Symbol_new’; expected 0, have 1
- 1369 | lem.errsym = Symbol_new("error");
- | ^~~~~~~~~~ ~~~~~~~
- ./tool/lemon.c:300:16: note: declared here
- 300 | struct symbol *Symbol_new();
- | ^~~~~~~~~~
- ./tool/lemon.c:1372:3: error: too many arguments to function ‘Parse’; expected 0, have 1
- 1372 | Parse(&lem);
- | ^~~~~ ~~~~
- ./tool/lemon.c:84:6: note: declared here
- 84 | void Parse(/* struct lemon *lemp */);
- | ^~~~~
- ./tool/lemon.c:1381:3: error: too many arguments to function ‘Symbol_new’; expected 0, have 1
- 1381 | Symbol_new("{default}");
- | ^~~~~~~~~~ ~~~~~~~~~~~
- ./tool/lemon.c:300:16: note: declared here
- 300 | struct symbol *Symbol_new();
- | ^~~~~~~~~~
- ./tool/lemon.c:1385:9: error: passing argument 4 of ‘qsort’ from incompatible pointer type [-Wincompatible-pointer-types]
- 1385 | (int(*)())Symbolcmpp);
- | ^~~~~~~~~~~~~~~~~~~~
- | |
- | int (*)(void)
- /usr/include/stdlib.h:971:34: note: expected ‘__compar_fn_t’ {aka ‘int (*)(const void *, const void *)’} but argument is of type ‘int (*)(void)’
- 971 | __compar_fn_t __compar) __nonnull ((1, 4));
- | ~~~~~~~~~~~~~~^~~~~~~~
- ./tool/lemon.c:301:5: note: ‘Symbolcmpp’ declared here
- 301 | int Symbolcmpp(/* struct symbol **, struct symbol ** */);
- | ^~~~~~~~~~
- /usr/include/stdlib.h:948:15: note: ‘__compar_fn_t’ declared here
- 948 | typedef int (*__compar_fn_t) (const void *, const void *);
- | ^~~~~~~~~~~~~
- ./tool/lemon.c:1392:5: error: too many arguments to function ‘Reprint’; expected 0, have 1
- 1392 | Reprint(&lem);
- | ^~~~~~~ ~~~~
- ./tool/lemon.c:93:6: note: declared here
- 93 | void Reprint(/* struct lemon * */);
- | ^~~~~~~
- ./tool/lemon.c:1395:5: error: too many arguments to function ‘SetSize’; expected 0, have 1
- 1395 | SetSize(lem.nterminal);
- | ^~~~~~~ ~~~~~~~~~~~~~
- ./tool/lemon.c:100:7: note: declared here
- 100 | void SetSize(/* int N */); /* All sets will be of size N */
- | ^~~~~~~
- ./tool/lemon.c:1398:5: error: too many arguments to function ‘FindRulePrecedences’; expected 0, have 1
- 1398 | FindRulePrecedences(&lem);
- | ^~~~~~~~~~~~~~~~~~~ ~~~~
- ./tool/lemon.c:582:6: note: declared here
- 582 | void FindRulePrecedences(xp)
- | ^~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:1402:5: error: too many arguments to function ‘FindFirstSets’; expected 0, have 1
- 1402 | FindFirstSets(&lem);
- | ^~~~~~~~~~~~~ ~~~~
- ./tool/lemon.c:605:6: note: declared here
- 605 | void FindFirstSets(lemp)
- | ^~~~~~~~~~~~~
- ./tool/lemon.c:1407:5: error: too many arguments to function ‘FindStates’; expected 0, have 1
- 1407 | FindStates(&lem);
- | ^~~~~~~~~~ ~~~~
- ./tool/lemon.c:662:6: note: declared here
- 662 | void FindStates(lemp)
- | ^~~~~~~~~~
- ./tool/lemon.c:1411:5: error: too many arguments to function ‘FindLinks’; expected 0, have 1
- 1411 | FindLinks(&lem);
- | ^~~~~~~~~ ~~~~
- ./tool/lemon.c:814:6: note: declared here
- 814 | void FindLinks(lemp)
- | ^~~~~~~~~
- ./tool/lemon.c:1414:5: error: too many arguments to function ‘FindFollowSets’; expected 0, have 1
- 1414 | FindFollowSets(&lem);
- | ^~~~~~~~~~~~~~ ~~~~
- ./tool/lemon.c:850:6: note: declared here
- 850 | void FindFollowSets(lemp)
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:1417:5: error: too many arguments to function ‘FindActions’; expected 0, have 1
- 1417 | FindActions(&lem);
- | ^~~~~~~~~~~ ~~~~
- ./tool/lemon.c:887:6: note: declared here
- 887 | void FindActions(lemp)
- | ^~~~~~~~~~~
- ./tool/lemon.c:1420:23: error: too many arguments to function ‘CompressTables’; expected 0, have 1
- 1420 | if( compress==0 ) CompressTables(&lem);
- | ^~~~~~~~~~~~~~ ~~~~
- ./tool/lemon.c:97:6: note: declared here
- 97 | void CompressTables(/* struct lemon * */);
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:1423:18: error: too many arguments to function ‘ReportOutput’; expected 0, have 1
- 1423 | if( !quiet ) ReportOutput(&lem);
- | ^~~~~~~~~~~~ ~~~~
- ./tool/lemon.c:94:6: note: declared here
- 94 | void ReportOutput(/* struct lemon * */);
- | ^~~~~~~~~~~~
- ./tool/lemon.c:1426:5: error: too many arguments to function ‘ReportTable’; expected 0, have 2
- 1426 | ReportTable(&lem, mhflag);
- | ^~~~~~~~~~~ ~~~~
- ./tool/lemon.c:95:6: note: declared here
- 95 | void ReportTable(/* struct lemon * */);
- | ^~~~~~~~~~~
- ./tool/lemon.c:1431:19: error: too many arguments to function ‘ReportHeader’; expected 0, have 1
- 1431 | if( !mhflag ) ReportHeader(&lem);
- | ^~~~~~~~~~~~ ~~~~
- ./tool/lemon.c:96:6: note: declared here
- 96 | void ReportHeader(/* struct lemon * */);
- | ^~~~~~~~~~~~
- ./tool/lemon.c: In function ‘merge’:
- ./tool/lemon.c:1489:14: warning: old-style function definition [-Wold-style-definition]
- 1489 | static char *merge(a,b,cmp,offset)
- | ^~~~~
- ./tool/lemon.c:1502:10: error: too many arguments to function ‘cmp’; expected 0, have 2
- 1502 | if( (*cmp)(a,b)<0 ){
- | ~^~~~~ ~
- ./tool/lemon.c:1511:12: error: too many arguments to function ‘cmp’; expected 0, have 2
- 1511 | if( (*cmp)(a,b)<0 ){
- | ~^~~~~ ~
- ./tool/lemon.c: In function ‘msort’:
- ./tool/lemon.c:1541:7: warning: old-style function definition [-Wold-style-definition]
- 1541 | char *msort(list,next,cmp)
- | ^~~~~
- ./tool/lemon.c:1545:1: error: number of arguments doesn’t match prototype
- 1545 | {
- | ^
- ./tool/lemon.c:31:7: error: prototype declaration
- 31 | char *msort();
- | ^~~~~
- ./tool/lemon.c: In function ‘errline’:
- ./tool/lemon.c:1577:13: warning: old-style function definition [-Wold-style-definition]
- 1577 | static void errline(n,k,err)
- | ^~~~~~~
- ./tool/lemon.c: In function ‘argindex’:
- ./tool/lemon.c:1603:12: warning: old-style function definition [-Wold-style-definition]
- 1603 | static int argindex(n)
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘handleflags’:
- ./tool/lemon.c:1625:12: warning: old-style function definition [-Wold-style-definition]
- 1625 | static int handleflags(i,err)
- | ^~~~~~~~~~~
- ./tool/lemon.c:1645:6: error: too many arguments to function ‘(void (*)(void))(op + (sizetype)((long unsigned int)j * 32))->arg’; expected 0, have 1
- 1645 | (*(void(*)())(op[j].arg))(v);
- | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~
- ./tool/lemon.c: In function ‘handleswitch’:
- ./tool/lemon.c:1659:12: warning: old-style function definition [-Wold-style-definition]
- 1659 | static int handleswitch(i,err)
- | ^~~~~~~~~~~~
- ./tool/lemon.c:1727:10: error: too many arguments to function ‘(void (*)(void))(op + (sizetype)((long unsigned int)j * 32))->arg’; expected 0, have 1
- 1727 | (*(void(*)())(op[j].arg))(dv);
- | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~~
- ./tool/lemon.c:1733:10: error: too many arguments to function ‘(void (*)(void))(op + (sizetype)((long unsigned int)j * 32))->arg’; expected 0, have 1
- 1733 | (*(void(*)())(op[j].arg))((int)lv);
- | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~
- ./tool/lemon.c:1739:10: error: too many arguments to function ‘(void (*)(void))(op + (sizetype)((long unsigned int)j * 32))->arg’; expected 0, have 1
- 1739 | (*(void(*)())(op[j].arg))(sv);
- | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~~
- ./tool/lemon.c: In function ‘OptInit’:
- ./tool/lemon.c:1746:5: warning: old-style function definition [-Wold-style-definition]
- 1746 | int OptInit(a,o,err)
- | ^~~~~~~
- ./tool/lemon.c:1750:1: error: number of arguments doesn’t match prototype
- 1750 | {
- | ^
- ./tool/lemon.c:77:8: error: prototype declaration
- 77 | int OptInit(/* char**,struct s_options*,FILE* */);
- | ^~~~~~~
- ./tool/lemon.c: In function ‘OptArg’:
- ./tool/lemon.c:1786:7: warning: old-style function definition [-Wold-style-definition]
- 1786 | char *OptArg(n)
- | ^~~~~~
- ./tool/lemon.c:1788:1: error: number of arguments doesn’t match prototype
- 1788 | {
- | ^
- ./tool/lemon.c:79:8: error: prototype declaration
- 79 | char *OptArg(/* int */);
- | ^~~~~~
- ./tool/lemon.c: In function ‘OptErr’:
- ./tool/lemon.c:1794:6: warning: old-style function definition [-Wold-style-definition]
- 1794 | void OptErr(n)
- | ^~~~~~
- ./tool/lemon.c:1796:1: error: number of arguments doesn’t match prototype
- 1796 | {
- | ^
- ./tool/lemon.c:80:8: error: prototype declaration
- 80 | void OptErr(/* int */);
- | ^~~~~~
- ./tool/lemon.c: In function ‘parseonetoken’:
- ./tool/lemon.c:1901:13: warning: old-style function definition [-Wold-style-definition]
- 1901 | static void parseonetoken(psp)
- | ^~~~~~~~~~~~~
- ./tool/lemon.c:1905:7: error: too many arguments to function ‘Strsafe’; expected 0, have 1
- 1905 | x = Strsafe(psp->tokenstart); /* Save the token permanently */
- | ^~~~~~~ ~~~~~~~~~~~~~~~
- ./tool/lemon.c:292:7: note: declared here
- 292 | char *Strsafe();
- | ^~~~~~~
- ./tool/lemon.c:1921:20: error: too many arguments to function ‘Symbol_new’; expected 0, have 1
- 1921 | psp->lhs = Symbol_new(x);
- | ^~~~~~~~~~ ~
- ./tool/lemon.c:300:16: note: declared here
- 300 | struct symbol *Symbol_new();
- | ^~~~~~~~~~
- ./tool/lemon.c:1964:34: error: too many arguments to function ‘Symbol_new’; expected 0, have 1
- 1964 | psp->prevrule->precsym = Symbol_new(x);
- | ^~~~~~~~~~ ~
- ./tool/lemon.c:300:16: note: declared here
- 300 | struct symbol *Symbol_new();
- | ^~~~~~~~~~
- ./tool/lemon.c:2025:29: error: too many arguments to function ‘malloc’; expected 0, have 1
- 2025 | rp = (struct rule *)malloc( sizeof(struct rule) +
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~
- 2026 | sizeof(struct symbol*)*psp->nrhs + sizeof(char*)*psp->nrhs );
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c:2067:33: error: too many arguments to function ‘Symbol_new’; expected 0, have 1
- 2067 | psp->rhs[psp->nrhs] = Symbol_new(x);
- | ^~~~~~~~~~ ~
- ./tool/lemon.c:300:16: note: declared here
- 300 | struct symbol *Symbol_new();
- | ^~~~~~~~~~
- ./tool/lemon.c:2185:29: error: too many arguments to function ‘Symbol_new’; expected 0, have 1
- 2185 | struct symbol *sp = Symbol_new(x);
- | ^~~~~~~~~~ ~
- ./tool/lemon.c:300:16: note: declared here
- 300 | struct symbol *Symbol_new();
- | ^~~~~~~~~~
- ./tool/lemon.c:2198:29: error: too many arguments to function ‘Symbol_new’; expected 0, have 1
- 2198 | struct symbol *sp = Symbol_new(x);
- | ^~~~~~~~~~ ~
- ./tool/lemon.c:300:16: note: declared here
- 300 | struct symbol *Symbol_new();
- | ^~~~~~~~~~
- ./tool/lemon.c:2209:14: error: too many arguments to function ‘Symbol_new’; expected 0, have 1
- 2209 | sp = Symbol_new(x);
- | ^~~~~~~~~~ ~
- ./tool/lemon.c:300:16: note: declared here
- 300 | struct symbol *Symbol_new();
- | ^~~~~~~~~~
- ./tool/lemon.c:2252:29: error: too many arguments to function ‘Symbol_new’; expected 0, have 1
- 2252 | struct symbol *sp = Symbol_new(x);
- | ^~~~~~~~~~ ~
- ./tool/lemon.c:300:16: note: declared here
- 300 | struct symbol *Symbol_new();
- | ^~~~~~~~~~
- ./tool/lemon.c: In function ‘Parse’:
- ./tool/lemon.c:2280:6: warning: old-style function definition [-Wold-style-definition]
- 2280 | void Parse(gp)
- | ^~~~~
- ./tool/lemon.c:2282:1: error: number of arguments doesn’t match prototype
- 2282 | {
- | ^
- ./tool/lemon.c:84:6: error: prototype declaration
- 84 | void Parse(/* struct lemon *lemp */);
- | ^~~~~
- ./tool/lemon.c:2307:21: error: too many arguments to function ‘malloc’; expected 0, have 1
- 2307 | filebuf = (char *)malloc( filesize+1 );
- | ^~~~~~ ~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘Plink_new’:
- ./tool/lemon.c:2432:38: error: too many arguments to function ‘malloc’; expected 0, have 1
- 2432 | plink_freelist = (struct plink *)malloc( sizeof(struct plink)*amt );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘Plink_add’:
- ./tool/lemon.c:2447:6: warning: old-style function definition [-Wold-style-definition]
- 2447 | void Plink_add(plpp,cfp)
- | ^~~~~~~~~
- ./tool/lemon.c:2450:1: error: number of arguments doesn’t match prototype
- 2450 | {
- | ^
- ./tool/lemon.c:88:6: error: prototype declaration
- 88 | void Plink_add(/* struct plink **, struct config * */);
- | ^~~~~~~~~
- ./tool/lemon.c: In function ‘Plink_copy’:
- ./tool/lemon.c:2459:6: warning: old-style function definition [-Wold-style-definition]
- 2459 | void Plink_copy(to,from)
- | ^~~~~~~~~~
- ./tool/lemon.c:2462:1: error: number of arguments doesn’t match prototype
- 2462 | {
- | ^
- ./tool/lemon.c:89:6: error: prototype declaration
- 89 | void Plink_copy(/* struct plink **, struct plink * */);
- | ^~~~~~~~~~
- ./tool/lemon.c: In function ‘Plink_delete’:
- ./tool/lemon.c:2473:6: warning: old-style function definition [-Wold-style-definition]
- 2473 | void Plink_delete(plp)
- | ^~~~~~~~~~~~
- ./tool/lemon.c:2475:1: error: number of arguments doesn’t match prototype
- 2475 | {
- | ^
- ./tool/lemon.c:90:6: error: prototype declaration
- 90 | void Plink_delete(/* struct plink * */);
- | ^~~~~~~~~~~~
- ./tool/lemon.c: In function ‘file_makename’:
- ./tool/lemon.c:2494:15: warning: old-style function definition [-Wold-style-definition]
- 2494 | PRIVATE char *file_makename(lemp,suffix)
- | ^~~~~~~~~~~~~
- ./tool/lemon.c:2501:10: error: too many arguments to function ‘malloc’; expected 0, have 1
- 2501 | name = malloc( strlen(lemp->filename) + strlen(suffix) + 5 );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘file_open’:
- ./tool/lemon.c:2516:15: warning: old-style function definition [-Wold-style-definition]
- 2516 | PRIVATE FILE *file_open(lemp,suffix,mode)
- | ^~~~~~~~~
- ./tool/lemon.c: In function ‘Reprint’:
- ./tool/lemon.c:2536:6: warning: old-style function definition [-Wold-style-definition]
- 2536 | void Reprint(lemp)
- | ^~~~~~~
- ./tool/lemon.c:2538:1: error: number of arguments doesn’t match prototype
- 2538 | {
- | ^
- ./tool/lemon.c:93:6: error: prototype declaration
- 93 | void Reprint(/* struct lemon * */);
- | ^~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:2556:7: note: in expansion of macro ‘assert’
- 2556 | assert( sp->index==j );
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘ConfigPrint’:
- ./tool/lemon.c:2576:6: warning: old-style function definition [-Wold-style-definition]
- 2576 | void ConfigPrint(fp,cfp)
- | ^~~~~~~~~~~
- ./tool/lemon.c: In function ‘ReportOutput’:
- ./tool/lemon.c:2659:6: warning: old-style function definition [-Wold-style-definition]
- 2659 | void ReportOutput(lemp)
- | ^~~~~~~~~~~~
- ./tool/lemon.c:2661:1: error: number of arguments doesn’t match prototype
- 2661 | {
- | ^
- ./tool/lemon.c:94:6: error: prototype declaration
- 94 | void ReportOutput(/* struct lemon * */);
- | ^~~~~~~~~~~~
- ./tool/lemon.c: In function ‘pathsearch’:
- ./tool/lemon.c:2706:15: warning: old-style function definition [-Wold-style-definition]
- 2706 | PRIVATE char *pathsearch(argv0,name,modemask)
- | ^~~~~~~~~~
- ./tool/lemon.c:2714:14: error: conflicting types for ‘access’; have ‘int(void)’
- 2714 | extern int access();
- | ^~~~~~
- In file included from ./tool/lemon.c:14:
- /usr/include/unistd.h:287:12: note: previous declaration of ‘access’ with type ‘int(const char *, int)’
- 287 | extern int access (const char *__name, int __type) __THROW __nonnull ((1));
- | ^~~~~~
- ./tool/lemon.c:2724:20: error: too many arguments to function ‘malloc’; expected 0, have 1
- 2724 | path = (char *)malloc( strlen(argv0) + strlen(name) + 2 );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c:2728:18: error: conflicting types for ‘getenv’; have ‘char *(void)’
- 2728 | extern char *getenv();
- | ^~~~~~
- /usr/include/stdlib.h:773:14: note: previous declaration of ‘getenv’ with type ‘char *(const char *)’
- 773 | extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur;
- | ^~~~~~
- ./tool/lemon.c:2729:16: error: too many arguments to function ‘getenv’; expected 0, have 1
- 2729 | pathlist = getenv("PATH");
- | ^~~~~~ ~~~~~~
- ./tool/lemon.c:2728:18: note: declared here
- 2728 | extern char *getenv();
- | ^~~~~~
- ./tool/lemon.c:2731:20: error: too many arguments to function ‘malloc’; expected 0, have 1
- 2731 | path = (char *)malloc( strlen(pathlist)+strlen(name)+2 );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c:2742:13: error: too many arguments to function ‘access’; expected 0, have 2
- 2742 | if( access(path,modemask)==0 ) break;
- | ^~~~~~ ~~~~
- ./tool/lemon.c:2714:14: note: declared here
- 2714 | extern int access();
- | ^~~~~~
- ./tool/lemon.c: In function ‘compute_action’:
- ./tool/lemon.c:2753:13: warning: old-style function definition [-Wold-style-definition]
- 2753 | PRIVATE int compute_action(lemp,ap)
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c: In function ‘tplt_xfer’:
- ./tool/lemon.c:2778:14: warning: old-style function definition [-Wold-style-definition]
- 2778 | PRIVATE void tplt_xfer(name,in,out,lineno)
- | ^~~~~~~~~
- ./tool/lemon.c: In function ‘tplt_open’:
- ./tool/lemon.c:2807:15: warning: old-style function definition [-Wold-style-definition]
- 2807 | PRIVATE FILE *tplt_open(lemp)
- | ^~~~~~~~~
- ./tool/lemon.c: In function ‘tplt_print’:
- ./tool/lemon.c:2845:14: warning: old-style function definition [-Wold-style-definition]
- 2845 | PRIVATE void tplt_print(out,lemp,str,strln,lineno)
- | ^~~~~~~~~~
- ./tool/lemon.c: In function ‘emit_destructor_code’:
- ./tool/lemon.c:2867:6: warning: old-style function definition [-Wold-style-definition]
- 2867 | void emit_destructor_code(out,sp,lemp,lineno)
- | ^~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:2888:4: note: in expansion of macro ‘assert’
- 2888 | assert( 0 ); /* Cannot happen */
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘has_destructor’:
- ./tool/lemon.c:2907:5: warning: old-style function definition [-Wold-style-definition]
- 2907 | int has_destructor(sp, lemp)
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c: In function ‘emit_code’:
- ./tool/lemon.c:2924:14: warning: old-style function definition [-Wold-style-definition]
- 2924 | PRIVATE void emit_code(out,rp,lemp,lineno)
- | ^~~~~~~~~
- ./tool/lemon.c: In function ‘print_stack_union’:
- ./tool/lemon.c:3008:6: warning: old-style function definition [-Wold-style-definition]
- 3008 | void print_stack_union(out,lemp,plineno,mhflag)
- | ^~~~~~~~~~~~~~~~~
- ./tool/lemon.c:3025:19: error: too many arguments to function ‘malloc’; expected 0, have 1
- 3025 | types = (char**)malloc( arraysize * sizeof(char*) );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c:3038:18: error: too many arguments to function ‘malloc’; expected 0, have 1
- 3038 | stddt = (char*)malloc( maxdtlength*2 + 1 );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c:3083:28: error: too many arguments to function ‘malloc’; expected 0, have 1
- 3083 | types[hash] = (char*)malloc( strlen(stddt)+1 );
- | ^~~~~~ ~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘ReportTable’:
- ./tool/lemon.c:3157:6: warning: old-style function definition [-Wold-style-definition]
- 3157 | void ReportTable(lemp, mhflag)
- | ^~~~~~~~~~~
- ./tool/lemon.c:3160:1: error: number of arguments doesn’t match prototype
- 3160 | {
- | ^
- ./tool/lemon.c:95:6: error: prototype declaration
- 95 | void ReportTable(/* struct lemon * */);
- | ^~~~~~~~~~~
- ./tool/lemon.c:3273:8: error: too many arguments to function ‘malloc’; expected 0, have 1
- 3273 | ax = malloc( sizeof(ax[0])*lemp->nstate*2 );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:3463:5: note: in expansion of macro ‘assert’
- 3463 | assert( rp->index==i );
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘ReportHeader’:
- ./tool/lemon.c:3552:6: warning: old-style function definition [-Wold-style-definition]
- 3552 | void ReportHeader(lemp)
- | ^~~~~~~~~~~~
- ./tool/lemon.c:3554:1: error: number of arguments doesn’t match prototype
- 3554 | {
- | ^
- ./tool/lemon.c:96:6: error: prototype declaration
- 96 | void ReportHeader(/* struct lemon * */);
- | ^~~~~~~~~~~~
- ./tool/lemon.c: In function ‘CompressTables’:
- ./tool/lemon.c:3591:6: warning: old-style function definition [-Wold-style-definition]
- 3591 | void CompressTables(lemp)
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:3593:1: error: number of arguments doesn’t match prototype
- 3593 | {
- | ^
- ./tool/lemon.c:97:6: error: prototype declaration
- 97 | void CompressTables(/* struct lemon * */);
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:41:29: error: too many arguments to function ‘myassert’; expected 0, have 2
- 41 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__)
- | ^~~~~~~~
- ./tool/lemon.c:3631:5: note: in expansion of macro ‘assert’
- 3631 | assert( ap );
- | ^~~~~~
- ./tool/lemon.c:560:6: note: declared here
- 560 | void myassert(file,line)
- | ^~~~~~~~
- ./tool/lemon.c:3632:14: error: too many arguments to function ‘Symbol_new’; expected 0, have 1
- 3632 | ap->sp = Symbol_new("{default}");
- | ^~~~~~~~~~ ~~~~~~~~~~~
- ./tool/lemon.c:300:16: note: declared here
- 300 | struct symbol *Symbol_new();
- | ^~~~~~~~~~
- ./tool/lemon.c:3636:15: error: too many arguments to function ‘Action_sort’; expected 0, have 1
- 3636 | stp->ap = Action_sort(stp->ap);
- | ^~~~~~~~~~~ ~~~~~~~
- ./tool/lemon.c:367:16: note: declared here
- 367 | struct action *Action_sort(ap)
- | ^~~~~~~~~~~
- ./tool/lemon.c: In function ‘SetSize’:
- ./tool/lemon.c:3648:6: warning: old-style function definition [-Wold-style-definition]
- 3648 | void SetSize(n)
- | ^~~~~~~
- ./tool/lemon.c:3650:1: error: number of arguments doesn’t match prototype
- 3650 | {
- | ^
- ./tool/lemon.c:100:7: error: prototype declaration
- 100 | void SetSize(/* int N */); /* All sets will be of size N */
- | ^~~~~~~
- ./tool/lemon.c: In function ‘SetNew’:
- ./tool/lemon.c:3658:14: error: too many arguments to function ‘malloc’; expected 0, have 1
- 3658 | s = (char*)malloc( size );
- | ^~~~~~ ~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘SetFree’:
- ./tool/lemon.c:3668:6: warning: old-style function definition [-Wold-style-definition]
- 3668 | void SetFree(s)
- | ^~~~~~~
- ./tool/lemon.c:3670:1: error: number of arguments doesn’t match prototype
- 3670 | {
- | ^
- ./tool/lemon.c:102:7: error: prototype declaration
- 102 | void SetFree(/* char* */); /* Deallocate a set */
- | ^~~~~~~
- ./tool/lemon.c: In function ‘SetAdd’:
- ./tool/lemon.c:3676:5: warning: old-style function definition [-Wold-style-definition]
- 3676 | int SetAdd(s,e)
- | ^~~~~~
- ./tool/lemon.c:3679:1: error: number of arguments doesn’t match prototype
- 3679 | {
- | ^
- ./tool/lemon.c:104:5: error: prototype declaration
- 104 | int SetAdd(/* char*,int */); /* Add element to a set */
- | ^~~~~~
- ./tool/lemon.c: In function ‘SetUnion’:
- ./tool/lemon.c:3687:5: warning: old-style function definition [-Wold-style-definition]
- 3687 | int SetUnion(s1,s2)
- | ^~~~~~~~
- ./tool/lemon.c:3690:1: error: number of arguments doesn’t match prototype
- 3690 | {
- | ^
- ./tool/lemon.c:105:5: error: prototype declaration
- 105 | int SetUnion(/* char *A,char *B */); /* A <- A U B, thru element N */
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘strhash’:
- ./tool/lemon.c:3715:13: warning: old-style function definition [-Wold-style-definition]
- 3715 | PRIVATE int strhash(x)
- | ^~~~~~~
- ./tool/lemon.c: In function ‘Strsafe’:
- ./tool/lemon.c:3727:7: warning: old-style function definition [-Wold-style-definition]
- 3727 | char *Strsafe(y)
- | ^~~~~~~
- ./tool/lemon.c:3729:1: error: number of arguments doesn’t match prototype
- 3729 | {
- | ^
- ./tool/lemon.c:292:7: error: prototype declaration
- 292 | char *Strsafe();
- | ^~~~~~~
- ./tool/lemon.c:3732:7: error: too many arguments to function ‘Strsafe_find’; expected 0, have 1
- 3732 | z = Strsafe_find(y);
- | ^~~~~~~~~~~~ ~
- ./tool/lemon.c:296:7: note: declared here
- 296 | char *Strsafe_find(/* char * */);
- | ^~~~~~~~~~~~
- ./tool/lemon.c:3733:18: error: too many arguments to function ‘malloc’; expected 0, have 1
- 3733 | if( z==0 && (z=malloc( strlen(y)+1 ))!=0 ){
- | ^~~~~~ ~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c:3735:5: error: too many arguments to function ‘Strsafe_insert’; expected 0, have 1
- 3735 | Strsafe_insert(z);
- | ^~~~~~~~~~~~~~ ~
- ./tool/lemon.c:295:5: note: declared here
- 295 | int Strsafe_insert(/* char * */);
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c: In function ‘Strsafe_init’:
- ./tool/lemon.c:3768:23: error: too many arguments to function ‘malloc’; expected 0, have 1
- 3768 | x1a = (struct s_x1*)malloc( sizeof(struct s_x1) );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c:3772:25: error: too many arguments to function ‘malloc’; expected 0, have 1
- 3772 | x1a->tbl = (x1node*)malloc(
- | ^~~~~~
- 3773 | (sizeof(x1node) + sizeof(x1node*))*1024 );
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘Strsafe_insert’:
- ./tool/lemon.c:3786:5: warning: old-style function definition [-Wold-style-definition]
- 3786 | int Strsafe_insert(data)
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:3788:1: error: number of arguments doesn’t match prototype
- 3788 | {
- | ^
- ./tool/lemon.c:295:5: error: prototype declaration
- 295 | int Strsafe_insert(/* char * */);
- | ^~~~~~~~~~~~~~
- ./tool/lemon.c:3811:26: error: too many arguments to function ‘malloc’; expected 0, have 1
- 3811 | array.tbl = (x1node*)malloc(
- | ^~~~~~
- 3812 | (sizeof(x1node) + sizeof(x1node*))*size );
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘Strsafe_find’:
- ./tool/lemon.c:3843:7: warning: old-style function definition [-Wold-style-definition]
- 3843 | char *Strsafe_find(key)
- | ^~~~~~~~~~~~
- ./tool/lemon.c:3845:1: error: number of arguments doesn’t match prototype
- 3845 | {
- | ^
- ./tool/lemon.c:296:7: error: prototype declaration
- 296 | char *Strsafe_find(/* char * */);
- | ^~~~~~~~~~~~
- ./tool/lemon.c: In function ‘Symbol_new’:
- ./tool/lemon.c:3862:16: warning: old-style function definition [-Wold-style-definition]
- 3862 | struct symbol *Symbol_new(x)
- | ^~~~~~~~~~
- ./tool/lemon.c:3864:1: error: number of arguments doesn’t match prototype
- 3864 | {
- | ^
- ./tool/lemon.c:300:16: error: prototype declaration
- 300 | struct symbol *Symbol_new();
- | ^~~~~~~~~~
- ./tool/lemon.c:3867:8: error: too many arguments to function ‘Symbol_find’; expected 0, have 1
- 3867 | sp = Symbol_find(x);
- | ^~~~~~~~~~~ ~
- ./tool/lemon.c:304:16: note: declared here
- 304 | struct symbol *Symbol_find(/* char * */);
- | ^~~~~~~~~~~
- ./tool/lemon.c:3869:27: error: too many arguments to function ‘malloc’; expected 0, have 1
- 3869 | sp = (struct symbol *)malloc( sizeof(struct symbol) );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c:3871:16: error: too many arguments to function ‘Strsafe’; expected 0, have 1
- 3871 | sp->name = Strsafe(x);
- | ^~~~~~~ ~
- ./tool/lemon.c:3727:7: note: declared here
- 3727 | char *Strsafe(y)
- | ^~~~~~~
- ./tool/lemon.c:3881:5: error: too many arguments to function ‘Symbol_insert’; expected 0, have 2
- 3881 | Symbol_insert(sp,sp->name);
- | ^~~~~~~~~~~~~ ~~
- ./tool/lemon.c:303:5: note: declared here
- 303 | int Symbol_insert(/* struct symbol *, char * */);
- | ^~~~~~~~~~~~~
- ./tool/lemon.c: At top level:
- ./tool/lemon.c:3896:5: error: conflicting types for ‘Symbolcmpp’; have ‘int(struct symbol **, struct symbol **)’
- 3896 | int Symbolcmpp(struct symbol **a, struct symbol **b){
- | ^~~~~~~~~~
- ./tool/lemon.c:301:5: note: previous declaration of ‘Symbolcmpp’ with type ‘int(void)’
- 301 | int Symbolcmpp(/* struct symbol **, struct symbol ** */);
- | ^~~~~~~~~~
- ./tool/lemon.c: In function ‘Symbol_init’:
- ./tool/lemon.c:3930:23: error: too many arguments to function ‘malloc’; expected 0, have 1
- 3930 | x2a = (struct s_x2*)malloc( sizeof(struct s_x2) );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c:3934:25: error: too many arguments to function ‘malloc’; expected 0, have 1
- 3934 | x2a->tbl = (x2node*)malloc(
- | ^~~~~~
- 3935 | (sizeof(x2node) + sizeof(x2node*))*128 );
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘Symbol_insert’:
- ./tool/lemon.c:3948:5: warning: old-style function definition [-Wold-style-definition]
- 3948 | int Symbol_insert(data,key)
- | ^~~~~~~~~~~~~
- ./tool/lemon.c:3951:1: error: number of arguments doesn’t match prototype
- 3951 | {
- | ^
- ./tool/lemon.c:303:5: error: prototype declaration
- 303 | int Symbol_insert(/* struct symbol *, char * */);
- | ^~~~~~~~~~~~~
- ./tool/lemon.c:3974:26: error: too many arguments to function ‘malloc’; expected 0, have 1
- 3974 | array.tbl = (x2node*)malloc(
- | ^~~~~~
- 3975 | (sizeof(x2node) + sizeof(x2node*))*size );
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘Symbol_find’:
- ./tool/lemon.c:4008:16: warning: old-style function definition [-Wold-style-definition]
- 4008 | struct symbol *Symbol_find(key)
- | ^~~~~~~~~~~
- ./tool/lemon.c:4010:1: error: number of arguments doesn’t match prototype
- 4010 | {
- | ^
- ./tool/lemon.c:304:16: error: prototype declaration
- 304 | struct symbol *Symbol_find(/* char * */);
- | ^~~~~~~~~~~
- ./tool/lemon.c: In function ‘Symbol_Nth’:
- ./tool/lemon.c:4025:16: warning: old-style function definition [-Wold-style-definition]
- 4025 | struct symbol *Symbol_Nth(n)
- | ^~~~~~~~~~
- ./tool/lemon.c:4027:1: error: number of arguments doesn’t match prototype
- 4027 | {
- | ^
- ./tool/lemon.c:305:16: error: prototype declaration
- 305 | struct symbol *Symbol_Nth(/* int */);
- | ^~~~~~~~~~
- ./tool/lemon.c: In function ‘Symbol_arrayof’:
- ./tool/lemon.c:4052:29: error: too many arguments to function ‘malloc’; expected 0, have 1
- 4052 | array = (struct symbol **)malloc( sizeof(struct symbol *)*size );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘Configcmp’:
- ./tool/lemon.c:4060:5: warning: old-style function definition [-Wold-style-definition]
- 4060 | int Configcmp(a,b)
- | ^~~~~~~~~
- ./tool/lemon.c:4063:1: error: number of arguments doesn’t match prototype
- 4063 | {
- | ^
- ./tool/lemon.c:311:5: error: prototype declaration
- 311 | int Configcmp(/* struct config *, struct config * */);
- | ^~~~~~~~~
- ./tool/lemon.c: In function ‘statecmp’:
- ./tool/lemon.c:4071:13: warning: old-style function definition [-Wold-style-definition]
- 4071 | PRIVATE int statecmp(a,b)
- | ^~~~~~~~
- ./tool/lemon.c: In function ‘statehash’:
- ./tool/lemon.c:4088:13: warning: old-style function definition [-Wold-style-definition]
- 4088 | PRIVATE int statehash(a)
- | ^~~~~~~~~
- ./tool/lemon.c: In function ‘State_new’:
- ./tool/lemon.c:4103:25: error: too many arguments to function ‘malloc’; expected 0, have 1
- 4103 | new = (struct state *)malloc( sizeof(struct state) );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘State_init’:
- ./tool/lemon.c:4136:23: error: too many arguments to function ‘malloc’; expected 0, have 1
- 4136 | x3a = (struct s_x3*)malloc( sizeof(struct s_x3) );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c:4140:25: error: too many arguments to function ‘malloc’; expected 0, have 1
- 4140 | x3a->tbl = (x3node*)malloc(
- | ^~~~~~
- 4141 | (sizeof(x3node) + sizeof(x3node*))*128 );
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘State_insert’:
- ./tool/lemon.c:4154:5: warning: old-style function definition [-Wold-style-definition]
- 4154 | int State_insert(data,key)
- | ^~~~~~~~~~~~
- ./tool/lemon.c:4157:1: error: number of arguments doesn’t match prototype
- 4157 | {
- | ^
- ./tool/lemon.c:314:5: error: prototype declaration
- 314 | int State_insert(/* struct state *, struct config * */);
- | ^~~~~~~~~~~~
- ./tool/lemon.c:4180:26: error: too many arguments to function ‘malloc’; expected 0, have 1
- 4180 | array.tbl = (x3node*)malloc(
- | ^~~~~~
- 4181 | (sizeof(x3node) + sizeof(x3node*))*size );
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘State_find’:
- ./tool/lemon.c:4214:15: warning: old-style function definition [-Wold-style-definition]
- 4214 | struct state *State_find(key)
- | ^~~~~~~~~~
- ./tool/lemon.c:4216:1: error: number of arguments doesn’t match prototype
- 4216 | {
- | ^
- ./tool/lemon.c:315:15: error: prototype declaration
- 315 | struct state *State_find(/* struct config * */);
- | ^~~~~~~~~~
- ./tool/lemon.c: In function ‘State_arrayof’:
- ./tool/lemon.c:4239:28: error: too many arguments to function ‘malloc’; expected 0, have 1
- 4239 | array = (struct state **)malloc( sizeof(struct state *)*size );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘confighash’:
- ./tool/lemon.c:4247:13: warning: old-style function definition [-Wold-style-definition]
- 4247 | PRIVATE int confighash(a)
- | ^~~~~~~~~~
- ./tool/lemon.c: In function ‘Configtable_init’:
- ./tool/lemon.c:4282:23: error: too many arguments to function ‘malloc’; expected 0, have 1
- 4282 | x4a = (struct s_x4*)malloc( sizeof(struct s_x4) );
- | ^~~~~~ ~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c:4286:25: error: too many arguments to function ‘malloc’; expected 0, have 1
- 4286 | x4a->tbl = (x4node*)malloc(
- | ^~~~~~
- 4287 | (sizeof(x4node) + sizeof(x4node*))*64 );
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘Configtable_insert’:
- ./tool/lemon.c:4300:5: warning: old-style function definition [-Wold-style-definition]
- 4300 | int Configtable_insert(data)
- | ^~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:4302:1: error: number of arguments doesn’t match prototype
- 4302 | {
- | ^
- ./tool/lemon.c:321:5: error: prototype declaration
- 321 | int Configtable_insert(/* struct config * */);
- | ^~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:4312:9: error: too many arguments to function ‘Configcmp’; expected 0, have 2
- 4312 | if( Configcmp(np->data,data)==0 ){
- | ^~~~~~~~~ ~~~~~~~~
- ./tool/lemon.c:4060:5: note: declared here
- 4060 | int Configcmp(a,b)
- | ^~~~~~~~~
- ./tool/lemon.c:4325:26: error: too many arguments to function ‘malloc’; expected 0, have 1
- 4325 | array.tbl = (x4node*)malloc(
- | ^~~~~~
- 4326 | (sizeof(x4node) + sizeof(x4node*))*size );
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ./tool/lemon.c:32:14: note: declared here
- 32 | extern void *malloc();
- | ^~~~~~
- ./tool/lemon.c: In function ‘Configtable_find’:
- ./tool/lemon.c:4357:16: warning: old-style function definition [-Wold-style-definition]
- 4357 | struct config *Configtable_find(key)
- | ^~~~~~~~~~~~~~~~
- ./tool/lemon.c:4359:1: error: number of arguments doesn’t match prototype
- 4359 | {
- | ^
- ./tool/lemon.c:322:16: error: prototype declaration
- 322 | struct config *Configtable_find(/* struct config * */);
- | ^~~~~~~~~~~~~~~~
- ./tool/lemon.c:4367:9: error: too many arguments to function ‘Configcmp’; expected 0, have 2
- 4367 | if( Configcmp(np->data,key)==0 ) break;
- | ^~~~~~~~~ ~~~~~~~~
- ./tool/lemon.c:4060:5: note: declared here
- 4060 | int Configcmp(a,b)
- | ^~~~~~~~~
- ./tool/lemon.c: In function ‘Configtable_clear’:
- ./tool/lemon.c:4375:6: warning: old-style function definition [-Wold-style-definition]
- 4375 | void Configtable_clear(f)
- | ^~~~~~~~~~~~~~~~~
- ./tool/lemon.c:4377:1: error: number of arguments doesn’t match prototype
- 4377 | {
- | ^
- ./tool/lemon.c:323:6: error: prototype declaration
- 323 | void Configtable_clear(/* int(*)(struct config *) */);
- | ^~~~~~~~~~~~~~~~~
- ./tool/lemon.c:4380:40: error: too many arguments to function ‘f’; expected 0, have 1
- 4380 | if( f ) for(i=0; i<x4a->count; i++) (*f)(x4a->tbl[i].data);
- | ~^~~ ~~~~~~~~~~~~~~~~
- make: *** [Makefile:218: lemon] Error 1
- ==> ERROR: A failure occurred in build().
- Aborting...
Advertisement
Add Comment
Please, Sign In to add comment