Re: File name encoding and GTK ABI compatibility on Win32
- From: James Henstridge <james jamesh id au>
- To: Mike Hearn <mike navi cx>
- Cc: Owen Taylor <otaylor redhat com>, gtk-devel-list gnome org, Tor Lillqvist <tml iki fi>
- Subject: Re: File name encoding and GTK ABI compatibility on Win32
- Date: Tue, 07 Dec 2004 00:57:23 +0800
On 07/12/04 00:34, Mike Hearn wrote:
As far as making a mess of the header files, I don't think it's such a
big deal. It typically involves wrapping new functionality in an
#ifdef. For Tors need, you could do:
#if (GTK_TARGET_MINOR >= 6)
# define U(x) x ## _utf8
#else
# define U(x) x
#endif
void U(gtk_some_function)(GtkFoo *foo, gboolean bar);
This is slightly ugly, but not hugely so - it's still easily readable
- and the portability gains are useful.
Note that annotations like this would likely cause problems for tools
like gtk-doc that parse header files. So there are more than just
aesthetic complaints about making the headers unreadable.
James.
--
Email: james jamesh id au
WWW: http://www.jamesh.id.au/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]