summaryrefslogtreecommitdiff
path: root/sal/osl/w32/procimpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/w32/procimpl.cxx')
-rw-r--r--sal/osl/w32/procimpl.cxx34
1 files changed, 17 insertions, 17 deletions
diff --git a/sal/osl/w32/procimpl.cxx b/sal/osl/w32/procimpl.cxx
index 5d2e5a0b752c..2b83d0c128b8 100644
--- a/sal/osl/w32/procimpl.cxx
+++ b/sal/osl/w32/procimpl.cxx
@@ -46,10 +46,10 @@
#include <string>
#include <string.h>
-//#################################################
+
extern "C" oslFileHandle SAL_CALL osl_createFileHandleFromOSHandle( HANDLE hFile, sal_uInt32 uFlags );
-//#################################################
+
const sal_Unicode NAME_VALUE_SEPARATOR = TEXT('=');
const sal_Char* SPACE = " ";
const rtl::OUString ENV_COMSPEC ("COMSPEC");
@@ -57,14 +57,14 @@ const rtl::OUString QUOTE("\"");
namespace /* private */
{
- //#################################################
+
typedef std::list<rtl::OUString> string_container_t;
typedef string_container_t::iterator string_container_iterator_t;
typedef string_container_t::const_iterator string_container_const_iterator_t;
typedef std::pair<string_container_iterator_t, string_container_iterator_t> iterator_pair_t;
typedef std::vector<sal_Unicode> environment_container_t;
- //#################################################
+
/* Function object that compares two strings that are
expected to be environment variables in the form
"name=value". Only the 'name' part will be compared.
@@ -90,7 +90,7 @@ namespace /* private */
}
};
- //#################################################
+
/* Function object used by for_each algorithm to
calculate the sum of the length of all strings
in a string container. */
@@ -119,14 +119,14 @@ namespace /* private */
size_t sum_;
};
- //#################################################
+
inline size_t calc_sum_of_string_lengths(const string_container_t& string_cont)
{
return std::for_each(
string_cont.begin(), string_cont.end(), sum_of_string_lengths());
}
- //#################################################
+
void read_environment(/*out*/ string_container_t* environment)
{
// GetEnvironmentStrings returns a sorted list, Windows
@@ -142,7 +142,7 @@ namespace /* private */
FreeEnvironmentStrings(env);
}
- //#################################################
+
/* the environment list must be sorted, new values
should either replace existing ones or should be
added to the list, environment variables will
@@ -184,7 +184,7 @@ namespace /* private */
return true;
}
- //#################################################
+
/* Create a merged environment */
bool setup_process_environment(
rtl_uString* environment_vars[],
@@ -221,7 +221,7 @@ namespace /* private */
return true;
}
- //##########################################################
+
/* In contrast to the Win32 API function CreatePipe with
this function the caller is able to determine separately
which handle of the pipe is inheritable. */
@@ -274,7 +274,7 @@ namespace /* private */
return bRet;
}
- //#########################################################
+
// Add a quote sign to the start and the end of a string
// if not already present
rtl::OUString quote_string(const rtl::OUString& string)
@@ -324,7 +324,7 @@ namespace /* private */
}
return ret;
}
- //##########################################################
+
// Returns the system path of the executable which can either
// be provided via the strImageName parameter or as first
// element of the strArguments list.
@@ -358,7 +358,7 @@ namespace /* private */
return exe_path;
}
- //##########################################################
+
rtl::OUString get_file_extension(const rtl::OUString& file_name)
{
sal_Int32 index = file_name.lastIndexOf('.');
@@ -368,7 +368,7 @@ namespace /* private */
return rtl::OUString();
}
- //##########################################################
+
bool is_batch_file(const rtl::OUString& file_name)
{
rtl::OUString ext = get_file_extension(file_name);
@@ -377,7 +377,7 @@ namespace /* private */
ext.equalsIgnoreAsciiCase("btm"));
}
- //##########################################################
+
rtl::OUString get_batch_processor()
{
rtl::OUString comspec;
@@ -395,7 +395,7 @@ namespace /* private */
} // namespace private
-//#################################################
+
oslProcessError SAL_CALL osl_executeProcess(
rtl_uString *strImageName,
rtl_uString *strArguments[],
@@ -421,7 +421,7 @@ oslProcessError SAL_CALL osl_executeProcess(
NULL, NULL, NULL );
}
-//#################################################
+
oslProcessError SAL_CALL osl_executeProcess_WithRedirectedIO(
rtl_uString *ustrImageName,
rtl_uString *ustrArguments[],