mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-08 10:39:29 +02:00
* 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:
parent
43256c7f14
commit
782643789b
@ -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
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -93,4 +93,7 @@ typedef struct FnTable {
|
||||
int (*Fn1)( void );
|
||||
int (*Fn2)( void );
|
||||
int (*Fn3)( void );
|
||||
} FnTable;
|
||||
} FnTable;
|
||||
|
||||
|
||||
void f(int a, char* p[]);
|
||||
|
Loading…
Reference in New Issue
Block a user