scummvm/scummvm — pull request #123 by digitall (2011-12-01 19:56:06+00:00)
Title: Add Function Name Remapping to tasm-recover tool...

These commits add functionality to the tasm-recover tool to allow a function name mapping to be added.

This is then used to map the ASM style lower case functions of dreamgen.* to the project standard camelCase style. This makes the dreamweb code more as per project standards and significantly improves ease of reading i.e. manasleep() -> manAsleep().

Also, due to the dependencies on dreamgen.* function API, most of the other source files have also been stuck with all lower case ASM style namings, but this is now relaxed and in order to restore compilation etc., these are renamed camelCase.

Though not implemented here, this also allows the function remapping to be adjusted in tasm-recover script and the generation rerun to expand various truncated namings (assumed due to character size limit of ASM labels) i.e. exobject() -> examineObject() etc. to improve readability further.

P.S. Since this is quite an extensive change, I would like to merge this fairly quickly to avoid any significant merge conflicts with tramboi's work going forward, so if we can avoid arguments over the remapping which is currently 99% just to change the name to camelCase as this can be changed later to a fuller readable function name expansion, but this is better done more piecewise after the basic foundation is merged.

I will leave this for tramboi to merge...