Components* cp = gComponents; Components* end = cp + NUM_COMPONENTS;
nsModuleComponentInfo* cp = gComponents, *end = cp + NUM_COMPONENTS;
nsParserModule::RegisterSelf(nsIComponentManager *aCompMgr,                             nsIFile* aPath,                             const char* registryLocation,                             const char* componentType){  nsresult rv = NS_OK;  Components* cp = gComponents;  Components* end = cp + NUM_COMPONENTS;  while (cp < end) {    rv = aCompMgr->RegisterComponentSpec(*cp->mCID, cp->mDescription,                                         nsnull, aPath, PR_TRUE, PR_TRUE);    if (NS_FAILED(rv)) {#ifdef DEBUG      printf("nsParserModule: unable to register %s component => %x\n",             cp->mDescription, rv);#endif      break;    }    cp++;  }  return rv;}