diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-10-17 06:14:09 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2001-10-17 06:14:09 +0000 |
commit | 6bcd33bdc7d55ddc518fbf3684d3b373c458fc98 (patch) | |
tree | 48c51aedaa1eac4cde2b6d23b85109e7bfa3535e /ace/Svc_Conf.h | |
parent | e1534473d79e01c601984c0674356adb61956a16 (diff) | |
download | ATCD-6bcd33bdc7d55ddc518fbf3684d3b373c458fc98.tar.gz |
ChangeLogTag:Tue Oct 16 23:08:27 2001 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'ace/Svc_Conf.h')
-rw-r--r-- | ace/Svc_Conf.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ace/Svc_Conf.h b/ace/Svc_Conf.h index 1b4ce560b39..ecf285baebf 100644 --- a/ace/Svc_Conf.h +++ b/ace/Svc_Conf.h @@ -75,7 +75,8 @@ public: : type (SVC_CONF_FILE), yyerrno (0), yylineno (1), - buffer (0) + buffer (0), + obstack () { source.file = file; } @@ -85,7 +86,8 @@ public: : type (SVC_CONF_DIRECTIVE), yyerrno (0), yylineno (1), - buffer (0) + buffer (0), + obstack () { source.directive = directive; } @@ -121,6 +123,10 @@ public: /// Configurator file/direct scan. ace_yy_buffer_state *buffer; + /// Obstack used for efficient memory allocation when + /// parsing/scanning a service configurator directive. + ACE_Obstack_T<ACE_TCHAR> obstack; + }; // Parameter that is passed down to the yyparse() function, and @@ -188,9 +194,6 @@ extern ACE_TCHAR *ace_yytext; /// Holds the length of the lexeme for the current token extern int ace_yyleng; -/// Efficient memory allocation technique -extern ACE_Obstack_T<ACE_TCHAR> *ace_obstack; - /// Factory that creates a new ACE_Service_Type_Impl. extern ACE_Service_Type_Impl * ace_create_service_type (const ACE_TCHAR *, |