summaryrefslogtreecommitdiff
path: root/ACE/ace/Process.h
diff options
context:
space:
mode:
authormcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-10-14 13:18:15 +0000
committermcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-10-14 13:18:15 +0000
commitac7b8ddf65e72ce632310cce7b0c831095ca81e6 (patch)
tree724bdfadbd28bddf5c443acf1a7c2377f3021b55 /ACE/ace/Process.h
parent694815d2ec8d2a87555ee8db92e74d6079ea24d7 (diff)
downloadATCD-ac7b8ddf65e72ce632310cce7b0c831095ca81e6.tar.gz
Thu Oct 14 13:15:00 UTC 2010 Martin Corino <mcorino@remedy.nl>
* ace/Process.h: * ace/Process.cpp: Changes to allow to dynamically define the max. number of cmdline args. The tao_idl compiler was running out of room in certain instances and the static max was very conservative.
Diffstat (limited to 'ACE/ace/Process.h')
-rw-r--r--ACE/ace/Process.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ACE/ace/Process.h b/ACE/ace/Process.h
index fe01a050526..7ed719b06fc 100644
--- a/ACE/ace/Process.h
+++ b/ACE/ace/Process.h
@@ -84,7 +84,8 @@ public:
ACE_Process_Options (bool inherit_environment = true,
size_t command_line_buf_len = DEFAULT_COMMAND_LINE_BUF_LEN,
size_t env_buf_len = ENVIRONMENT_BUFFER,
- size_t max_env_args = MAX_ENVIRONMENT_ARGS);
+ size_t max_env_args = MAX_ENVIRONMENT_ARGS,
+ size_t max_cmdline_args = MAX_COMMAND_LINE_OPTIONS);
/// Destructor.
~ACE_Process_Options (void);
@@ -440,8 +441,11 @@ protected:
/// Max length of command_line_buf_
size_t command_line_buf_len_;
+ /// Maximum number of command-line arguments. Configurable
+ size_t max_command_line_args_;
+
/// Argv-style command-line arguments.
- ACE_TCHAR *command_line_argv_[MAX_COMMAND_LINE_OPTIONS];
+ ACE_TCHAR **command_line_argv_;
/// Process-group on Unix; unused on Win32.
pid_t process_group_;