From 383fb1d734090a33122848aebd9249fd8d0b4ff7 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sat, 4 Feb 2006 18:26:29 +0000 Subject: [PATCH] Add comments about complementarity for enum en_gswitches and tglobalbool globalbool array --- golded3/gccfgg0.cpp | 4 +++- golded3/gecfgg.h | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/golded3/gccfgg0.cpp b/golded3/gccfgg0.cpp index 6959c8f..5a3c8f3 100644 --- a/golded3/gccfgg0.cpp +++ b/golded3/gccfgg0.cpp @@ -41,7 +41,9 @@ struct tglobalbool { word crc_token; }; -// it must be sorted by value +// globalbool[] array elements shoulds be complemented with +// en_gswitches{} enumeration elements (see gecfgg.h). +// globalbool[] array must be sorted by value tglobalbool globalbool[gswitches_last] = { { CRC_INTERNETLOOKUP }, // 0x0E22; { CRC_KLUDGECHRS }, // 0x0EEF; diff --git a/golded3/gecfgg.h b/golded3/gecfgg.h index 4999e55..64c6ffa 100644 --- a/golded3/gecfgg.h +++ b/golded3/gecfgg.h @@ -28,7 +28,8 @@ // ------------------------------------------------------------------ - +// en_gswitches{} enumeration elements shoulds be complemented with +// globalbool[] array elements (see gccfgg0.cpp). enum en_gswitches { internetlookup, kludgechrs,