Skip to content

Commit

Permalink
- drop tsrmls_fetch in popen_ex
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrejoye committed Sep 17, 2010
1 parent 83527d1 commit b154864
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion TSRM/tsrm_virtual_cwd.c
Expand Up @@ -1764,7 +1764,7 @@ CWD_API DIR *virtual_opendir(const char *pathname TSRMLS_DC) /* {{{ */
#ifdef TSRM_WIN32
CWD_API FILE *virtual_popen(const char *command, const char *type TSRMLS_DC) /* {{{ */
{
return popen_ex(command, type, CWDG(cwd).cwd, NULL);
return popen_ex(command, type, CWDG(cwd).cwd, NULL TSRMLS_CC);
}
/* }}} */
#elif defined(NETWARE)
Expand Down
8 changes: 4 additions & 4 deletions TSRM/tsrm_win32.c
Expand Up @@ -446,10 +446,12 @@ static HANDLE dupHandle(HANDLE fh, BOOL inherit) {

TSRM_API FILE *popen(const char *command, const char *type)
{
return popen_ex(command, type, NULL, NULL);
TSRMLS_FETCH();

return popen_ex(command, type, NULL, NULL TSRMLS_CC);
}

TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env)
TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env TSRMLS_DC)
{
FILE *stream = NULL;
int fno, type_len = strlen(type), read, mode;
Expand All @@ -467,8 +469,6 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
HANDLE token_user = NULL;
BOOL asuser = TRUE;

TSRMLS_FETCH();

if (!type) {
return NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion TSRM/tsrm_win32.h
Expand Up @@ -95,7 +95,7 @@ char * tsrm_win32_get_path_sid_key(const char *pathname TSRMLS_DC);
TSRM_API void tsrm_win32_startup(void);
TSRM_API void tsrm_win32_shutdown(void);

TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env);
TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env TSRMLS_DC);
TSRM_API FILE *popen(const char *command, const char *type);
TSRM_API int pclose(FILE *stream);
TSRM_API int tsrm_win32_access(const char *pathname, int mode TSRMLS_DC);
Expand Down
3 changes: 3 additions & 0 deletions UPGRADING.INTERNALS
Expand Up @@ -93,3 +93,6 @@ Use emalloc, emalloc_rel, efree or efree_rel instead.

. tsrm_win32_access
TSRM_API int tsrm_win32_access(const char *pathname, int mode TSRMLS_DC);

. popen_ex (win32)
TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env TSRMLS_DC);

0 comments on commit b154864

Please sign in to comment.