* convert array declarations without size into pointers (as even the comment in the code says), resolves #10156

git-svn-id: trunk@15860 -
This commit is contained in:
florian 2010-08-20 08:22:14 +00:00
parent 43256c7f14
commit 782643789b
3 changed files with 8 additions and 5 deletions

View File

@ -2781,7 +2781,7 @@ begin
yyval:=hp;
while assigned(hp^.p1) do
hp:=hp^.p1;
hp^.p1:=new(presobject,init_two(t_arraydef,nil,nil));
hp^.p1:=new(presobject,init_one(t_pointerdef,nil));
end;
109 : begin
@ -2857,7 +2857,7 @@ begin
yyval:=hp;
while assigned(hp^.p1) do
hp:=hp^.p1;
hp^.p1:=new(presobject,init_two(t_arraydef,nil,nil));
hp^.p1:=new(presobject,init_one(t_pointerdef,nil));
end;
119 : begin

View File

@ -2658,7 +2658,7 @@ declarator :
$$:=hp;
while assigned(hp^.p1) do
hp:=hp^.p1;
hp^.p1:=new(presobject,init_two(t_arraydef,nil,nil));
hp^.p1:=new(presobject,init_one(t_pointerdef,nil));
} |
LKLAMMER declarator RKLAMMER
{
@ -2726,7 +2726,7 @@ abstract_declarator :
$$:=hp;
while assigned(hp^.p1) do
hp:=hp^.p1;
hp^.p1:=new(presobject,init_two(t_arraydef,nil,nil));
hp^.p1:=new(presobject,init_one(t_pointerdef,nil));
} |
LKLAMMER abstract_declarator RKLAMMER
{

View File

@ -93,4 +93,7 @@ typedef struct FnTable {
int (*Fn1)( void );
int (*Fn2)( void );
int (*Fn3)( void );
} FnTable;
} FnTable;
void f(int a, char* p[]);