Re: [PHP-DEV] le_ why static?

2001-01-26 Thread Andrei Zmievski

On Fri, 26 Jan 2001, Sam Liddicott wrote:
 Why are le_* garbage destructor handles declared static?
 
 As far as I can tell this means other c files in the same module can't
 "extern" it but as it is static in file scope it has none of the other
 benefits of being static?
 
 Is it to do with threading?  What?

It doesn't have to be static. I've used non-static le_* variables in the
latest extension I'm writing.

-Andrei
* Gun manufacturers don't make bad products, bad parents do. *

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] le_ why static?

2001-01-26 Thread Sascha Schumann

On Fri, 26 Jan 2001, Sam Liddicott wrote:

 Why are le_* garbage destructor handles declared static?

 As far as I can tell this means other c files in the same module can't
 "extern" it but as it is static in file scope it has none of the other
 benefits of being static?

 Is it to do with threading?  What?

Usually, other source files do not need access to those
symbols.  Hence, exporting them without a reason would only
pollute the global symbol space.  If you need to access such
a symbol in more than one source file, I suggest prefixing
the symbol correctly.

- Sascha


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]