summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_variables.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-24 13:53:05 +0000
committerbde <bde@FreeBSD.org>1995-11-24 13:53:05 +0000
commitc14aa7ae4820b9e50a391cdb2e5ed91d81933ccd (patch)
tree9b9a343f5650653a2c35073534d44bcf4fc7473c /sys/ddb/db_variables.h
parentba625bb515e1769c43ed119ece85c666a475ae0d (diff)
downloadFreeBSD-src-c14aa7ae4820b9e50a391cdb2e5ed91d81933ccd.zip
FreeBSD-src-c14aa7ae4820b9e50a391cdb2e5ed91d81933ccd.tar.gz
Completed function declarations and/or added prototypes.
Removed `extern' from prototypes. Sorted prototypes. Uniformized idempotency ifdefs.
Diffstat (limited to 'sys/ddb/db_variables.h')
-rw-r--r--sys/ddb/db_variables.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/sys/ddb/db_variables.h b/sys/ddb/db_variables.h
index 76aeede..55519a8 100644
--- a/sys/ddb/db_variables.h
+++ b/sys/ddb/db_variables.h
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_variables.h,v 1.3 1993/11/25 01:30:14 wollman Exp $
+ * $Id: db_variables.h,v 1.4 1995/05/30 07:57:19 rgrimes Exp $
*/
/*
@@ -31,27 +31,30 @@
* Date: 7/90
*/
-#ifndef _DB_VARIABLES_H_
-#define _DB_VARIABLES_H_
+#ifndef _DDB_DB_VARIABLES_H_
+#define _DDB_DB_VARIABLES_H_
/*
* Debugger variables.
*/
+struct db_variable;
+typedef int db_varfcn_t __P((struct db_variable *vp, db_expr_t *valuep,
+ int op));
struct db_variable {
char *name; /* Name of variable */
int *valuep; /* value of variable */
/* function to call when reading/writing */
- int (*fcn)(/* db_variable *vp, db_expr_t *valuep, int op */);
+ db_varfcn_t *fcn;
#define DB_VAR_GET 0
#define DB_VAR_SET 1
};
-#define FCN_NULL ((int (*)())0)
+#define FCN_NULL ((db_varfcn_t *)0)
extern struct db_variable db_vars[]; /* debugger variables */
extern struct db_variable *db_evars;
extern struct db_variable db_regs[]; /* machine registers */
extern struct db_variable *db_eregs;
-extern void db_read_variable(struct db_variable *, db_expr_t *);
+void db_read_variable __P((struct db_variable *, db_expr_t *));
-#endif /* _DB_VARIABLES_H_ */
+#endif /* _!DDB_DB_VARIABLES_H_ */
OpenPOWER on IntegriCloud