Fixed %init directive warning.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@733 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c3033ad297
commit
7baa90abee
1 changed files with 1 additions and 1 deletions
|
|
@ -941,7 +941,7 @@ statement : INCLUDE STRING LBRACE {
|
|||
/* Init directive--to avoid errors in other modules */
|
||||
|
||||
| INIT ID initlist {
|
||||
Printf(stderr,"%s : Line %d. Warning. %init directive is deprecated (ignored).\n", input_file,line_number);
|
||||
Printf(stderr,"%s : Line %d. Warning. %%init directive is deprecated (ignored).\n", input_file,line_number);
|
||||
for (i = 0; i < $3.count; i++)
|
||||
if ($3.names[i]) free($3.names[i]);
|
||||
free($3.names);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue