commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1814167 - in /commons/proper/daemon/trunk/src/native/windows: include/rprocess.h src/rprocess.c
Date Fri, 03 Nov 2017 12:32:56 GMT
Author: markt
Date: Fri Nov  3 12:32:55 2017
New Revision: 1814167

URL: http://svn.apache.org/viewvc?rev=1814167&view=rev
Log:
Unicode clean-up. Remove unused code.

Modified:
    commons/proper/daemon/trunk/src/native/windows/include/rprocess.h
    commons/proper/daemon/trunk/src/native/windows/src/rprocess.c

Modified: commons/proper/daemon/trunk/src/native/windows/include/rprocess.h
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/include/rprocess.h?rev=1814167&r1=1814166&r2=1814167&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/include/rprocess.h (original)
+++ commons/proper/daemon/trunk/src/native/windows/include/rprocess.h Fri Nov  3 12:32:55
2017
@@ -26,15 +26,12 @@ APXHANDLE   apxCreateProcessW(APXHANDLE
                               LPCWSTR szUsername, LPCWSTR szPassword,
                               BOOL bLogonAsService);
 
-BOOL        apxProcessSetExecutableA(APXHANDLE hProcess, LPCSTR szName);
 BOOL        apxProcessSetExecutableW(APXHANDLE hProcess, LPCWSTR szName);
 
-BOOL        apxProcessSetCommandLineA(APXHANDLE hProcess, LPCSTR szCmdline);
 BOOL        apxProcessSetCommandLineW(APXHANDLE hProcess, LPCWSTR szCmdline);
 BOOL        apxProcessSetCommandArgsW(APXHANDLE hProcess, LPCWSTR szTitle,
                                       DWORD dwArgc, LPCWSTR *lpArgs);
 
-BOOL        apxProcessSetWorkingPathA(APXHANDLE hProcess, LPCSTR szPath);
 BOOL        apxProcessSetWorkingPathW(APXHANDLE hProcess, LPCWSTR szPath);
 
 DWORD       apxProcessWrite(APXHANDLE hProcess, LPCVOID lpData, DWORD dwLen);

Modified: commons/proper/daemon/trunk/src/native/windows/src/rprocess.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/src/rprocess.c?rev=1814167&r1=1814166&r2=1814167&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/src/rprocess.c (original)
+++ commons/proper/daemon/trunk/src/native/windows/src/rprocess.c Fri Nov  3 12:32:55 2017
@@ -617,21 +617,6 @@ cleanup:
 }
 
 BOOL
-apxProcessSetExecutableA(APXHANDLE hProcess, LPCSTR szName)
-{
-    LPAPXPROCESS lpProc;
-
-    if (hProcess->dwType != APXHANDLE_TYPE_PROCESS)
-        return FALSE;
-
-    lpProc = APXHANDLE_DATA(hProcess);
-    apxFree(lpProc->szApplicationExec);
-    lpProc->szApplicationExec = apxPoolWStrdupA(hProcess->hPool, szName);
-    OutputDebugStringW(lpProc->szApplicationExec);
-    return lpProc->szApplicationExec != NULL;
-}
-
-BOOL
 apxProcessSetExecutableW(APXHANDLE hProcess, LPCWSTR szName)
 {
     LPAPXPROCESS lpProc;
@@ -647,21 +632,6 @@ apxProcessSetExecutableW(APXHANDLE hProc
 }
 
 BOOL
-apxProcessSetCommandLineA(APXHANDLE hProcess, LPCSTR szCmdline)
-{
-    LPAPXPROCESS lpProc;
-
-    if (hProcess->dwType != APXHANDLE_TYPE_PROCESS)
-        return FALSE;
-
-    lpProc = APXHANDLE_DATA(hProcess);
-    apxFree(lpProc->szCommandLine);
-    lpProc->szCommandLine = apxPoolWStrdupA(hProcess->hPool, szCmdline);
-
-    return lpProc->szCommandLine != NULL;
-}
-
-BOOL
 apxProcessSetCommandLineW(APXHANDLE hProcess, LPCWSTR szCmdline)
 {
     LPAPXPROCESS lpProc;
@@ -677,21 +647,6 @@ apxProcessSetCommandLineW(APXHANDLE hPro
 }
 
 BOOL
-apxProcessSetWorkingPathA(APXHANDLE hProcess, LPCSTR szPath)
-{
-    LPAPXPROCESS lpProc;
-
-    if (hProcess->dwType != APXHANDLE_TYPE_PROCESS)
-        return FALSE;
-
-    lpProc = APXHANDLE_DATA(hProcess);
-    apxFree(lpProc->szWorkingPath);
-    lpProc->szWorkingPath = apxPoolWStrdupA(hProcess->hPool, szPath);
-
-    return lpProc->szWorkingPath != NULL;
-}
-
-BOOL
 apxProcessSetWorkingPathW(APXHANDLE hProcess, LPCWSTR szPath)
 {
     LPAPXPROCESS lpProc;



Mime
View raw message