summaryrefslogtreecommitdiff
path: root/ace/Svc_Conf.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Svc_Conf.h')
-rw-r--r--ace/Svc_Conf.h13
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 *,