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

This commit is contained in:
warren@netscape.com
1999-11-12 09:07:26 +00:00
parent c5c6fb7ce4
commit 8f9dde0b62
14 changed files with 613 additions and 680 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)