Fixed some style bugs in the removal of __P(()). Continuation lines
were not outdented to preserve non-KNF lining up of code with parentheses. Switch to KNF formatting.
This commit is contained in:
parent
d27d5e3b44
commit
f8611316d9
@ -101,17 +101,14 @@ db_skip_to_eol()
|
||||
#define CMD_AMBIGUOUS 3
|
||||
#define CMD_HELP 4
|
||||
|
||||
static void db_cmd_list(struct command *table,
|
||||
struct command **aux_tablep,
|
||||
struct command **aux_tablep_end);
|
||||
static void db_cmd_list(struct command *table, struct command **aux_tablep,
|
||||
struct command **aux_tablep_end);
|
||||
static int db_cmd_search(char *name, struct command *table,
|
||||
struct command **aux_tablep,
|
||||
struct command **aux_tablep_end,
|
||||
struct command **cmdp);
|
||||
struct command **aux_tablep,
|
||||
struct command **aux_tablep_end, struct command **cmdp);
|
||||
static void db_command(struct command **last_cmdp,
|
||||
struct command *cmd_table,
|
||||
struct command **aux_cmd_tablep,
|
||||
struct command **aux_cmd_tablep_end);
|
||||
struct command *cmd_table, struct command **aux_cmd_tablep,
|
||||
struct command **aux_cmd_tablep_end);
|
||||
|
||||
/*
|
||||
* Search for command prefix.
|
||||
@ -504,9 +501,8 @@ db_fncall(dummy1, dummy2, dummy3, dummy4)
|
||||
int nargs = 0;
|
||||
db_expr_t retval;
|
||||
typedef db_expr_t fcn_10args_t(db_expr_t, db_expr_t, db_expr_t,
|
||||
db_expr_t, db_expr_t, db_expr_t,
|
||||
db_expr_t, db_expr_t, db_expr_t,
|
||||
db_expr_t);
|
||||
db_expr_t, db_expr_t, db_expr_t, db_expr_t,
|
||||
db_expr_t, db_expr_t, db_expr_t);
|
||||
fcn_10args_t *func;
|
||||
int t;
|
||||
|
||||
|
@ -95,16 +95,12 @@ void db_printsym(db_expr_t, db_strategy_t);
|
||||
int db_sym_numargs(c_db_sym_t, int *, char **);
|
||||
|
||||
boolean_t X_db_line_at_pc(db_symtab_t *symtab, c_db_sym_t cursym,
|
||||
char **filename, int *linenum,
|
||||
db_expr_t off);
|
||||
char **filename, int *linenum, db_expr_t off);
|
||||
c_db_sym_t X_db_lookup(db_symtab_t *stab, const char *symstr);
|
||||
c_db_sym_t X_db_search_symbol(db_symtab_t *symtab, db_addr_t off,
|
||||
db_strategy_t strategy,
|
||||
db_expr_t *diffp);
|
||||
int X_db_sym_numargs(db_symtab_t *, c_db_sym_t, int *,
|
||||
char **);
|
||||
void X_db_symbol_values(db_symtab_t *symtab,
|
||||
c_db_sym_t sym, const char **namep,
|
||||
db_expr_t *valuep);
|
||||
db_strategy_t strategy, db_expr_t *diffp);
|
||||
int X_db_sym_numargs(db_symtab_t *, c_db_sym_t, int *, char **);
|
||||
void X_db_symbol_values(db_symtab_t *symtab, c_db_sym_t sym,
|
||||
const char **namep, db_expr_t *valuep);
|
||||
|
||||
#endif /* !_DDB_DB_SYM_H_ */
|
||||
|
@ -39,8 +39,8 @@
|
||||
|
||||
#include <machine/db_machdep.h> /* type definitions */
|
||||
|
||||
typedef void db_cmdfcn_t(db_expr_t addr, boolean_t have_addr,
|
||||
db_expr_t count, char *modif);
|
||||
typedef void db_cmdfcn_t(db_expr_t addr, boolean_t have_addr, db_expr_t count,
|
||||
char *modif);
|
||||
|
||||
#define DB_COMMAND(cmd_name, func_name) \
|
||||
DB_SET(cmd_name, func_name, db_cmd_set)
|
||||
|
Loading…
x
Reference in New Issue
Block a user