Re: le_ why static?
| From: | Sascha Schumann | Date: | Fri, 26 Jan 2001 16:56:13 +0000 |
| Subject: | Re: le_ why static? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-45072@lists.php.net to get a copy of this message | ||
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