commons-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1814156&view=rev
Log:
Unicode clean-up. Remove unused code (neither A nor W version is used)

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=1814156&r1=1814155&r2=1814156&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 09:49:35
2017
@@ -37,19 +37,6 @@ BOOL        apxProcessSetCommandArgsW(AP
 BOOL        apxProcessSetWorkingPathA(APXHANDLE hProcess, LPCSTR szPath);
 BOOL        apxProcessSetWorkingPathW(APXHANDLE hProcess, LPCWSTR szPath);
 
-DWORD       apxProcessPutcA(APXHANDLE hProcess, INT ch);
-DWORD       apxProcessPutcW(APXHANDLE hProcess, INT ch);
-DWORD       apxProcessPutsA(APXHANDLE hProcess, LPCSTR szString);
-DWORD       apxProcessPutsW(APXHANDLE hProcess, LPCWSTR szString);
-
-#ifndef _UNICODE
-#define     apxProcessPutc  apxProcessPutcA
-#define     apxProcessPuts  apxProcessPutsA
-#else
-#define     apxProcessPutc  apxProcessPutcW
-#define     apxProcessPuts  apxProcessPutsW
-#endif
-
 DWORD       apxProcessWrite(APXHANDLE hProcess, LPCVOID lpData, DWORD dwLen);
 
 VOID        apxProcessCloseInputStream(APXHANDLE hProcess);

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=1814156&r1=1814155&r2=1814156&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 09:49:35 2017
@@ -712,66 +712,6 @@ apxProcessSetWorkingPathW(APXHANDLE hPro
 }
 
 DWORD
-apxProcessPutcA(APXHANDLE hProcess, INT ch)
-{
-   LPAPXPROCESS lpProc;
-
-    if (hProcess->dwType != APXHANDLE_TYPE_PROCESS)
-        return 0;
-
-    lpProc = APXHANDLE_DATA(hProcess);
-    return __apxProcessPutc(lpProc, ch, sizeof(CHAR));
-}
-
-DWORD
-apxProcessPutcW(APXHANDLE hProcess, INT ch)
-{
-   LPAPXPROCESS lpProc;
-
-    if (hProcess->dwType != APXHANDLE_TYPE_PROCESS)
-        return 0;
-
-    lpProc = APXHANDLE_DATA(hProcess);
-    return __apxProcessPutc(lpProc, ch, sizeof(WCHAR));
-}
-
-DWORD
-apxProcessPutsA(APXHANDLE hProcess, LPCSTR szString)
-{
-    LPAPXPROCESS lpProc;
-    DWORD len;
-    if (hProcess->dwType != APXHANDLE_TYPE_PROCESS || !szString)
-        return 0;
-    lpProc = APXHANDLE_DATA(hProcess);
-    len = lstrlenA(szString);
-    len = __apxProcessWrite(lpProc, szString, len);
-    if (len) {
-        FlushFileBuffers(lpProc->hChildInpWr);
-        return len;
-    }
-    else
-        return 0;
-}
-
-DWORD
-apxProcessPutsW(APXHANDLE hProcess, LPCWSTR szString)
-{
-    LPAPXPROCESS lpProc;
-    DWORD len;
-    if (hProcess->dwType != APXHANDLE_TYPE_PROCESS || !szString)
-        return 0;
-    lpProc = APXHANDLE_DATA(hProcess);
-    len = lstrlenW(szString);
-    len = __apxProcessWrite(lpProc, szString, len * 2);
-    if (len) {
-        FlushFileBuffers(lpProc->hChildInpWr);
-        return (len / sizeof(WCHAR));
-    }
-    else
-        return 0;
-}
-
-DWORD
 apxProcessWrite(APXHANDLE hProcess, LPCVOID lpData, DWORD dwLen)
 {
     LPAPXPROCESS lpProc;



Mime
View raw message