× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I'm trying to use Expat with UTF-16 (ccsid 1200) encoded files.

Now, my issue is that I'm getting a compile error with 1 severe error, but
the compiler listing does not state exactly where that error occurs. The
Epilogue section at the bottom simply mentions that there is one severe
error, but not what nor where it is.
I currently have all relevant strings passed to Expat defined as wchar_t. If
I don't have XML_UNICODE and XML_UNICODE_WCHAR_T (which changes XML_CHAR
from char to wchar_t) defined I rightly get errors verifying that the
prototypes does not match, so that should be ok. But somewhere I have
apparently missed something which the compiler isn't keen on informing me
about.

Expat include and macros:
#include <libexpat/expat/xmlparse.c>
#define XML_UNICODE
#define XML_UNICODE_WCHAR_T

And the prototypes:

void start(void * userdata, const wchar_t * elem, const wchar_t ** attr);
void end(void * userdata, const wchar_t * elem);

Before I post the whole thing, has anyone done something similar with
success? And any ideas on how to get the error to be pointed out on the
compiler listing (never had this issue before)?

Thank you,
Erik

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.