registrar = 0;
int main(int argc, char *argv[]){  int ret;  nsresult rv;  /* With no arguments, regxpcom will autoregister */  if (argc <= 1)  {    startup_xpcom();    nsCOMPtr<nsIComponentRegistrar> registrar;    rv = NS_GetComponentRegistrar(getter_AddRefs(registrar));    if (NS_FAILED(rv)) {      printf("Can not aquire component registrar\n");      return -1;    }    rv = registrar->AutoRegister(nsnull);    ret = (NS_FAILED(rv)) ? -1 : 0;    shutdown_xpcom();    return ret;  }    return ProcessArgs(argc, argv);}