Subject: Re: Tiny patch to build abiword-0.9.2 with gcc-3.0 on Linux
From: F J Franklin (F.J.Franklin@sheffield.ac.uk)
Date: Fri Aug 17 2001 - 02:50:53 CDT
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
F.J.Franklin@shef.ac.uk
`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
This archive was generated by hypermail 2b25 : Fri Aug 17 2001 - 02:50:57 CDT