Added NS_NewGenericModule. Made NS_IMPL_NSGETFACTORY use it to save space. r=dp,alecf

git-svn-id: svn://10.0.0.236/trunk@53341 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com
1999-11-12 09:07:26 +00:00
parent d374c3916f
commit f4eb982ac0
18 changed files with 781 additions and 737 deletions

View File

@@ -43,16 +43,10 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsSampleImpl)
//
static nsModuleComponentInfo components[] =
{
{ NS_SAMPLE_CID, &nsSampleImplConstructor, NS_SAMPLE_PROGID,
"Sample Component" },
{ "Sample Component", NS_SAMPLE_CID, NS_SAMPLE_PROGID, nsSampleImplConstructor }
};
////////////////////////////////////////////////////////////////////////
// Implement the Module object
//
NS_IMPL_MODULE(nsSampleModule, components)
////////////////////////////////////////////////////////////////////////
// Implment the NSGetModule() exported function for your module
//
NS_IMPL_NSGETMODULE(nsSampleModule)
NS_IMPL_NSGETMODULE("nsSampleModule", components)