From 7561fa35697bf27106a1a85f96d745e135ffde76 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sun, 28 Mar 2010 17:22:40 +0000 Subject: [PATCH] use macros instead inline constants --- golded3/gecfgg.h | 4 +++- golded3/gmarea.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/golded3/gecfgg.h b/golded3/gecfgg.h index 8ebeab5..4088808 100644 --- a/golded3/gecfgg.h +++ b/golded3/gecfgg.h @@ -31,6 +31,8 @@ #include #include "gekeys.h" +#define AREALISTSORTSIZE 20 // Size of the "arealistsort" variable + // ------------------------------------------------------------------ // en_gswitches{} enumeration elements shoulds be complemented with // globalbool[] array elements (see gccfgg0.cpp). @@ -244,7 +246,7 @@ public: int arealistechomax; char arealistformat[80]; char arealistgrouporder[256]; - char arealistsort[20]; // areasort[10]; + char arealistsort[AREALISTSORTSIZE]; int arealisttype; Path areapath; gstrarray areapmscan; diff --git a/golded3/gmarea.h b/golded3/gmarea.h index 447ba0a..a388e61 100644 --- a/golded3/gmarea.h +++ b/golded3/gmarea.h @@ -189,7 +189,7 @@ public: area_iterator item; // Sort specs (for external compare func) - char sortspec[20]; + char sortspec[AREALISTSORTSIZE]; // Active msgbases (bitmap of MT_* contants) std::vector basetypes;