diff options
author | cleeland <cleeland@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2010-02-01 17:50:34 +0000 |
---|---|---|
committer | cleeland <cleeland@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2010-02-01 17:50:34 +0000 |
commit | 98683bab755b12b6009029db971208aec1313ec6 (patch) | |
tree | df7362c3c39e96615a6e4d4c0ac3445c63cf610c /ACE/ace/Obstack_T.h | |
parent | fdb179bfaf7f24425bfd03656003afe11445bd0a (diff) | |
download | ATCD-98683bab755b12b6009029db971208aec1313ec6.tar.gz |
ChangeLogTag: Mon Feb 1 17:35:08 UTC 2010 Chris Cleeland <cleeland_c@local>
Diffstat (limited to 'ACE/ace/Obstack_T.h')
-rw-r--r-- | ACE/ace/Obstack_T.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ACE/ace/Obstack_T.h b/ACE/ace/Obstack_T.h index 3e24ab31925..ed1d1d20259 100644 --- a/ACE/ace/Obstack_T.h +++ b/ACE/ace/Obstack_T.h @@ -34,12 +34,12 @@ class ACE_Allocator; * The implementation is similar to the GNU obstack utility, * which is used extensively in the GCC compiler. */ -template <class CHAR> +template <class ACE_CHAR_T> class ACE_Obstack_T { public: // = Initialization and termination methods. - ACE_Obstack_T (size_t size = (4096 * sizeof (CHAR)) - sizeof (ACE_Obchunk), + ACE_Obstack_T (size_t size = (4096 * sizeof (ACE_CHAR_T)) - sizeof (ACE_Obchunk), ACE_Allocator *allocator_strategy = 0); ~ACE_Obstack_T (void); @@ -47,32 +47,32 @@ public: /// a new string. Return -1 if fail, 0 if success. int request (size_t len); - /// Inserting a new CHAR \a c into the current building + /// Inserting a new ACE_CHAR_T \a c into the current building /// block without freezing (null terminating) the block. /// This function will create new chunk by checking the /// boundary of current Obchunk. Return /// the location \a c gets inserted to, or 0 if error. - CHAR *grow (CHAR c); + ACE_CHAR_T *grow (ACE_CHAR_T c); - /// Inserting a new CHAR \a c into the current building + /// Inserting a new ACE_CHAR_T \a c into the current building /// block without freezing (null terminating) the block and without /// checking for out-of-bound error. - void grow_fast (CHAR c); + void grow_fast (ACE_CHAR_T c); /// Freeze the current building block by null terminating it. /// Return the starting address of the current building block, 0 /// if error occurs. - CHAR *freeze (void); + ACE_CHAR_T *freeze (void); /// Copy the data into the current Obchunk and freeze the current /// block. Return the starting address of the current building /// block, 0 if error occurs. @a len specify the string length, /// not the actually data size. - CHAR *copy (const CHAR *data, + ACE_CHAR_T *copy (const ACE_CHAR_T *data, size_t len); /// Return the maximum @a length or @a size of a string that can be put - /// into this Obstack. @a size = @a length * sizeof (CHAR). + /// into this Obstack. @a size = @a length * sizeof (ACE_CHAR_T). /// /// @deprecated No need to use this function as you can put objects of /// arbitrary lengths into the obstack now. |