I'm sorry, perhaps I should have explained myself better yesterday.

As in the patches I sent yesterday, at the same point ICONV_CONST is
defined in ut_types.h, I propose adding two macros:

#define ICONV_CONST const
#define C_CAST_CONST_TO_ICONV(P) (P)
#define CPP_CAST_CONST_TO_ICONV(P) (P)
#else
#define ICONV_CONST
#define C_CAST_CONST_TO_ICONV(P) ((char **)(P))
#define CPP_CAST_CONST_TO_ICONV(P) (const_cast<char **>(P))
#endif

As far as I could determine, each call to iconv in AbiWord's source needs
to cast from (const char **) to (ICONV_CONST char **). The patch I sent
replaces all these casts with the appropriate macro.

If ICONV_CONST = const, then no cast is necessary, and none is performed.

Regards, Frank

ps. patch re-attached

Francis James Franklin
[EMAIL PROTECTED]

`people who are strangers to liquor are incapable of talking about literature.'
Those refreshing words filled my head with the clarified butter of great
wisdom, removed all obstacles to understanding. Truly it was a case of:
`Open the gates of the throat and pour down a bucket of Maotai.'    --- Mo Yan

abi_iconv_cast.patch.gz

Reply via email to