[Xr] Can the xrs argument be removed?

Bill Spitzak spitzak at d2.com
Thu May 22 19:47:06 PDT 2003


On Thursday 22 May 2003 06:42 pm, Keith Packard wrote:

> The application can easily use a global variable for this; threaded apps
> can use TLS while non-threaded apps needn't even bother with that.
> Someone has to have global state to manage this, it's not clear the
> library needs to pander to such.

My problem with this is that tookit 1 may do "extern XrState* xrs" while 
toolkit 2 does "extern void* The_Drawing_State" while tookit 3 does "extern 
XrState* getXrState()" wile toolkit 4 does "extern XrState* 
getXrState(ToolkitObject*)". This does not help when you want to transfer 
useful drawing code from one to another.

-- 
                   ,~,~,~,~ ~ ~ ~ ~
     /\_       _|_========___         Bill Spitzak
 ~~~/\/\\~~~~~~\____________/~~~~~~~~ spitzak at d2.com




More information about the cairo mailing list