OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Programming => Topic started by: Dariusz Piatkowski on April 21, 2021, 05:35:21 pm

Title: VSQM.H - errror due to comment?
Post by: Dariusz Piatkowski on April 21, 2021, 05:35:21 pm
Looking at this header file and found the following:

Code: [Select]
...
/**********************************************************************/
/*                                                                    */
/* String table IDs                                                   */
/*                                                                    */
/**********************************************************************/
#define IDSNAME          10
#define IDSTITLE         20
#define IDSHELP          21    /* Help window title string
#define IDSDTLSTL        30
#define IDSQUEUE1        40
...

It would appear to me that the "/* Help window title string" has an un-ended comment which actually causes all teh remaining #define's to be commented out as well.

This carries on for about 40 line of code until the following:

Code: [Select]
...
#define VQINTERNALERROR  82
#define VQDRIVENOTREADY  83
#define VQBADPRIOSTR     84

#define ID_LISTBOX       90     /* Queues listbox ID

/**********************************************************************/
/*                                                                    */
/* Menu IDs                                                           */
/*                                                                    */
/**********************************************************************/

...which despite being an un-ended comment is OK since the "/* Queues listbox IS" is followed by multi-line comment anyways which correctly ends the full comment section.

Does anyone know if this is correct? Or is this an un-documented but otherwise intentional exclusion of all these DEFINEs?
Title: Re: VSQM.H - errror due to comment?
Post by: Dariusz Piatkowski on April 21, 2021, 05:39:20 pm
Heck...further on I find the following:

Code: [Select]
#define IDH_IDMRLSALL   :ç 421

That ":ç" doesn't look right to me...but is that supposed to be some kind of double-byte code character with a special meaning?
Title: Re: VSQM.H - errror due to comment?
Post by: Dave Yeo on April 21, 2021, 06:02:35 pm
Looks to me like typos. Probably should open an issue at Bitwise as I believe they're looking after the toolkit.
Seems no one has used the header, which I assume is for the print spool, as even the copy in the 2.1 toolkit has the same issues.