use macros instead inline constants

This commit is contained in:
Stas Degteff 2010-03-28 17:22:40 +00:00
parent 20c366b27e
commit 7561fa3569
2 changed files with 4 additions and 2 deletions

View File

@ -31,6 +31,8 @@
#include <geall.h> #include <geall.h>
#include "gekeys.h" #include "gekeys.h"
#define AREALISTSORTSIZE 20 // Size of the "arealistsort" variable
// ------------------------------------------------------------------ // ------------------------------------------------------------------
// en_gswitches{} enumeration elements shoulds be complemented with // en_gswitches{} enumeration elements shoulds be complemented with
// globalbool[] array elements (see gccfgg0.cpp). // globalbool[] array elements (see gccfgg0.cpp).
@ -244,7 +246,7 @@ public:
int arealistechomax; int arealistechomax;
char arealistformat[80]; char arealistformat[80];
char arealistgrouporder[256]; char arealistgrouporder[256];
char arealistsort[20]; // areasort[10]; char arealistsort[AREALISTSORTSIZE];
int arealisttype; int arealisttype;
Path areapath; Path areapath;
gstrarray areapmscan; gstrarray areapmscan;

View File

@ -189,7 +189,7 @@ public:
area_iterator item; area_iterator item;
// Sort specs (for external compare func) // Sort specs (for external compare func)
char sortspec[20]; char sortspec[AREALISTSORTSIZE];
// Active msgbases (bitmap of MT_* contants) // Active msgbases (bitmap of MT_* contants)
std::vector<std::string> basetypes; std::vector<std::string> basetypes;