Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HBSETUP.CH and HB_STD_INKEY

80 views
Skip to first unread message

CV

unread,
Apr 21, 2013, 9:08:36 AM4/21/13
to
Hi

I have found this at the of the file hbsetup.ch (in .\include):

---
#ifdef HB_EXTENSION
#ifndef HB_STD_INKEY
#define HB_EXT_INKEY /* Enable Extended Inkey codes */
#endif
#endif
---

I think it is invalid and should be:

---
#ifdef HB_EXTENSION
#ifndef HB_EXT_INKEY /* EXT instead of STD */
#define HB_EXT_INKEY /* Enable Extended Inkey codes */
#endif
#endif
---

Can anyone confirm?

Regards,
Claudio

x...@y.local

unread,
Apr 21, 2013, 12:40:52 PM4/21/13
to
Hi

In article <e72db2c5-c974-41ed...@googlegroups.com>,
cvos...@gmail.com says ...
> Hi
>
> I have found this at the of the file hbsetup.ch (in .\include):
>
> ---
> #ifdef HB_EXTENSION
> #ifndef HB_STD_INKEY
> #define HB_EXT_INKEY /* Enable Extended Inkey codes */
> #endif
> #endif
> ---
This is 0k.
Please, look in ChangeLog (Line 867) ...

[...]>

Regards,
dusan

Claudio Voskian

unread,
Apr 22, 2013, 10:03:39 PM4/22/13
to
Dusan

With all my respect to you and any other involved in the development and
maintenance of this great product...
There is no reference to "HB_STD_INKEY" in any file except the changelog and
HBSETUP.CH

Indeed, the changelog states:
* xharbour/include/hbsetup.ch
+ added support for HB_STD_INKEY which forces standard inkey codes
when xHarbour is compiled

And this is not true, because we have to use EXTENDED INKEY CODES all the
time.

As the use of that "define" is
...
#ifndef HB_STD_INKEY ...
...
And as it is not defined anywhere in _any file_ (except, maybe, in the
compiler command line or in the owner's program files), I keep this post
open to discuss: "Why that line is defined as such".

The correct one - I think - is the one I proposed in my first post.
I can't realize why if a given one is not defined, we have to define a
different one as a consequence.

Regards,
Claudio

escribió en el mensaje de
noticias:MPG.2bde34fc9...@news.siol.net...

Claudio Herszage

unread,
Apr 24, 2013, 10:25:21 AM4/24/13
to
Claudio

#ifdef HB_EXTENSION
#ifndef HB_STD_INKEY
#define HB_EXT_INKEY /* Enable Extended Inkey codes */
#endif
#endif

I think the original idea was to guarantee that one of both is defined.
If you don't explicitly define STD in your own project. then EXT is forced by the compiler.
Regards
Claudio
0 new messages