Loading ...
Sorry, an error occurred while loading the content.

622Re: MacOS X, iconv and gettext emulation

Expand Messages
  • Mac Vim Support (Axel Kielhorn)
    Jul 14, 2002
    • 0 Attachment
      At 11:38 Uhr +0200 2002-07-09, Bram Moolenaar wrote:
      >
      >#ifndef EINVAL
      ># define EINVAL 22
      >#endif
      >#ifndef E2BIG
      ># define E2BIG 7
      >#endif

      After defining these errors (and ENOENT, EFAULT and EILSEG (the later
      is defined in mbyte.c but used in os_macosx.c) and including
      TextEncodingConverter.h, I discovered that my libraries are out of
      date.

      Now I've updated to Universal headers 3.4.1 (which are probably
      already outdated since carbonLib 1.6 got released.)

      I'm now down to several:

      Error : not a struct/union/class
      os_macosx.c line 294 st = TECCreateConverter(&cd->tec, fromEnc, toEnc);

      And a lot of:

      Error : cannot convert
      'const char *' to
      'unsigned long'
      os_macosx.c line 419 buf_in, in_len, (ByteCount*)&in_true,

      Error : cannot convert
      'char *' to
      'unsigned long'
      os_macosx.c line 420 buf_out, out_len, (ByteCount*)&out_true);

      Error : cannot convert
      'char *' to
      'unsigned long'
      os_macosx.c line 432 buf_out, out_true, (ByteCount*)&rev_in,

      Error : cannot convert
      'char *' to
      'unsigned long'
      os_macosx.c line 433 buf_rev, in_true, (ByteCount*)&rev_out);

      Error : cannot convert
      'char *' to
      'unsigned long'
      os_macosx.c line 459 buf_out, out_len, (ByteCount*)&out_true);

      Error : cannot convert
      'char *' to
      'unsigned long'
      os_macosx.c line 469 buf_out, out_len, (ByteCount*)&out_true);

      Why doesn't the MacOS X compiler complain?

      Axel
    • Show all 12 messages in this topic