| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2012-05-22 | should mark iv from MRB_TT_DATA | Yukihiro Matsumoto | |
| 2012-05-21 | use mrb_int for struct tm fractions | Yukihiro Matsumoto | |
| 2012-05-21 | use mrb's allocator; thanks to @mitchblank | Yukihiro Matsumoto | |
| 2012-05-21 | wrong stack position in rescue clause | Yukihiro Matsumoto | |
| 2012-05-20 | More C++ compilability work: mrb_obj_alloc void* conversions | Mitchell Blank Jr | |
| One of the biggest set of changes needed to make C++ compile, is that you can't autoconvert "void*" to a different pointer type without a cast (you can of course, convert pointers *to* "void*"!) For the first part, convert the users of "mrb_obj_alloc". Since it has to return something, make it RBasic* (that's what mrb_obj_alloc() is operating on anyway). This way, even in C you'll get a warning if you don't cast it. For places where there are a lot of similar calls to mrb_obj_alloc(), this can be easily hidden through a macro. I did this in string.c: #define mrb_obj_alloc_string(mrb) ((struct RString *) mrb_obj_alloc((mrb), MRB_TT_STRING, (mrb)->string_class)) I also updated the mrb_object() macro to also return a RBasic* -- my previous commit changed that from "void*" -> "RObject*", but I figure it should be consistent with mrb_obj_alloc() | |||
| 2012-05-20 | ANSIfy name2ctype.h | Yukihiro Matsumoto | |
| 2012-05-20 | 'not (2)' should not raise warning | Yukihiro Matsumoto | |
| 2012-05-20 | waring refactoring; print line number | Yukihiro Matsumoto | |
| 2012-05-20 | Merge pull request #169 from mitchblank/cplusplus | Yukihiro "Matz" Matsumoto | |
| Part 1 of C++ compilability | |||
| 2012-05-20 | Merge pull request #168 from k-tsj/add-cast | Yukihiro "Matz" Matsumoto | |
| Add cast to remove "cast from pointer to integer of different size" warning | |||
| 2012-05-20 | use mrb_assoc_new to generate a key-value pair | Yukihiro Matsumoto | |
| 2012-05-20 | C++ compilability - avoid 'goto' across a variable initialization | Mitchell Blank Jr | |
| C++ is pickier about when a 'goto' can cross a variable being delcared. The fix is to just add a set of braces to restrict the variable's scope. Without this, g++ will fail with: regcomp.c:3057: error: jump to label 'set_call_attr' regcomp.c:3087: error: from here regcomp.c:3041: error: skips initialization of 'int gnum' | |||
| 2012-05-20 | Fix wrong cast | Kazuki Tsujimoto | |
| 2012-05-20 | C++ compilability: don't use "node" as both a type and a member | Mitchell Blank Jr | |
| I originally solved this by renaming the "node" type to "node_t", but Matz didn't like that. He suggested renaming the member variable "nd" instead: https://github.com/mruby/mruby/pull/144#issuecomment-5743153 | |||
| 2012-05-20 | C++ compilability -- don't jump across variable initialization | Mitchell Blank Jr | |
| C++ is picker than C about when you can "goto" across a variable being defined. The fix is to just minimize the variable's scope inside an extra set of brackets. Without this change, g++ has the following errors: transcode.c:590: error: jump to label 'resume_label3' transcode.c:514: error: from here transcode.c:582: error: crosses initialization of 'const unsigned char* p' transcode.c:2124: error: jump to label 'set_encs' transcode.c:2184: error: from here transcode.c:2088: error: skips initialization of 'const char* err' transcode.c:2089: error: skips initialization of 'size_t error_len' transcode.c:2090: error: skips initialization of 'mrb_value bytes' transcode.c:2091: error: skips initialization of 'mrb_value dumped' transcode.c:2092: error: skips initialization of 'size_t readagain_len' transcode.c:2093: error: skips initialization of 'mrb_value bytes2' | |||
| 2012-05-19 | "volatile" no longer needed here | Mitchell Blank Jr | |
| See Matz's comment here: https://github.com/mruby/mruby/pull/144#issuecomment-5754054 | |||
| 2012-05-19 | fix mrb_gc_mark_ht_size() and mrb_gc_free_ht() types | Mitchell Blank Jr | |
| mrb_gc_mark_ht_size() and mrb_gc_free_ht() were declared in gc.h as taking a "RHash *" argument, but then they were defined in hash.c as taking a "RClass *" Get these in sync. | |||
| 2012-05-19 | C++ compilability: "not" is a C++ keyword, avoid it | Mitchell Blank Jr | |
| see http://en.cppreference.com/w/cpp/language/operator_alternative | |||
| 2012-05-19 | C++ compilabilty -- "new" is a C++ keyword, avoid it | Mitchell Blank Jr | |
| 2012-05-19 | C++ compilability -- "try" is a keyword, avoid as variable name | Mitchell Blank Jr | |
| 2012-05-19 | Helper functions for st_foreach() return "enum st_retval" not "int" | Mitchell Blank Jr | |
| Just making this a bit more consistent throughout the code | |||
| 2012-05-20 | Add cast to remove "cast from pointer to integer of different size" warning | Kazuki Tsujimoto | |
| 2012-05-19 | C++ compilability - don't define types inside others | Mitchell Blank Jr | |
| The following is legal code in both C and C++: struct foo { struct bar { int a } x; int y; }; ...however in C++ it defines a type called "foo::bar" instead of "bar". Just avoid this construct altogether | |||
| 2012-05-20 | Fix Hash#shift return value from Hash to Array | Daniel Bovensiepen | |
| 2012-05-19 | should initialize p->sterm every parse time | Yukihiro Matsumoto | |
| 2012-05-19 | remove src/pool.h; close #163 | Yukihiro Matsumoto | |
| 2012-05-19 | mirb should detect end of expression smarter | Yukihiro Matsumoto | |
| 2012-05-19 | remove dependency to node.h and pool.h | Yukihiro Matsumoto | |
| 2012-05-19 | p->tree may be NULL; close #161 | Yukihiro Matsumoto | |
| 2012-05-18 | remove obsolete minimain.c | Yukihiro Matsumoto | |
| 2012-05-18 | Merge pull request #158 from pbosetti/tests | Yukihiro "Matz" Matsumoto | |
| Minor edits to test suite and Math module | |||
| 2012-05-18 | implement Kernel#p in Ruby | Yukihiro Matsumoto | |
| 2012-05-17 | Merge branch 'tests' of github.com:pbosetti/mruby into tests | Paolo Bosetti | |
| 2012-05-18 | remove unused prototype | Yukihiro Matsumoto | |
| 2012-05-18 | revise version description | Yukihiro Matsumoto | |
| 2012-05-18 | failed to initialize source string | Yukihiro Matsumoto | |
| 2012-05-18 | move compile.h to mruby/compile.h | Yukihiro Matsumoto | |
| 2012-05-18 | add extern "C" guards | Yukihiro Matsumoto | |
| 2012-05-18 | yywarn should use warn_buffer not error_buffer | Yukihiro Matsumoto | |
| 2012-05-18 | remove mrb_parse_nstring_ext; use mrb_parser_new() then set p->capture_error ↵ | Yukihiro Matsumoto | |
| = 1; then call mrb_parser_parse(); see tool/mirb/mirb.c | |||
| 2012-05-18 | keep toplevel local variables; close #133 | Yukihiro Matsumoto | |
| 2012-05-18 | new API for parser | Yukihiro Matsumoto | |
| 2012-05-17 | Minor edits in tests for Math module | Paolo Bosetti | |
| 2012-05-18 | remove src/method.h | Yukihiro Matsumoto | |
| 2012-05-18 | remove unused method.h from kernel.c | Yukihiro Matsumoto | |
| 2012-05-18 | remove unused method.h from object.c | Yukihiro Matsumoto | |
| 2012-05-17 | compile error should contain line number | Yukihiro Matsumoto | |
| 2012-05-17 | print line number in compile error messages | Yukihiro Matsumoto | |
| 2012-05-17 | too many line count in nextc() | Yukihiro Matsumoto | |
| 2012-05-17 | add cast to remove warning; close #154 | Yukihiro Matsumoto | |
