[rfk-dev] definition of MESSAGES
Paul J Collins
sneakums@zork.net
09 Mar 2001 22:33:39 +0000
>>>>> "NM" == Nick Moffitt <nick@zork.net> writes:
NM> begin Paul J Collins quotation:
>> Rather than worry about keeping track of the number of NKIs listed in
>> messages.h, it might be simpler to define MESSAGES thus:
>>
>> #define MESSAGES (sizeof messages / sizeof (char*))
NM> Feel free to send a tested patch here.
Tested.
--- src/messages.h 2001/02/21 08:25:09 1.9
+++ src/messages.h 2001/03/09 22:33:16
@@ -6,7 +6,7 @@
should reflect MESSAGES. */
/* Watch out for fenceposts.*/
-#define MESSAGES 248
+#define MESSAGES (sizeof messages / sizeof (char*))
static char* messages[] =
{
--
"Pity has no place at my table."
-- Dr Hannibal Lecter