[fpc-devel] ppudump question
Pierre Free Pascal
pierre at freepascal.org
Mon Aug 24 09:05:04 CEST 2015
Maybe you are using empty sets in your source code?
An empty set:
[]
has no elements and thus the compiler cannot know what
the type of the elements are.
In the hope that this will help,
Pierre Muller
> -----Message d'origine-----
> De : fpc-devel-bounces at lists.freepascal.org [mailto:fpc-devel-
> bounces at lists.freepascal.org] De la part de Gennady Agranov
> Envoyé : dimanche 23 août 2015 00:46
> À : fpc-devel at lists.freepascal.org
> Objet : [fpc-devel] ppudump question
>
> Hi,
>
> 1. I have code that heavily uses enums/sets
>
> When I use ppudump to print *.ppu files I see some sets reported with
> null ElType and I do not understand what causes them :(
>
> And I do not believe that they are referenced at all...
>
> Any ideas why "set" is reported with no ElType?
>
> Thanks,
> Gennady
>
> Example:
>
> json version:
>
> {
> "Type": "set",
> "Id": 236,
> "Size": 1,
> "Base": 0,
> "Max": 0,
> "ElType": null
> },
>
> text version:
>
> ** Definition Id 236 **
> Set definition
> Type symbol : (7357) Nil
> DefOptions :
> DefStates :
> Element type : (7361) Nil
> Size : 1
> Set Base : 0
> Set Max : 0
>
> xml version:
>
> <set>
> <id>236</id>
> <size>1</size>
> <base>0</base>
> <max>0</max>
> <eltype></eltype>
> </set>
>
>
> {
> "Type": "set",
> "Id": 92,
> "Size": 1,
> "Base": 0,
> "Max": 0,
> "ElType": null
> }
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
More information about the fpc-devel
mailing list