@@ -41,7 +41,6 @@ extern int access(const char *path, int mode);
4141#endif
4242
4343char * msort ();
44- extern void * malloc ();
4544
4645/******** From the file "action.h" *************************************/
4746struct action * Action_new ();
@@ -305,7 +304,7 @@ struct symbol *Symbol_new();
305304int Symbolcmpp (/* struct symbol **, struct symbol ** */ );
306305void Symbol_init (/* void */ );
307306int Symbol_insert (/* struct symbol *, char * */ );
308- struct symbol * Symbol_find (/* char * */ );
307+ struct symbol * Symbol_find (char * key ); /* modern prototype to satisfy C2x */
309308struct symbol * Symbol_Nth (/* int */ );
310309int Symbol_count (/* */ );
311310struct symbol * * Symbol_arrayof (/* */ );
@@ -3620,7 +3619,7 @@ int mhflag; /* Output in makeheaders format if true */
36203619 }
36213620 tplt_xfer (lemp -> name ,in ,out ,& lineno );
36223621
3623- /* Generate code which executes every time a symbol is popped from
3622+ /* Generate code which executes when a symbol is popped from
36243623 ** the stack while processing errors or while destroying the parser.
36253624 ** (In other words, generate the %destructor actions)
36263625 */
@@ -3729,7 +3728,7 @@ void ReportHeader(lemp)
37293728struct lemon * lemp ;
37303729{
37313730 FILE * out , * in ;
3732- char * prefix ;
3731+ char * prefix ;
37333732 char line [LINESIZE ];
37343733 char pattern [LINESIZE ];
37353734 int i ;
@@ -4181,8 +4180,7 @@ char *key;
41814180
41824181/* Return a pointer to data assigned to the given key. Return NULL
41834182** if no such key. */
4184- struct symbol * Symbol_find (key )
4185- char * key ;
4183+ struct symbol * Symbol_find (char * key )
41864184{
41874185 int h ;
41884186 x2node * np ;
0 commit comments