bluewaysw / pcgeos

#FreeGEOS source codes. The offical home of the PC/GEOS operating system technology. For personal computing fans. For all developers and assembly lovers. For YOU!
Apache License 2.0
759 stars 87 forks source link

Glue issue if chunk names differ only in uppercase and lowercase letters #453

Open rabe-soft opened 9 months ago

rabe-soft commented 9 months ago

This issue happens in "Typing Tutor" code, Appl/EduApps/Ttype/ttui.goc in resource TTStrings.

    /*
     * wpmSPFString <-> wpm_SPFString <-> WPMSPFString
     * The original chunk identifier was wpmSPFString[], but this 
     * interferes with WPMSPFString and causes strange error 
     * messages in glue. Therefore it was renamed.
     * R.B. 02/2024
     */
@chunk char wpm_SPFString[] = "%u wpm";
@chunk char WPMSPFString[] = "%u WPM";

If the chunks are named as follows (as in original code), the following error message appears.

@chunk char wpmSPFString[] = "%u wpm";
@chunk char WPMSPFString[] = "%u WPM";

grafik

rabe-soft commented 5 months ago

This also happen to object names. Oe and oe are not accepted at the same time (WebBox code).

mgroeber9110 commented 1 week ago

Additionally, glue can also get confused without an error message when there are two global symbols that only differ in casing. In V-Convert, it happened that some function handling CGM opcodes would have the same name as the variables they change (e.g. CGM_ColorSelectionMode changes cgm_ColorSelectionMode). Apparently this is not a good idea, and causes some relocs to be refering to the wrong symbol.