diff options
| author | John Bampton <[email protected]> | 2020-12-15 19:34:01 +1000 |
|---|---|---|
| committer | John Bampton <[email protected]> | 2020-12-15 19:44:02 +1000 |
| commit | 4fa3359d44471cf301fe6755dd281a87304d5d01 (patch) | |
| tree | 5161a88ea84758ea3dca9b5271745207964015e0 /include | |
| parent | e9fe337b952731226449027a4c34471af27b23e6 (diff) | |
| download | mruby-4fa3359d44471cf301fe6755dd281a87304d5d01.tar.gz mruby-4fa3359d44471cf301fe6755dd281a87304d5d01.zip | |
refactor: remove trailing whitespace from C, Header, Ruby and YAML files
Lint
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/array.h | 2 | ||||
| -rw-r--r-- | include/mruby/compile.h | 4 | ||||
| -rw-r--r-- | include/mruby/string.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/mruby/array.h b/include/mruby/array.h index 0b0137d5f..da811606a 100644 --- a/include/mruby/array.h +++ b/include/mruby/array.h @@ -64,7 +64,7 @@ struct RArray { #define ARY_SET_EMBED_LEN(a,len) ((a)->flags = ((a)->flags&~MRB_ARY_EMBED_MASK) | ((uint32_t)(len) + 1)) #define ARY_EMBED_PTR(a) ((a)->as.ary) #endif - + #define ARY_LEN(a) (ARY_EMBED_P(a)?ARY_EMBED_LEN(a):(a)->as.heap.len) #define ARY_PTR(a) (ARY_EMBED_P(a)?ARY_EMBED_PTR(a):(a)->as.heap.ptr) #define RARRAY_LEN(a) ARY_LEN(RARRAY(a)) diff --git a/include/mruby/compile.h b/include/mruby/compile.h index 7b5da4f69..9b062e60b 100644 --- a/include/mruby/compile.h +++ b/include/mruby/compile.h @@ -182,8 +182,8 @@ MRB_API struct mrb_parser_state* mrb_parse_nstring(mrb_state*,const char*,size_t MRB_API struct RProc* mrb_generate_code(mrb_state*, struct mrb_parser_state*); MRB_API mrb_value mrb_load_exec(mrb_state *mrb, struct mrb_parser_state *p, mrbc_context *c); -/** program load functions -* Please note! Currently due to interactions with the GC calling these functions will +/** program load functions +* Please note! Currently due to interactions with the GC calling these functions will * leak one RProc object per function call. * To prevent this save the current memory arena before calling and restore the arena * right after, like so diff --git a/include/mruby/string.h b/include/mruby/string.h index 288f0fda0..4410accd5 100644 --- a/include/mruby/string.h +++ b/include/mruby/string.h @@ -159,7 +159,7 @@ MRB_API mrb_int mrb_str_index(mrb_state *mrb, mrb_value str, const char *p, mrb_ * * mrb_close(mrb); * return 0; - * } + * } * * Result: * |
