bring back all the TSRMLS_FETCH() stuff

for better comparability with the mainstream
This commit is contained in:
Anatol Belski 2014-10-15 09:37:55 +02:00
parent 382f95e612
commit c00424e427
97 changed files with 377 additions and 12 deletions

View file

@ -61,6 +61,7 @@
void closelog(void)
{
TSRMLS_FETCH();
if (PW32G(log_source)) {
DeregisterEventSource(PW32G(log_source));
PW32G(log_source) = NULL;
@ -84,6 +85,7 @@ void syslog(int priority, const char *message, ...)
unsigned short etype;
char *tmp = NULL;
DWORD evid;
TSRMLS_FETCH();
/* default event source */
if (!PW32G(log_source))
@ -121,6 +123,8 @@ void syslog(int priority, const char *message, ...)
void openlog(const char *ident, int logopt, int facility)
{
TSRMLS_FETCH();
if (PW32G(log_source)) {
closelog();
}