printf("Registry Test 10/01/96.\n");  if (argc > 1) { gRegistry = argv[1]; } else { gRegistry = REGFILE; } VR_RegistryName(gRegistry);  #if 1 if (NR_RegOpen(gRegistry) != REGERR_OK) VR_CreateRegistry(CR_NEWREGISTRY, "4.0"); interp(); #else if (CreateEmptyRegistry()) goto abort;  if (Install()) goto done;  if (DumpTree()) goto done;  if (GetInfo()) goto done;   #if defined(TEST_NR) if ((err = NR_RegOpen(REGFILE)) != REGERR_OK) { printf("NR_RegOpen(%s) returned %s...Test aborted.\n", REGFILE, errstr(err)); goto abort; }  if (BuildTree()) goto done;  if (FindKeys()) goto done;  if (DumpTree()) goto done;  if (ChangeKeys()) goto done;  if (DeleteKeys()) goto done;  if (DumpTree()) goto done;  if (StressTest()) goto done;  if (DumpTree()) goto done;  done: NR_RegClose(); #else done: #endif  abort: puts("Press Enter to continue..."); getchar(); #endif
interp();
int main(int argc, char *argv[]){	printf("Registry Test 10/01/96.\n");	if (argc > 1)	{		gRegistry = argv[1];	}	else	{		gRegistry = REGFILE;	}	VR_RegistryName(gRegistry);#if 1	if (NR_RegOpen(gRegistry) != REGERR_OK)		VR_CreateRegistry(CR_NEWREGISTRY, "4.0");	interp();#else	if (CreateEmptyRegistry())		goto abort;	if (Install())		goto done;	if (DumpTree())		goto done;	if (GetInfo())		goto done;#if defined(TEST_NR)	if ((err = NR_RegOpen(REGFILE)) != REGERR_OK)	{		printf("NR_RegOpen(%s) returned %s...Test aborted.\n", REGFILE, errstr(err));		goto abort;	}	if (BuildTree())		goto done;	if (FindKeys())		goto done;	if (DumpTree())		goto done;	if (ChangeKeys())		goto done;	if (DeleteKeys())		goto done;	if (DumpTree())		goto done;	if (StressTest())		goto done;	if (DumpTree())		goto done;done:	NR_RegClose();#elsedone:#endifabort:	puts("Press Enter to continue...");	getchar();#endif	return 0;}