summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-29 22:53:38 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-05 05:57:35 +0900
commit63e9b4ccc348a9e033b66ab5a2dc3cb7b3e15d5a (patch)
tree3702df4a84d98baaa2cc2c9b9b003c0c7831731a /ddb
parentc47bf59c3d75b77b6cd0f242ffb471fcfbf68e1b (diff)
ddb/db_variables.c: remove forward declarations
* ddb/db_task_thread.h: Include ddb/db_variables.h. (db_set_default_thread, db_get_task_thread): Add prototypes. * ddb/db_variables: Include ddb/db_macro.h. (db_set_default_thread, db_get_task_thread, db_arg_variable): Remove forward declarations.
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_task_thread.h15
-rw-r--r--ddb/db_variables.c4
2 files changed, 16 insertions, 3 deletions
diff --git a/ddb/db_task_thread.h b/ddb/db_task_thread.h
index ebf99d8..0c7fafa 100644
--- a/ddb/db_task_thread.h
+++ b/ddb/db_task_thread.h
@@ -27,6 +27,8 @@
#ifndef _DDB_DB_TASK_THREAD_H_
#define _DDB_DB_TASK_THREAD_H_
+#include <ddb/db_variables.h>
+
#include <kern/task.h>
#include <kern/thread.h>
@@ -48,4 +50,17 @@ extern boolean_t db_check_thread_address_valid(thread_t);
extern boolean_t db_get_next_thread(thread_t *, int);
extern void db_init_default_thread(void);
+extern void
+db_set_default_thread(
+ struct db_variable *vp,
+ db_expr_t *valuep,
+ int flag);
+
+extern void
+db_get_task_thread(
+ struct db_variable *vp,
+ db_expr_t *valuep,
+ int flag,
+ db_var_aux_param_t ap);
+
#endif /* _DDB_DB_TASK_THREAD_H_ */
diff --git a/ddb/db_variables.c b/ddb/db_variables.c
index 59f1ddf..e737cfe 100644
--- a/ddb/db_variables.c
+++ b/ddb/db_variables.c
@@ -39,6 +39,7 @@
#include <ddb/db_output.h>
#include <ddb/db_variables.h>
#include <ddb/db_task_thread.h>
+#include <ddb/db_macro.h>
extern unsigned long db_maxoff;
@@ -46,9 +47,6 @@ extern db_expr_t db_radix;
extern db_expr_t db_max_width;
extern db_expr_t db_tab_stop_width;
extern db_expr_t db_max_line;
-extern void db_set_default_thread();
-extern void db_get_task_thread();
-extern void db_arg_variable();
#define DB_NWORK 32 /* number of work variable */