summaryrefslogtreecommitdiff
path: root/ace/Svc_Conf.y
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2001-10-17 06:14:09 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2001-10-17 06:14:09 +0000
commit00e04653fed75db26a50c3b2dd4ed4e3f93b5012 (patch)
tree48c51aedaa1eac4cde2b6d23b85109e7bfa3535e /ace/Svc_Conf.y
parent61136fb2f12ae83458e9110367857ba31972c200 (diff)
downloadATCD-00e04653fed75db26a50c3b2dd4ed4e3f93b5012.tar.gz
ChangeLogTag:Tue Oct 16 23:08:27 2001 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'ace/Svc_Conf.y')
-rw-r--r--ace/Svc_Conf.y14
1 files changed, 5 insertions, 9 deletions
diff --git a/ace/Svc_Conf.y b/ace/Svc_Conf.y
index 2013ce66b43..326c9d9b442 100644
--- a/ace/Svc_Conf.y
+++ b/ace/Svc_Conf.y
@@ -21,9 +21,6 @@ static ACE_Module_Type *ace_get_module (ACE_Static_Node *str_rec,
// Force the pretty debugging code to compile.
// #define YYDEBUG 1
-// Efficient memory allocation technique.
-ACE_Obstack_T<ACE_TCHAR> *ace_obstack = 0;
-
// Keeps track of the number of errors encountered so far.
int yyerrno = 0;
@@ -55,11 +52,11 @@ svc_config_entries
{
$2->apply (); delete $2;
}
- ace_obstack->release ();
+ ACE_SVC_CONF_PARAM->obstack.release ();
}
| svc_config_entries error
{
- ace_obstack->release ();
+ ACE_SVC_CONF_PARAM->obstack.release ();
}
| /* EMPTY */
;
@@ -456,13 +453,12 @@ ACE_TCHAR *program_name;
int
main (int argc, char *argv[])
{
- yyin = stdin;
- ace_obstack = new ACE_Obstack_T<ACE_TCHAR>;
+ ACE_Svc_Conf_Param param (stdin);
// Try to reopen any filename argument to use YYIN.
if (argc > 1 && (yyin = freopen (argv[1], "r", stdin)) == 0)
- (void) ::fprintf (stderr, "usage: %s [file]\n", argv[0]), exit (1);
+ (void) ::fprintf (stderr, "usage: %s [file]\n", argv[0]), ACE_OS::exit (1);
- return yyparse ();
+ return yyparse (&param);
}
#endif /* DEBUGGING */