You're right.

I have already been blasted on this by some folks here !!

I've changed it so that its defined as
  #ifdef NON_INTERNATIONAL
  #define ChrIsHardKey(c) ( ...old definition... )
  #else
  #define ChrIsHardKey(c) _Obsolete_use_TxtCharIsHardKey
  #endif


And so on for the rest of the old NON_INTERNATIONAL macros.


--vivek






Scott Johnson <[EMAIL PROTECTED]> on 07/28/99 01:37:40 PM

Please respond to [EMAIL PROTECTED]

Sent by:  Scott Johnson <[EMAIL PROTECTED]>


To:   [EMAIL PROTECTED]
cc:   Vivek Magotra/HQ/3Com
Subject:  Re: Finding strings in JapaneseOS




[EMAIL PROTECTED] wrote:
> I'll be putting in more of the "obsolete...use this instead"
> compiler errors

BTW, the #error usage in <CharAttr.h> 3.1 alpha doesn't work:

  #ifdef NON_INTERNATIONAL
  #define ChrIsHardKey(c) ( ...old definition... )
  #else
  #define ChrIsHardKey(c) #error "Obsolete - use TxtCharIsHardKey"
  #endif

You can't put an #error directive in a #define like that; the compiler
reports a syntax error at the point of the macro expansion, instead of
printing the error text cleanly.  (CodeWarrior R5.1 at least.)

-slj-






Reply via email to