Re: Accessing Win32 hardware

From: Date: Thu, 08 Nov 2001 20:47:42 +0000
Subject: Re: Accessing Win32 hardware
References: 1 2 3 4 5 6 7 8  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-562@lists.php.net to get a copy of this message
> On Thu, 08 Nov 2001, James Moore wrote: > > Zend checks for conflicts IIRC otherwise Ill add some code to check > > CG(function_table) before I register the new function. Im havnt really > > thought about prepending win32 but Ill give it some thought, its going to be > > sunday before I get a chance to play with it again so we will see how I feel > > then. > > Another way to approach it is to use overloading.. have your functions > looked up and called dynamically. What do you mean by that, at the moment I add the function into the function_table by registering a new module (not the way I wanted to do it but after some discussions with andi he thought this was the best way). anyway every function is associated with zif_w32api_invoke_function(INTERNAL_PARAMETERS) this function uses get_active_function_name to get the current function that has been called, it then looks up the far pointer in a local hash table and then calls the function. I dont quite get what you mean by overloading though.. Cheers, - James

« previous php.gtk.general (#562) next »