Re: Xmd.h in c99 form

Keith Packard <[email protected]> Sun, 15 Feb 2004 12:03:39 -0800
Newsgroups gmane.comp.freedesktop.xlibs.general
Message-ID <[email protected]>
Around 23 o'clock on Feb 14, Warren Turkal wrote:

> Here is a little something I have been messing with. It is Xmd.h in c99
> form.

That's nice and brief; surely we'd like to take advantage of stdint.h when 
it exists, I guess the question is how best to do that.

 1)	Two separate Xmd.h files, select the right one during build

	 + Easy to maintain new version
	 - Easy to have two versions get out of sync

 2)	Single Xmd.h 

	 - Hard to figure out when stdint.h exists; may need -D option on
	   compile line for anyone using it (really bad)

 	 + Easy to keep everything synchronized

 3)	Single Xmd.h.in

	 + gets right section selected automatically by configure

	 - ugly result (I imagine)

I think 3) is probably the best choice; even better if we can make the 
installed version pretty looking.

-keith