lanurmi / efte

eFTE is a fork of FTE -- Folding Text Editor
GNU General Public License v2.0
31 stars 11 forks source link

cefte does not report an error when a name clash exists #18

Closed lanurmi closed 9 years ago

lanurmi commented 16 years ago

If you:

sub HelloWorld { InsertString "Hello World" } sub HelloWorld { InsertString "Hello, World" }

the later will not cause an error, but will not work. In the above synario, it's clear that your overwriting an existing macro, however, things are not always so clear when you have 80 config files that are read.

cefte should report an error on the second instance of a macro by the same name.

Reported by: jcowgar

Original Ticket: "efte/bugs/17":https://sourceforge.net/p/efte/bugs/17

lanurmi commented 16 years ago

Logged In: YES user_id=128244 Originator: YES

Fixed in revision 687. An example:

C:\Users\Jeremy\Projects\efte\build-mngw\config\mymain.fte:12: Error: HelloWorld has already been defined in: C:\Users\Jeremy\Projects\efte\build-mngw\config\m_plain.fte:9

For an internal command, it will report:

C:\Users\Jeremy\Projects\efte\build-mngw\config\mymain.fte:11: Error: InsertString is an internal command and cannot be redefined

Original comment by: jcowgar

lanurmi commented 16 years ago

Original comment by: jcowgar