bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 13/68] ddb/db_variables.c: remove forward declarations


From: Marin Ramesa
Subject: [PATCH 13/68] ddb/db_variables.c: remove forward declarations
Date: Fri, 29 Nov 2013 22:53:38 +0100

* 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.  

---
 ddb/db_task_thread.h | 15 +++++++++++++++
 ddb/db_variables.c   |  4 +---
 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 */
 
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]