Page 1 of 1

Something odd in requester.h

Posted: Sat Dec 17, 2011 3:31 am
by tbreeden
The latest public release of the SDK has a set of defines like this:

requester.h 53.22 (31.1.2010)

Code: Select all

#define REQI_Minimum    (REQI_Dummy+1)
#define REQI_Maximum    (REQI_Dummy+2)
#define REQI_Invisible  (REQI_Dummy+3) /* NOT IMPLEMENTED YET */
#define REQI_Number     (REQI_Dummy+4)
#define REQI_Arrows     (REQI_Dummy+5)
#define REQI_MaxChars   (REQI_Dummy+6)
#define REQI_MinText    (REQI_Dummy+7)
#define REQI_MaxText    (REQI_Dummy+8)
#define REQI_Mark       (REQS_Dummy+9)
Is the define for REQI_Mark a typo?
It just seemed weird to me that it switches to REQS_Dummy in that line.

Tom

Re: Something odd in requester.h

Posted: Sat Dec 17, 2011 8:06 am
by salass00
tbreeden wrote:Is the define for REQI_Mark a typo?
It just seemed weird to me that it switches to REQS_Dummy in that line.

Tom
I was going to suggest that REQI_Mark likely an alias for REQS_Mark, but it turns out it has a different value so it's probably a copy paste error (programmer changed the '+7' to '+9' but forgot to change 'REQS_Dummy' to 'REQI_Dummy'):

Code: Select all

#define REQS_Mark (REQS_Dummy+7)

Re: Something odd in requester.h

Posted: Sat Dec 17, 2011 10:25 am
by rwo
I agree that it looks like a typo, so I changed it and updated the svn.

Thanks for the hint.

René