[Patch] Less Globals
Original Reporter info from Mantis: dodi
-
Reporter name: Hans-Peter Diettrich
Original Reporter info from Mantis: dodi
- Reporter name: Hans-Peter Diettrich
Description:
This patch moves some global variables into tscannerfile and tmodule, so that parallel processing (and more) can be implemented easier in the compiler. It includes some other (required) patches, reported before (ppudump...). Rudimentary registration of multiple front-ends has been added to pbase.
This patch should be applicable to the current trunk (tested: r16114, all tests passed).
Additional information:
I've tried to minimize the impact on the general compiler code. The affected variables are replaced by (getter) functions in the same units. Some procedures have been added, which simplify and allow to identify where the values are changed in code.
Moving further record-type variables would require more changes to many units, because then the direct variable references had to be replaced by pointer operations. If this should be acceptable, or when somebody can provide an less intrusive workaround, more global variables can be moved into classes.
Mantis conversion info:
- Mantis ID: 17584