diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-10-14 06:29:46 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-10-14 06:29:46 +0000 |
commit | 4c7e1a5cb938f532a96dd288defe33837221ffad (patch) | |
tree | f86045b445ac0f56025d49fac10ffbb9dfa280c4 /ace/Svc_Conf.y | |
parent | 848dfd868cf41b6eb909f7356f905be2b02f4a32 (diff) | |
download | ATCD-4c7e1a5cb938f532a96dd288defe33837221ffad.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Svc_Conf.y')
-rw-r--r-- | ace/Svc_Conf.y | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ace/Svc_Conf.y b/ace/Svc_Conf.y index d173bc1e772..27f0584d33d 100644 --- a/ace/Svc_Conf.y +++ b/ace/Svc_Conf.y @@ -140,6 +140,11 @@ module ACE_ARGV args ($<static_node_>1->parameters ()); ACE_Module_Type *mt = get_module ($<static_node_>-1, $<static_node_>1); + // Make sure that the Module has the same name as the + // Module_Type object from the svc.conf file. + MT_Module *mp = (MT_Module *) mt->object (); + mp->name ($<static_node_>1->name ()); + if (mt->init (args.argc (), args.argv ()) == -1 || ((ACE_Stream_Type *) ($<static_node_>-1)->record ()->type ())->push (mt) == -1) { @@ -152,6 +157,11 @@ module { ACE_Module_Type *mt = get_module ($<static_node_>-1, $<static_node_>1->name ()); + // Make sure that the Module has the same name as the + // Module_Type object from the svc.conf file. + MT_Module *mp = (MT_Module *) mt->object (); + mp->name ($<static_node_>1->name ()); + if (((ACE_Stream_Type *) ($<static_node_>-1)->record ()->type ())->push (mt) == -1) yyerrno++; } @@ -190,7 +200,7 @@ svc_location if (sym != 0) { - ACE_Service_Type_Impl *stp = ace_create_service_type ($1, $2, $3->symbol (), flags); + ACE_Service_Type_Impl *stp = ace_create_service_type ($1, $2, sym, flags); $$ = new ACE_Service_Type ($1, stp, $3->handle (), $4); } else |