diff options
author | eea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-08-14 18:53:19 +0000 |
---|---|---|
committer | eea1 <eea1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-08-14 18:53:19 +0000 |
commit | f3462e219468a98a5c8e09ab5892ee99c35fe13f (patch) | |
tree | 7de28c90b4c979beac9fb03ba4bcc4652a8f5248 /ace/ARGV.cpp | |
parent | 3f97e0c156340d16a961108d42a06c2634822399 (diff) | |
download | ATCD-f3462e219468a98a5c8e09ab5892ee99c35fe13f.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/ARGV.cpp')
-rw-r--r-- | ace/ARGV.cpp | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/ace/ARGV.cpp b/ace/ARGV.cpp index 370de0b8f97..170d59743f9 100644 --- a/ace/ARGV.cpp +++ b/ace/ARGV.cpp @@ -135,12 +135,12 @@ ACE_ARGV::string_to_array() ACE_ARGV::ACE_ARGV (char buf[], int substitute_env_args) - : argc_ (0), - substitute_env_args_ (substitute_env_args), - argv_ (0), + : substitute_env_args_ (substitute_env_args), + state_ (TO_PTR_ARRAY), + argc_ (0), + argv_ (0), buf_ (0), - length_ (0), - state_ (TO_PTR_ARRAY) + length_ (0) { ACE_TRACE ("ACE_ARGV::ACE_ARGV char[] to char *[]"); @@ -157,12 +157,12 @@ ACE_ARGV::ACE_ARGV (char buf[], ACE_ARGV::ACE_ARGV (char *argv[], int substitute_env_args) - : argc_ (0), - substitute_env_args_ (substitute_env_args), - argv_ (0), + : substitute_env_args_ (substitute_env_args), + state_ (TO_STRING), + argc_ (0), + argv_ (0), buf_ (0), - length_ (0), - state_ (TO_STRING) + length_ (0) { ACE_TRACE ("ACE_ARGV::ACE_ARGV char*[] to char[]"); @@ -195,8 +195,9 @@ ACE_ARGV::ACE_ARGV (char *argv[], ACE_NEW (this->buf_, char[buf_len + 1]); char *end = this->buf_; + int j; - for (int j = 0; argv[j] != 0; j++) + for (j = 0; argv[j] != 0; j++) { char *temp; @@ -220,12 +221,12 @@ ACE_ARGV::ACE_ARGV (char *argv[], } ACE_ARGV::ACE_ARGV(int substitute_env_args) - : argc_ (0), - substitute_env_args_ (substitute_env_args), - argv_ (0), + : substitute_env_args_ (substitute_env_args), + state_ (ITERATIVE), + argc_ (0), + argv_ (0), buf_ (0), - length_ (0), - state_ (ITERATIVE) + length_ (0) { ACE_TRACE ("ACE_ARGV::ACE_ARGV Iterative"); @@ -330,3 +331,10 @@ ACE_ARGV::create_buf_from_queue(void) return 0; } +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) +template class ACE_Unbounded_Queue<char *>; +template class ACE_Unbounded_Queue_Iterator<char *>; +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) +#pragma instantiate ACE_Unbounded_Queue<char *> +#pragma instantiate ACE_Unbounded_Queue_Iterator<char *> +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ |