From 4fa3359d44471cf301fe6755dd281a87304d5d01 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Tue, 15 Dec 2020 19:34:01 +1000 Subject: refactor: remove trailing whitespace from C, Header, Ruby and YAML files Lint --- include/mruby/array.h | 2 +- include/mruby/compile.h | 4 ++-- include/mruby/string.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include') 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: * -- cgit v1.2.3