Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
43eddfd4
Unverified
Commit
43eddfd4
authored
Jun 19, 2021
by
Yukihiro "Matz" Matsumoto
Committed by
GitHub
Jun 19, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5484 from jbampton/enable-markdownlint-rule
Enable markdownlint rule MD046 code-block-style
parents
e1637e71
625210f6
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
13 deletions
+10
-13
.github/linters/.markdown-lint.yml
.github/linters/.markdown-lint.yml
+0
-3
CONTRIBUTING.md
CONTRIBUTING.md
+7
-7
doc/guides/mrbgems.md
doc/guides/mrbgems.md
+2
-2
doc/guides/symbol.md
doc/guides/symbol.md
+1
-1
No files found.
.github/linters/.markdown-lint.yml
View file @
43eddfd4
...
@@ -33,6 +33,3 @@ MD026: false
...
@@ -33,6 +33,3 @@ MD026: false
# MD040 fenced-code-language - Fenced code blocks should have a language specified
# MD040 fenced-code-language - Fenced code blocks should have a language specified
MD040
:
false
MD040
:
false
# MD046 code-block-style - Code block style
MD046
:
false
CONTRIBUTING.md
View file @
43eddfd4
...
@@ -82,13 +82,13 @@ on-demand.
...
@@ -82,13 +82,13 @@ on-demand.
#### Insert a break after the function return value:
#### Insert a break after the function return value:
```C
```
c
int
int
main(void)
main
(
void
)
{
{
...
...
}
}
```
```
### Ruby code
### Ruby code
...
...
doc/guides/mrbgems.md
View file @
43eddfd4
...
@@ -273,7 +273,7 @@ mrbgems expects that you have implemented a C method called
...
@@ -273,7 +273,7 @@ mrbgems expects that you have implemented a C method called
by the name of your GEM. If you call your GEM
`c_extension_example`
, your
by the name of your GEM. If you call your GEM
`c_extension_example`
, your
initialisation method could look like this:
initialisation method could look like this:
```
C
```
c
void
void
mrb_c_extension_example_gem_init
(
mrb_state
*
mrb
)
{
mrb_c_extension_example_gem_init
(
mrb_state
*
mrb
)
{
struct
RClass
*
class_cextension
=
mrb_define_module
(
mrb
,
"CExtension"
);
struct
RClass
*
class_cextension
=
mrb_define_module
(
mrb
,
"CExtension"
);
...
@@ -288,7 +288,7 @@ mrbgems expects that you have implemented a C method called
...
@@ -288,7 +288,7 @@ mrbgems expects that you have implemented a C method called
by the name of your GEM. If you call your GEM
`c_extension_example`
, your
by the name of your GEM. If you call your GEM
`c_extension_example`
, your
finalizer method could look like this:
finalizer method could look like this:
```
C
```
c
void
void
mrb_c_extension_example_gem_final
(
mrb_state
*
mrb
)
{
mrb_c_extension_example_gem_final
(
mrb_state
*
mrb
)
{
free
(
someone
);
free
(
someone
);
...
...
doc/guides/symbol.md
View file @
43eddfd4
...
@@ -4,7 +4,7 @@ Symbols in `mruby` C source code is represented by `mrb_sym` which is alias of
...
@@ -4,7 +4,7 @@ Symbols in `mruby` C source code is represented by `mrb_sym` which is alias of
`uint32_t`
. Lower 30 bits are used for symbols so that higher 2 bits can be
`uint32_t`
. Lower 30 bits are used for symbols so that higher 2 bits can be
used as flags, e.g.
`struct mt_elem`
in
`class.c`
.
used as flags, e.g.
`struct mt_elem`
in
`class.c`
.
```
C
```
c
struct
mt_elem
{
struct
mt_elem
{
union
mt_ptr
ptr
;
union
mt_ptr
ptr
;
size_t
func_p
:
1
;
size_t
func_p
:
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment