summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
2014-02-28Merge pull request #1756 from chasonr/sprintf-utf8Yukihiro "Matz" Matsumoto
Implement sprintf("%c") for UTF-8.
2014-02-27Test for UTF-8 as mattn suggests.chasonr
The string is "Hello world" in Japanese. (hat tip: Google Translate.)
2014-02-28add mruby-strip tool to strip irep's debug infotake_cheeze
2014-02-26Update the Fixnum#chr test for UTF-8.chasonr
2014-02-26Implement sprintf("%c") for UTF-8.chasonr
* sprintf("%c") is changed to accept a string for which String#size returns 1, even if it is longer than one byte, and to convert a Fixnum via Fixnum#chr (possibly returning more than one byte). Thus, if the UTF-8 gem is in use, a character will be understood as a single UTF-8 character. * The change to sprintf depends on the implementation of Fixnum#chr added to mrbgems/mruby-string-utf8/src/string.c. This should work with any other gem that implements a multibyte encoding, as long as it implements String#size and Fixnum#chr as appropriate.
2014-02-27forget to break in the switch statementYukihiro "Matz" Matsumoto
2014-02-26Merge pull request #1744 from cubicdaiya/feature/introduce_mrb_str_cat_litYukihiro "Matz" Matsumoto
Introduce mrb_str_cat_lit
2014-02-26use mrb_str_cat_lit() more widelycubicdaiya
2014-02-26use mrb_str_new_lit instead of mrb_str_new for C string literalscubicdaiya
2014-02-25Merge pull request #1737 from chasonr/Random-static-dataYukihiro "Matz" Matsumoto
Implement default Random instance.
2014-02-25small-optimization2 for mrb_time_zonecubicdaiya
mrb_str_new_static is more efficient than mrb_str_new in this case.
2014-02-25small-optimization for mrb_time_zonecubicdaiya
Using mrb_str_new instead of mrb_str_new_cstr
2014-02-25Implement default Random instance.chasonr
Previously, the default random number generator was implemented using static storage. This storage is common to all instances of mruby in a process, and use of the default random number generator in one instance will perturb the default random number generator in other instances. It is also not thread safe. With this change, the default random number generator is defined as Random::DEFAULT, as it is in CRuby.
2014-02-25Merge pull request #1721 from take-cheeze/d_format_specYukihiro "Matz" Matsumoto
add 'd' format specifier in mrb_get_args and mruby-random gem improvement
2014-02-23Fix unused function warning when readline enabled (mirb)kyab
2014-02-22add test(requires MRB_GC_FIXED_ARENA enabled)take_cheeze
2014-02-22fix possible arena overflowtake_cheeze
2014-02-21use 'd' format spec to get Random objecttake_cheeze
2014-02-21use mrb_intern_lit in mruby-randomtake_cheeze
2014-02-14Give the type 'void' to functions have no argument.cubicdaiya
According to the C standard, it is desirable to give the type 'void' to functions have no argument.
2014-02-14add a regression test for #1706Li Yazhou
2014-02-14keep stack with nlocals instead of nregs; fix #1706Li Yazhou
2014-02-14Merge pull request #1702 from cremno/hash-hash-ext-changesYukihiro "Matz" Matsumoto
hash / hash-ext: various small changes
2014-02-13mrb_str_cat2: deprecated since 0cedf8fcremno
2014-02-13hash / hash-ext: various small changescremno
src/hash.c: - mrb_hash_(aget|aset|dup|delete): internal linkage - remove documentation of methods which are not implemented (in here) - remove #assoc; unused, not in ISO spec - remove #rassoc: same, implementation is also wrong hash-ext mrbgem: - remove header "mruby/khash.h" - remove mrb_hash_values_at (move code into hash_values_at, i: long -> int) - less whitespace in gem_init function
2014-02-12 mruby-math: remove Cygwin compatibility macroscremno
nan: The first non-test release of Cygwin 1.5.x was over a decade ago: <http://cygwin.com/ml/cygwin-announce/2003-09/msg00001.html> log/log10: This workaround is not needed anymore (1.2.6.1, 1.3 - both over 6 years ago): <https://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libm/math/w_log.c?cvsroot=src>
2014-02-10resolve conflict in travis_config.rbYukihiro "Matz" Matsumoto
2014-02-09initialize ci->stackent at the top; #1691Yukihiro "Matz" Matsumoto
2014-02-09Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUEYukihiro "Matz" Matsumoto
use mrb_bool, FALSE and TRUE more
2014-02-08Merge pull request #1689 from Bovi-Li/remove-noticeYukihiro "Matz" Matsumoto
Remove *very early version* notice
2014-02-08made mrb_define_class to return existing class, with heavy refactoringYukihiro "Matz" Matsumoto
2014-02-08Remove notice of early versionDaniel Bovensiepen
2014-02-07move version info from gems to core; ref #576 #1684Yukihiro "Matz" Matsumoto
2014-02-06introduce mrb_str_new_lit() to create strings from C string litralsYukihiro "Matz" Matsumoto
2014-02-05Fix MRUBY_BIRTH_YEARMATSUMOTO Ryosuke
2014-02-05Add global constant MRUBY_COPYRIGHTMATSUMOTO Ryosuke
2014-02-05replace Kernel.show_version with MRUBY_DESCRIPTIONMATSUMOTO Ryosuke
2014-02-05Fix release dateMATSUMOTO Ryosuke
2014-02-05Add pluggable versioning by mruby-versionMATSUMOTO Ryosuke
2014-02-04Remove warningmattn
2014-02-04fibers cannot cross C function boundary; close #1680Yukihiro "Matz" Matsumoto
2014-01-31use mrb_bool, FALSE and TRUE morecremno
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0 but I prefer a type (alias) which emphasizes boolean vars to int. I changed 1/0 to FALSE/TRUE anyway.
2014-01-31rework mruby-objectspace and gc.[ch]cremno
- functions should have C linkage (for C++ code) - add prefix to each_object_callback - use more appropriate variable types / initialization - ObjectSpace::count_objects has 1 opt. arg. - prefer mrb_intern_lit to mrb_intern_cstr for str. lit. - mruby/value.h is included by mruby.h - adjust coding style
2014-01-31Merge pull request #1671 from cremno/extern-cleanupYukihiro "Matz" Matsumoto
clean up external symbols
2014-01-31add missing declaration of mrb_str_formatcremno
2014-01-31clean up external symbolscremno
remove unused and unneeded: - sysexit_status - type (a global variable) add mrb_ prefix to: - codedump_all - class_instance_method_list - parser_dump make various functions static, incl.: - yyparse - make_exception
2014-01-30move Array#[] tests from mrbgems to test/t/array.rbYukihiro "Matz" Matsumoto
2014-01-29move range aware aget to array.c from mruby-array-ext gemYukihiro "Matz" Matsumoto
2014-01-23fix utf-8 codepageh2so5
2014-01-16Increase test coverage of mruby-structCarson McDonald