summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorSteve Totten <tottens@users.noreply.github.com>2002-04-01 17:59:38 +0000
committerSteve Totten <tottens@users.noreply.github.com>2002-04-01 17:59:38 +0000
commitff844709f0e414e7b811518d97c35a12ce6dbe6f (patch)
treef393708f5fb1f932f160fb5edfb6d93eb7b7b4a7 /ace
parent91d015a85bcd9199e3c2e968d4ed06a420e32ea5 (diff)
downloadATCD-ff844709f0e414e7b811518d97c35a12ce6dbe6f.tar.gz
ChangeLogTag: Mon Apr 1 11:56:55 2002 Steve Totten <totten_s@ociweb.com>
Diffstat (limited to 'ace')
-rw-r--r--ace/Process.cpp3
-rw-r--r--ace/Process.h13
2 files changed, 13 insertions, 3 deletions
diff --git a/ace/Process.cpp b/ace/Process.cpp
index d806a97dc24..72c7689f5e2 100644
--- a/ace/Process.cpp
+++ b/ace/Process.cpp
@@ -778,6 +778,7 @@ ACE_Process_Options::command_line (const ACE_TCHAR *const argv[])
}
}
+ command_line_argv_calculated_ = 0;
return 0; // Success.
}
@@ -796,6 +797,7 @@ ACE_Process_Options::command_line (const ACE_TCHAR *format, ...)
// Useless macro.
va_end (argp);
+ command_line_argv_calculated_ = 0;
return 0;
}
@@ -829,6 +831,7 @@ ACE_Process_Options::command_line (const ACE_ANTI_TCHAR *format, ...)
delete [] anti_clb;
+ command_line_argv_calculated_ = 0;
return 0;
}
#endif /* ACE_HAS_WCHAR && !ACE_HAS_WINCE */
diff --git a/ace/Process.h b/ace/Process.h
index 36169594466..75b2a15cf86 100644
--- a/ace/Process.h
+++ b/ace/Process.h
@@ -168,9 +168,16 @@ public:
/// Current working directory. Returns "" if nothing has been set.
ACE_TCHAR *working_directory (void);
- /// Buffer of command-line options. Returns exactly what was passed
- /// to this->command_line. If @arg max_len is not 0, receives the
- /// maximum length of the command line buffer.
+ /// Buffer of command-line options. Returns a pointer to a buffer that
+ /// contains the list of command line options. Prior to a call to
+ /// command_line_argv(), this is a single string of space separated
+ /// arguments independent of which form of command_line() was used to
+ /// create it. After a call to command_line_argv(), this is a list of
+ /// strings each terminated by '\0'. [Note: spawn() will call
+ /// command_line_argv().] The total length of all these strings is the
+ /// same as the single string in the prior case and can be obtained by
+ /// providing max_len. @arg max_len, if non-zero, provides a location
+ /// into which the total length of the command line buffer is returned.
ACE_TCHAR *command_line_buf (int *max_len = 0);
/**