The sources of the Free Pascal compiler, RTL, packages and utilities. See https://www.freepascal.org/ for more info.
Go to file
Jonas Maebe 13b0ac91d9 + generate java.lang.Enum descendant classes for Pascal enum types
o these classes get an "enum" flag in the class files
   o these classes get a class field (whose type is that same enum
     class) per enum in the type, which also gets the "enum" flag
   o those class fields are initialised in the class constructor
     with the name of the enum and their order in the declaration
   o if the enum has jumps in FPC (lowest value is not 0, or not
     all values are contiguous), then we add an extra field
     to hold the FPC ordinal value of the enum
   o these classes get a class field valled $VALUES that contains
     a reference to the aforementioned class fields in order of
     declaration (= ordinal->instance mapping, JDK-mandated)
   o apart from the JDK-mandated instance methods (values, valueOf),
     also add FPCOrdinal (returns FPC ordinal value; same as order
     of declaration in case of no jumps) instance method and FPCValueOf
     (returns enum corresponding to FPC ordinal value) static class
     method
   o the mapping between FPC ordinals and enum instances in case of
     jumps is stored in a hashmap whose size is the next prime number
     greater or equal than the number of enum elements
   o moved several extra JDK types to the system unit for the enum
     support, and for future boxing and Java set support
   o several new synthetic method identifiers to generate the enum class
     methods/constructor/class constructor
   o enums with jumps are ordered by FPC ordinal value in the JVM
     $VALUES array so that the java.lang.Enum.doCompare() method
     will properly compare them

git-svn-id: branches/jvmbackend@18616 -
2011-08-20 08:15:28 +00:00
compiler + generate java.lang.Enum descendant classes for Pascal enum types 2011-08-20 08:15:28 +00:00
ide + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
installer + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
packages fpvectorial: Adds multiline support for text, adds a new translate function to entities 2011-08-18 11:41:22 +00:00
rtl + generate java.lang.Enum descendant classes for Pascal enum types 2011-08-20 08:15:28 +00:00
tests * fixes cmem.malloc et al. for windows as proposed by Ludo Brands, resolves #15571 2011-08-18 08:47:44 +00:00
utils * generate a declaration with an dynamic array and one with an open array 2011-08-20 07:59:40 +00:00
.gitattributes + support for nested procedures for the JVM target 2011-08-20 08:12:59 +00:00
.gitignore + Added libogc binding and examples for Wii 2011-02-23 21:59:42 +00:00
Makefile + Update all Makefile's modified by 2011-08-16 20:10:19 +00:00
Makefile.fpc * Trunk version to 2.7.1 2011-08-03 13:59:33 +00:00