FreeBSD/sys/ddb/db_command.c
/*
 * Initialize the command lists from the static tables.
 */
Initialize the command lists from the static tables.
Initialize the command lists from the static tables .
void
db_command_init(void)
{
#define	N(a)	(sizeof(a) / sizeof(a[0]))
	int i;
	for (i = 0; i < N(db_cmds); i++)
		db_command_register(&db_cmd_table, &db_cmds[i]);
	for (i = 0; i < N(db_show_cmds); i++)
		db_command_register(&db_show_table, &db_show_cmds[i]);
	for (i = 0; i < N(db_show_all_cmds); i++)
		db_command_register(&db_show_all_table, &db_show_all_cmds[i]);
#undef N
}
void db_command_init ( void ) { #define N ( a ) 	(sizeof(a) / sizeof(a[0])) int i ; for ( i = 0 ; i < N ( db_cmds ) ; i ++ ) db_command_register ( & db_cmd_table , & db_cmds [ i ] ) ; for ( i = 0 ; i < N ( db_show_cmds ) ; i ++ ) db_command_register ( & db_show_table , & db_show_cmds [ i ] ) ; for ( i = 0 ; i < N ( db_show_all_cmds ) ; i ++ ) db_command_register ( & db_show_all_table , & db_show_all_cmds [ i ] ) ; #undef  N }
Initialize the command lists from the static tables.
Initialize the command lists from the static tables .