Example #1
0
File: main.c Project: taysom/tau
int main (int argc, char *argv[])
{
	char	*dev_name = ".btree";

#if DEVELOPMENT
	debugon();
	fdebugon();
#else
	debugoff();
	fdebugoff();
#endif

FN;
	if (argc > 1) {
		dev_name = argv[1];
	}
#if DEVELOPMENT
	unlink(dev);	/* Development only */
#endif
	binit(20);
	Dev = bopen(dev_name);
	if (!Dev) eprintf("Couldn't open %s:", dev_name);
	blazy(Dev);

	init_string(Dev);
	init_shell(quit_callback);
	init_cmd();
	return shell();
}
Example #2
0
File: main.c Project: taysom/tau
int main (int argc, char *argv[])
{
	char	*dev_name = ".btree";

#if DEVELOPMENT
	debugon();
	fdebugon();
#else
	debugoff();
	fdebugoff();
#endif

FN;
	if (argc > 1) {
		dev_name = argv[1];
	}
	binit(20);

#if DEVELOPMENT
	unlink(dev_name);
#else
	blazy();
#endif

	start_string(dev_name);
	init_shell(quit_callback);
	init_cmd();
	return shell();
}
Example #3
0
File: twins.c Project: wtaysom/tau
void init_twins (char *dev_A, char *log_A, char *dev_B, char *log_B)
{
	static log_s	LogA;
	static log_s	LogB;

	init_log( &LogA, log_A, dev_A);
	init_log( &LogB, log_B, dev_B);

	init_string( &TreeA, &LogA);
	init_string( &TreeB, &LogB);
	blazy(TreeA.t_dev);
}