first bit of doc generation

This commit is contained in:
David Siaw
2019-08-18 12:12:38 +09:00
parent 99715a2e62
commit 8d70a9b1b5
6 changed files with 2451 additions and 6 deletions
+1
View File
@@ -30,5 +30,6 @@ tags
/benchmark/*.png
/doc/api
/doxygen/
/src/y.tab.c
+2428
View File
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -2,6 +2,8 @@
# We provide a minimalistic version called minirake inside of our
# codebase.
-include Makefile.doc
RAKE = ruby ./minirake
all :
@@ -12,6 +14,6 @@ test : all
$(RAKE) test
.PHONY : test
clean :
clean : docsclean
$(RAKE) clean
.PHONY : clean
+14
View File
@@ -0,0 +1,14 @@
SRCS=$(shell find src -name '*.c')
HEADERS=$(shell find include -name '*.h')
doxygen : Doxyfile $(SRCS) $(HEADERS)
doxygen Doxyfile
docs : doxygen
docserver : docs
firefox doxygen/html/index.html
docsclean :
rm -r doxygen
.PHONY : docserver docsclean
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

+5 -5
View File
@@ -8,11 +8,11 @@
#define MRUBY_OBJECT_H
#define MRB_OBJECT_HEADER \
enum mrb_vtype tt:8;\
uint32_t color:3;\
uint32_t flags:21;\
struct RClass *c;\
struct RBasic *gcnext
enum mrb_vtype tt:8; \
uint32_t color:3; \
uint32_t flags:21; \
struct RClass *c; \
struct RBasic *gcnext \
#define MRB_FLAG_TEST(obj, flag) ((obj)->flags & (flag))