summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2012-05-20'not (2)' should not raise warningYukihiro Matsumoto
2012-05-20waring refactoring; print line numberYukihiro Matsumoto
2012-05-20Merge pull request #169 from mitchblank/cplusplusYukihiro "Matz" Matsumoto
Part 1 of C++ compilability
2012-05-20Merge pull request #168 from k-tsj/add-castYukihiro "Matz" Matsumoto
Add cast to remove "cast from pointer to integer of different size" warning
2012-05-20use mrb_assoc_new to generate a key-value pairYukihiro Matsumoto
2012-05-20Merge pull request #167 from bovi/fix-hash-shiftYukihiro "Matz" Matsumoto
Fix Hash#shift return value from Hash to Array
2012-05-20C++ compilability - avoid 'goto' across a variable initializationMitchell 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-20Fix wrong castKazuki Tsujimoto
2012-05-20C++ compilability: don't use "node" as both a type and a memberMitchell 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-20C++ compilability -- don't jump across variable initializationMitchell 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 hereMitchell Blank Jr
See Matz's comment here: https://github.com/mruby/mruby/pull/144#issuecomment-5754054
2012-05-19fix mrb_gc_mark_ht_size() and mrb_gc_free_ht() typesMitchell 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-19C++ compilability: "not" is a C++ keyword, avoid itMitchell Blank Jr
see http://en.cppreference.com/w/cpp/language/operator_alternative
2012-05-19C++ compilabilty -- "new" is a C++ keyword, avoid itMitchell Blank Jr
2012-05-19C++ compilability -- "try" is a keyword, avoid as variable nameMitchell Blank Jr
2012-05-19Helper 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-20Add cast to remove "cast from pointer to integer of different size" warningKazuki Tsujimoto
2012-05-19C++ compilability - don't define types inside othersMitchell 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-20Fix Hash#shift return value from Hash to ArrayDaniel Bovensiepen
2012-05-19C++ compilability -- make mrb_object() macro return an RObject, not voidMitchell Blank Jr
2012-05-19Merge pull request #166 from bovi/masterYukihiro "Matz" Matsumoto
Add Tests for String, Hash, Range and Symbol
2012-05-19Delete Plattform status againDaniel Bovensiepen
2012-05-19Merge branch 'master' of github.com:bovi/mrubyDaniel Bovensiepen
2012-05-19Complete ISO test cases for Hash, Range, String and SymbolDaniel Bovensiepen
2012-05-19mirb code termination policy changedYukihiro Matsumoto
2012-05-19mirb termination command renamed to quitYukihiro Matsumoto
2012-05-19unterminated string detection made easyYukihiro Matsumoto
2012-05-19should initialize p->sterm every parse timeYukihiro Matsumoto
2012-05-19Add information file for supported plattformsDaniel Bovensiepen
2012-05-19remove src/pool.h; close #163Yukihiro Matsumoto
2012-05-19even smarter expression termination detectionYukihiro Matsumoto
2012-05-19mirb should detect end of expression smarterYukihiro Matsumoto
2012-05-19remove dependency to node.h and pool.hYukihiro Matsumoto
2012-05-19p->tree may be NULL; close #161Yukihiro Matsumoto
2012-05-18Merge pull request #160 from bovi/masterYukihiro "Matz" Matsumoto
Finish all Integer ISO Tests
2012-05-19Finish all Float ISO TestsDaniel Bovensiepen
2012-05-19Complete Integer Tests for ISODaniel Bovensiepen
2012-05-18remove obsolete minimain.cYukihiro Matsumoto
2012-05-18update test/MakefileYukihiro Matsumoto
2012-05-18Merge pull request #157 from mattn/no_close_stdinYukihiro "Matz" Matsumoto
don't close stdin.
2012-05-18Merge pull request #158 from pbosetti/testsYukihiro "Matz" Matsumoto
Minor edits to test suite and Math module
2012-05-17Added some tests for Math module. Some refactoring in math.c; numeric ↵Paolo Bosetti
tolerance exported as Math::TOLERANCE and also used for fuzzy tests in mrbtest suite
2012-05-18don't close stdin.mattn
2012-05-18implement Kernel#p in RubyYukihiro Matsumoto
2012-05-17Merge branch 'tests' of github.com:pbosetti/mruby into testsPaolo Bosetti
2012-05-18mruby should read from stdin when no argument givenYukihiro Matsumoto
2012-05-18terminate programs after showing version/copyrightYukihiro Matsumoto
2012-05-18rename ruby_show_version to mrb_show_versionYukihiro Matsumoto
2012-05-18remove unused prototypeYukihiro Matsumoto
2012-05-18revise version descriptionYukihiro Matsumoto