8000 refactoring for Doxygen. · mrubyc/mrubyc@9a438ab · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a438ab

Browse files
refactoring for Doxygen.
1 parent be12083 commit 9a438ab

23 files changed

+72
-228
lines changed

src/Makefile

Lines changed: 25 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -92,59 +92,33 @@ _autogen_class_exception.h: $(AUTOGEN_METHOD_SRCS)
9292
_autogen_class_rrt0.h: $(AUTOGEN_METHOD_SRCS)
9393
$(MAKE_METHOD_TABLE) rrt0.c
9494

95-
96-
# File dependencies.
97-
95+
# HAL
9896
$(BUILD_DIR)/hal.o: $(HAL_DIR)/hal.c $(HAL_DIR)/hal.h
9997
$(CC) -c $(CFLAGS) -o $(BUILD_DIR)/hal.o $<
10098

99+
# File dependencies.
100+
MRUBYC_H = vm_config.h \
101+
_autogen_builtin_class.h _autogen_builtin_symbol.h alloc.h \
102+
c_array.h c_hash.h c_math.h c_numeric.h c_object.h c_range.h \
103+
c_string.h class.h console.h error.h global.h keyvalue.h load.h \
104+
symbol.h value.h vm.h
105+
101106
$(BUILD_DIR)/alloc.o: alloc.c vm_config.h alloc.h $(HAL_DIR)/hal.h console.h value.h
102-
$(BUILD_DIR)/c_array.o: c_array.c vm_config.h alloc.h value.h symbol.h \
103-
_autogen_builtin_symbol.h class.h keyvalue.h error.h c_string.h \
104-
c_array.h console.h _autogen_class_array.h
105-
$(BUILD_DIR)/c_hash.o: c_hash.c vm_config.h alloc.h value.h symbol.h \
106-
_autogen_builtin_symbol.h class.h keyvalue.h error.h c_string.h \
107-
c_array.h c_hash.h _autogen_class_hash.h
108-
$(BUILD_DIR)/c_math.o: c_math.c vm_config.h value.h symbol.h _autogen_builtin_symbol.h \
109-
error.h class.h keyvalue.h global.h
110-
$(BUILD_DIR)/c_numeric.o: c_numeric.c vm_config.h value.h symbol.h \
111-
_autogen_builtin_symbol.h error.h class.h keyvalue.h c_string.h \
112-
console.h _autogen_class_integer.h _autogen_class_float.h
113-
$(BUILD_DIR)/c_object.o: c_object.c vm_config.h alloc.h value.h symbol.h \
114-
_autogen_builtin_symbol.h error.h class.h keyvalue.h c_object.h \
115-
c_string.h c_array.h c_hash.h global.h vm.h console.h \
116-
_autogen_class_object.h
117-
$(BUILD_DIR)/c_range.o: c_range.c vm_config.h alloc.h value.h symbol.h \
118-
_autogen_builtin_symbol.h class.h keyvalue.h error.h c_string.h \
119-
c_range.h console.h _autogen_class_range.h
120-
$(BUILD_DIR)/c_string.o: c_string.c vm_config.h alloc.h value.h symbol.h \
121-
_autogen_builtin_symbol.h class.h keyvalue.h error.h c_string.h \
122-
c_array.h c_range.h vm.h console.h _autogen_class_string.h
123-
$(BUILD_DIR)/class.o: class.c vm_config.h alloc.h value.h symbol.h \
124-
_autogen_builtin_symbol.h error.h keyvalue.h class.h c_string.h \
125-
c_array.h c_hash.h c_math.h global.h vm.h load.h console.h \
126-
_autogen_builtin_class.h
127-
$(BUILD_DIR)/console.o: console.c vm_config.h $(HAL_DIR)/hal.h alloc.h value.h \
128-
symbol.h _autogen_builtin_symbol.h class.h keyvalue.h error.h \
129-
console.h c_string.h c_array.h c_hash.h c_range.h global.h
130-
$(BUILD_DIR)/error.o: error.c vm_config.h alloc.h value.h symbol.h \
131-
_autogen_builtin_symbol.h error.h class.h keyvalue.h c_string.h vm.h \
132-
console.h _autogen_class_exception.h
133-
$(BUILD_DIR)/global.o: global.c vm_config.h value.h symbol.h _autogen_builtin_symbol.h \
134-
global.h keyvalue.h class.h error.h console.h c_array.h alloc.h
135-
$(BUILD_DIR)/keyvalue.o: keyvalue.c vm_config.h value.h alloc.h keyvalue.h
136-
$(BUILD_DIR)/load.o: load.c vm_config.h vm.h value.h class.h keyvalue.h error.h \
137-
alloc.h symbol.h _autogen_builtin_symbol.h c_string.h load.h
107+
$(BUILD_DIR)/c_array.o: c_array.c $(MRUBYC_H) _autogen_class_array.h
108+
$(BUILD_DIR)/c_hash.o: c_hash.c $(MRUBYC_H) _autogen_class_hash.h
109+
$(BUILD_DIR)/c_math.o: c_math.c $(MRUBYC_H)
110+
$(BUILD_DIR)/c_numeric.o: c_numeric.c $(MRUBYC_H) _autogen_class_integer.h _autogen_class_float.h
111+
$(BUILD_DIR)/c_object.o: c_object.c $(MRUBYC_H) _autogen_class_object.h
112+
$(BUILD_DIR)/c_range.o: c_range.c $(MRUBYC_H) _autogen_class_range.h
113+
$(BUILD_DIR)/c_string.o: c_string.c $(MRUBYC_H) _autogen_class_string.h
114+
$(BUILD_DIR)/class.o: class.c $(MRUBYC_H)
115+
$(BUILD_DIR)/console.o: console.c $(MRUBYC_H) $(HAL_DIR)/hal.h
116+
$(BUILD_DIR)/error.o: error.c $(MRUBYC_H) _autogen_class_exception.h
117+
$(BUILD_DIR)/global.o: global.c $(MRUBYC_H)
118+
$(BUILD_DIR)/keyvalue.o: keyvalue.c $(MRUBYC_H)
119+
$(BUILD_DIR)/load.o: load.c $(MRUBYC_H)
138120
$(BUILD_DIR)/mrblib.o: mrblib.c
139-
$(BUILD_DIR)/rrt0.o: rrt0.c vm_config.h alloc.h load.h value.h class.h keyvalue.h \
140-
error.h global.h symbol.h _autogen_builtin_symbol.h vm.h console.h \
141-
c_string.h c_array.h rrt0.h $(HAL_DIR)/hal.h _autogen_class_rrt0.h
142-
$(BUILD_DIR)/symbol.o: symbol.c vm_config.h _autogen_builtin_symbol.h alloc.h value.h \
143-
symbol.h class.h keyvalue.h error.h c_string.h c_array.h console.h \
144-
_autogen_class_symbol.h
145-
$(BUILD_DIR)/value.o: value.c vm_config.h value.h symbol.h _autogen_builtin_symbol.h \
146-
class.h keyvalue.h error.h c_string.h c_range.h c_array.h alloc.h \
147-
c_hash.h
148-
$(BUILD_DIR)/vm.o: vm.c vm_config.h alloc.h value.h symbol.h _autogen_builtin_symbol.h \
149-
class.h keyvalue.h error.h c_string.h c_range.h c_array.h c_hash.h \
150-
global.h load.h console.h opcode.h vm.h
121+
$(BUILD_DIR)/rrt0.o: rrt0.c $(MRUBYC_H) rrt0.h _autogen_class_rrt0.h $(HAL_DIR)/hal.h
122+
$(BUILD_DIR)/symbol.o: symbol.c $(MRUBYC_H) _autogen_class_symbol.h
123+
$(BUILD_DIR)/value.o: value.c $(MRUBYC_H)
124+
$(BUILD_DIR)/vm.o: vm.c $(MRUBYC_H) opcode.h

src/c_array.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,7 @@
6060
//@endcond
6161

6262
/***** Local headers ********************************************************/
63-
#include "alloc.h"
64-
#include "value.h"
65-
#include "symbol.h"
66-
#include "class.h"
67-
#include "c_string.h"
68-
#include "c_array.h"
69-
#include "console.h"
70-
#include "vm.h"
63+
#include "mrubyc.h"
7164

7265
/***** Constat values *******************************************************/
7366
/***** Macros ***************************************************************/

src/c_hash.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,7 @@
5555
//@endcond
5656

5757
/***** Local headers ********************************************************/
58-
#include "alloc.h"
59-
#include "value.h"
60-
#include "symbol.h"
61-
#include "class.h"
62-
#include "c_string.h"
63-
#include "c_array.h"
64-
#include "c_hash.h"
65-
58+
#include "mrubyc.h"
6659

6760
/***** Constat values *******************************************************/
6861
/***** Macros ***************************************************************/

src/c_math.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@
1919
//@endcond
2020

2121
/***** Local headers ********************************************************/
22-
#include "value.h"
23-
#include "symbol.h"
24-
#include "error.h"
25-
#include "class.h"
26-
#include "global.h"
22+
#include "mrubyc.h"
2723

2824
/***** Constat values *******************************************************/
2925
/***** Macros ***************************************************************/

src/c_math.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
extern "C" {
2020
#endif
2121

22+
//@cond
2223
void mrbc_init_module_math(void);
24+
//@endcond
2325

2426

2527
#ifdef __cplusplus

src/c_numeric.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,7 @@
2424
//@endcond
2525

2626
/***** Local headers ********************************************************/
27-
#include "value.h"
28-
#include "symbol.h"
29-
#include "error.h"
30-
#include "class.h"
31-
#include "c_string.h"
32-
#include "console.h"
33-
27+
#include "mrubyc.h"
3428

3529
/***** Constat values *******************************************************/
3630
/***** Macros ***************************************************************/

src/c_object.c

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,7 @@
2323
//@endcond
2424

2525
/***** Local headers ********************************************************/
26-
#include "alloc.h"
27-
#include "value.h"
28-
#include "symbol.h"
29-
#include "error.h"
30-
#include "class.h"
31-
#include "c_object.h"
32-
#include "c_string.h"
33-
#include "c_array.h"
34-
#include "c_hash.h"
35-
#include "global.h"
36-
#include "vm.h"
37-
#include "console.h"
38-
26+
#include "mrubyc.h"
3927

4028
/***** Local functions ******************************************************/
4129
//================================================================

src/c_object.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,21 @@
1717
/***** Feature test switches ************************************************/
1818
/***** System headers *******************************************************/
1919
/***** Local headers ********************************************************/
20+
#ifdef __cplusplus
21+
extern "C" {
22+
#endif
23+
2024
/***** Constant values ******************************************************/
2125
/***** Macros ***************************************************************/
2226
/***** Typedefs *************************************************************/
2327
/***** Global variables *****************************************************/
2428
/***** Function prototypes **************************************************/
25-
#ifdef __cplusplus
26-
extern "C" {
27-
#endif
28-
29+
//@cond
2930
struct VM;
3031
struct RObject;
3132

3233
void mrbc_instance_call_initialize(struct VM *vm, struct RObject v[], int argc);
34+
//@endcond
3335

3436

3537
/***** Inline functions *****************************************************/

src/c_range.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@
1919
//@endcond
2020

2121
/***** Local headers ********************************************************/
22-
#include "alloc.h"
23-
#include "value.h"
24-
#include "symbol.h"
25-
#include "class.h"
26-
#include "c_string.h"
27-
#include "c_range.h"
28-
#include "console.h"
22+
#include "mrubyc.h"
2923

3024
/***** Constat values *******************************************************/
3125
/***** Macros ***************************************************************/

src/c_string.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,7 @@
2222
//@endcond
2323

2424
/***** Local headers ********************************************************/
25-
#include "alloc.h"
26-
#include "value.h"
27-
#include "symbol.h"
28-
#include "class.h"
29-
#include "c_string.h"
30-
#include "c_array.h"
31-
#include "c_range.h"
32-
#include "vm.h"
33-
#include "console.h"
34-
25+
#include "mrubyc.h"
3526

3627
/***** Constat values *******************************************************/
3728
/***** Macros ***************************************************************/

0 commit comments

Comments
 (0)
0