Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2009-10

Unused compiler messages

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Sergei Gorelkin

Hello,

While updating the Russian message file, I discovered that (at least) the following messages are not used in compiler source (only in msg directory and msgtxt.inc):

3060, 3062, 3066, 3071, 3092, 3107, 3125, 3146, 3148, 3168, 3179, 3218, 5001, 5012, 5013,
6015, 6017, 6031, 6032, 6033, 6038, 6041, 6042, 6043, 7016, 7018, 7061, 7066, 7072, 7074, 7077, 7082,
8002, 8003, 8005, 8013, 8014, 8015, 8017, 8018,
9000,
10015, 10017, 10023, 10029, 10030, 10031, 10032, 10033, 10034, 10035, 10037, 10040

While some of these can be meant for implementing something in the future, most refer to some ugly hacks that fortunately are gone for good. Therefore I suggest to clean up the English message file, so that other language maintainers do not have to do the unnecessary job like I just did (yes, the idea to grep the sources came to me only when I realized that I'm translating something too nasty).

Another message to remove is #1009 ('out of memory'), it is used only once and doing so is pretty senseless; either any memory allocation has to be checked, or check nothing and rely on memory manager to throw a runtime error, latter being the case.

Regards,
Sergei

Reply by email