cppclass: Rename methods & tests
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
Attached patch cpp-method-rename.patch allows one to influence the method name that is used for name mangling using the familiar 'name stringconst;' syntax.
The file cpp-tests.tar.gz contains two new tests:
* tcppcl2.pp: test for class renaming
* tcppcl3.pp: test for method renaming
The contents have to be put into "tests/test/cg/" folder. The *.cpp files are already compiled for i386-linux.
cpp-tests-makefile.patch adds the copying of the compiled C++ *.o files to the Makefile in "tests/".
cpp-test1-correction.patch corrects some comments and the program name of the first test added last time (because of the renaming of the program and cpp files).
Additional information:
Please don't hesitate to report unclean or missing things inside the compiler's code (like missing string cleanup or loading from/saving to ppu last time), cause I am the one who needs/wants to learn how things work inside the compiler. :)
That said: I hope the number for the InternalError in pdecsub.pp/pd_name was done correctly (I used the current date when I added it and appended a "1"), cause I did not find any information regarding this...
Mantis conversion info:
- Mantis ID: 16248
- OS: Linux
- OS Build: 2.6.31
- Build: 15125
- Platform: i386
- Version: 2.5.1
- Fixed in version: 2.6.0
- Fixed in revision: 15239 (#43033bac)