summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2012-05-23Merge branch 'Xcode' of github.com:pbosetti/mruby into XCodePaolo Bosetti
2012-05-24made mrb_get_args() better (optinal args, type checks); close #173 #176Yukihiro Matsumoto
2012-05-22Created Xcode 4 project, using the make target to build the tools, and with ↵Paolo Bosetti
a native Xcode target to build a hello world example.
2012-05-23remove warning for open paren after spaceYukihiro Matsumoto
2012-05-23allow empty paren as a valid exprYukihiro Matsumoto
2012-05-23test t/*.rb spacing fixYukihiro Matsumoto
2012-05-23add dependency from keywords to lex.defYukihiro Matsumoto
2012-05-22Merge pull request #183 from thecodeshop/cmake-missYukihiro "Matz" Matsumoto
Add CMake support authorship miss
2012-05-22Add CMake support authorship missJon
2012-05-23cast style consistencyYukihiro Matsumoto
2012-05-23add CMakeFiles and CMakeCache.txt to .gitignoreYukihiro Matsumoto
2012-05-22Merge pull request #180 from mitchblank/masterYukihiro "Matz" Matsumoto
call mrb_close() in tools and test programs
2012-05-23update the desciption regarding comforming to ISO, and provided toolsYukihiro Matsumoto
2012-05-23Merge branch 'master' of github.com:mruby/mrubyYukihiro Matsumoto
2012-05-22Merge pull request #178 from monaka/pr-avoid-redundant-redeclaration-20110522Yukihiro "Matz" Matsumoto
Avoid warning: redundant redeclaration of ‘OnigEncDefaultCharEncoding’
2012-05-23explicit normalization -0.0 to 0.0Yukihiro Matsumoto
2012-05-22Merge pull request #182 from thecodeshop/cmakeYukihiro "Matz" Matsumoto
Add CMake build infrastructure
2012-05-22Add native and cross compiling CMake build supportJon
2012-05-22First cmake build system. Works on Linux.Beoran
2012-05-22remove unused prototype from hash.hYukihiro Matsumoto
2012-05-22remove unused MT code from hash.hYukihiro Matsumoto
2012-05-22should mark iv from MRB_TT_DATAYukihiro Matsumoto
2012-05-22change example code to do mrb_close()Mitchell Blank Jr
I was hoping this would cause valgrind to complain less, but there is still a lot of memory leaked (does mrb_close() actually free all of the managed blocks?) Anyway this helps somewhat and is good practice
2012-05-22Merge remote-tracking branch 'upstream/master'Mitchell Blank Jr
Conflicts: src/time.c
2012-05-22Avoid warning: redundant redeclaration of ‘OnigEncDefaultCharEncoding’Masaki Muranaka
2012-05-22always use value.i for MRB_TT_FALSEYukihiro Matsumoto
2012-05-21use mrb_int for struct tm fractionsYukihiro Matsumoto
2012-05-21use mrb's allocator; thanks to @mitchblankYukihiro Matsumoto
2012-05-20Use integer constants to initialize mrb_intMitchell Blank Jr
As per monaka's comment here... https://github.com/mruby/mruby/pull/175 ...changing these initializations of mrb_int values to use integer constants
2012-05-20make mrb_time_local() arguments consistentMitchell Blank Jr
* mrb_time_gm() uses mrb_int * Same for mrb_time_initialize() * The parameters to time_mktime() are mrb_int, and that's what these values are passed to So I don't see why mrb_time_local() works on mrb_float instead. Lets make it consistent with the other methods defined in time.c
2012-05-21print description on exceptionsYukihiro Matsumoto
2012-05-21wrong stack position in rescue clauseYukihiro Matsumoto
2012-05-20Merge pull request #171 from mitchblank/cplusplusYukihiro "Matz" Matsumoto
More C++ compilability work: mrb_obj_alloc void* conversions
2012-05-20More C++ compilability work: mrb_obj_alloc void* conversionsMitchell 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-20add "all" to test dependencyYukihiro Matsumoto
2012-05-20ANSIfy name2ctype.hYukihiro Matsumoto
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