mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-13 04:39:45 +01:00
+ nil constants
This commit is contained in:
parent
2663a9ff1b
commit
fdb8d828a6
@ -169,6 +169,10 @@ unit pdecl;
|
|||||||
ps^:=p^.value_set^;
|
ps^:=p^.value_set^;
|
||||||
symtablestack^.insert(new(pconstsym,init(name,constset,longint(ps),p^.resulttype)));
|
symtablestack^.insert(new(pconstsym,init(name,constset,longint(ps),p^.resulttype)));
|
||||||
end;
|
end;
|
||||||
|
niln :
|
||||||
|
begin
|
||||||
|
symtablestack^.insert(new(pconstsym,init(name,constnil,0,p^.resulttype)));
|
||||||
|
end;
|
||||||
else
|
else
|
||||||
Message(cg_e_illegal_expression);
|
Message(cg_e_illegal_expression);
|
||||||
end;
|
end;
|
||||||
@ -2086,7 +2090,10 @@ unit pdecl;
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.79 1998-11-05 12:02:51 peter
|
Revision 1.80 1998-11-13 10:18:09 peter
|
||||||
|
+ nil constants
|
||||||
|
|
||||||
|
Revision 1.79 1998/11/05 12:02:51 peter
|
||||||
* released useansistring
|
* released useansistring
|
||||||
* removed -Sv, its now available in fpc modes
|
* removed -Sv, its now available in fpc modes
|
||||||
|
|
||||||
|
|||||||
@ -1004,6 +1004,7 @@ unit pexpr;
|
|||||||
psetdef(pconstsym(srsym)^.definition));
|
psetdef(pconstsym(srsym)^.definition));
|
||||||
constord : p1:=genordinalconstnode(pconstsym(srsym)^.value,
|
constord : p1:=genordinalconstnode(pconstsym(srsym)^.value,
|
||||||
pconstsym(srsym)^.definition);
|
pconstsym(srsym)^.definition);
|
||||||
|
constnil : p1:=genzeronode(niln);
|
||||||
end;
|
end;
|
||||||
pd:=p1^.resulttype;
|
pd:=p1^.resulttype;
|
||||||
end;
|
end;
|
||||||
@ -1903,7 +1904,10 @@ unit pexpr;
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.73 1998-11-05 12:02:52 peter
|
Revision 1.74 1998-11-13 10:18:11 peter
|
||||||
|
+ nil constants
|
||||||
|
|
||||||
|
Revision 1.73 1998/11/05 12:02:52 peter
|
||||||
* released useansistring
|
* released useansistring
|
||||||
* removed -Sv, its now available in fpc modes
|
* removed -Sv, its now available in fpc modes
|
||||||
|
|
||||||
|
|||||||
@ -269,7 +269,7 @@
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
tconsttype = (constord,conststring,constreal,constbool,
|
tconsttype = (constord,conststring,constreal,constbool,
|
||||||
constint,constchar,constset);
|
constint,constchar,constset,constnil);
|
||||||
|
|
||||||
pconstsym = ^tconstsym;
|
pconstsym = ^tconstsym;
|
||||||
tconstsym = object(tsym)
|
tconstsym = object(tsym)
|
||||||
@ -319,7 +319,10 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.5 1998-11-05 23:39:32 peter
|
Revision 1.6 1998-11-13 10:18:12 peter
|
||||||
|
+ nil constants
|
||||||
|
|
||||||
|
Revision 1.5 1998/11/05 23:39:32 peter
|
||||||
+ typedconst.getsize
|
+ typedconst.getsize
|
||||||
|
|
||||||
Revision 1.4 1998/10/20 08:07:02 pierre
|
Revision 1.4 1998/10/20 08:07:02 pierre
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user