Commit Graph

348 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto d7960bf2a9 resolve conflict in travis_config.rb 2014-02-10 09:50:32 +09:00
Yukihiro "Matz" Matsumoto 00bdaec766 initialize ci->stackent at the top; #1691 2014-02-09 19:20:16 +09:00
Yukihiro "Matz" Matsumoto 19a08b8455 Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUE
use mrb_bool, FALSE and TRUE more
2014-02-09 18:35:20 +09:00
Yukihiro "Matz" Matsumoto b35893ee13 Merge pull request #1689 from Bovi-Li/remove-notice
Remove *very early version* notice
2014-02-08 13:53:41 +09:00
Yukihiro "Matz" Matsumoto 4a2c37df93 made mrb_define_class to return existing class, with heavy refactoring 2014-02-08 13:44:31 +09:00
Daniel Bovensiepen 5056a29d93 Remove notice of early version 2014-02-08 03:06:05 +08:00
Yukihiro "Matz" Matsumoto 3ff9aad22f move version info from gems to core; ref #576 #1684 2014-02-07 12:18:55 +09:00
Yukihiro "Matz" Matsumoto ed1bf9aa80 introduce mrb_str_new_lit() to create strings from C string litrals 2014-02-06 07:50:34 +09:00
MATSUMOTO Ryosuke 2e564153ac Fix MRUBY_BIRTH_YEAR 2014-02-05 23:58:08 +09:00
MATSUMOTO Ryosuke dadf06f72b Add global constant MRUBY_COPYRIGHT 2014-02-05 23:54:15 +09:00
MATSUMOTO Ryosuke 456a765e53 replace Kernel.show_version with MRUBY_DESCRIPTION 2014-02-05 22:17:44 +09:00
MATSUMOTO Ryosuke 6c91ba001f Fix release date 2014-02-05 21:17:00 +09:00
MATSUMOTO Ryosuke e0c10d03da Add pluggable versioning by mruby-version 2014-02-05 18:45:09 +09:00
mattn c850372029 Remove warning 2014-02-04 18:12:35 +09:00
Yukihiro "Matz" Matsumoto 857e384187 fibers cannot cross C function boundary; close #1680 2014-02-04 14:01:22 +09:00
cremno 4507985c3e use mrb_bool, FALSE and TRUE more
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-31 18:00:36 +01:00
cremno a2cfc9a9af rework mruby-objectspace and gc.[ch]
- 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-31 17:42:05 +01:00
Yukihiro "Matz" Matsumoto 6cf42a8200 Merge pull request #1671 from cremno/extern-cleanup
clean up external symbols
2014-01-31 00:03:28 -08:00
cremno bb25d42d0d add missing declaration of mrb_str_format 2014-01-31 01:34:20 +01:00
cremno f2a62a74ed clean up external symbols
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-31 01:30:18 +01:00
Yukihiro "Matz" Matsumoto 0006278088 move Array#[] tests from mrbgems to test/t/array.rb 2014-01-30 10:33:47 +09:00
Yukihiro "Matz" Matsumoto 5346bdd76b move range aware aget to array.c from mruby-array-ext gem 2014-01-29 14:53:38 +09:00
h2so5 1717666662 fix utf-8 codepage 2014-01-23 03:38:54 +09:00
Carson McDonald d3a057caed Increase test coverage of mruby-struct 2014-01-16 17:54:56 -05:00
Yukihiro "Matz" Matsumoto e63c1e1d49 Merge pull request #1655 from pbosetti/master
Added rewrite of Array#[] to mruby-array-ext gem
2014-01-10 04:49:57 -08:00
h2so5 61745a4727 String#length should be an alias of String#size 2014-01-10 20:01:04 +09:00
Paolo Bosetti 921e6e24f4 Added rewrite of Array#[] to mruby-array-ext gem, so that arrays can be sliced
with Ranges (as a[1..-2])
2014-01-10 11:13:47 +01:00
Yukihiro "Matz" Matsumoto ee8875b1d5 Merge pull request #1651 from h2so5/string-reverse-utf8
add String#reverse, String#reverse! for UTF-8
2014-01-07 15:32:48 -08:00
h2so5 7fc9264b0f add String#reverse, String#reverse! for UTF-8 2014-01-08 02:21:19 +09:00
cremno aa655b9ee1 remove superfluous includes
- reduce compile time by a little bit (full-core: ~0.7s for me)
- thanks to 'include-what-you-use' for some help
- include Standard C header files before any other (coding style)
2014-01-07 17:56:30 +01:00
mattn 993095cb7c Remove duplicate test 2014-01-07 16:57:25 +09:00
Yukihiro "Matz" Matsumoto 78ab979ef9 mruby-string-utf8: redefine String#size for UTF-8 string; #1646 2014-01-07 16:24:09 +09:00
Yukihiro "Matz" Matsumoto dc25f85bab mruby-string-utf8: UTF-8 string may contail NUL; #1646 2014-01-07 15:00:55 +09:00
mattn 055468bfa0 Add mruby-string-utf8 2014-01-07 14:25:08 +09:00
Yukihiro "Matz" Matsumoto dc27c2be46 Merge pull request #1634 from cremno/use-mrb_fixnum_p
tiny word boxing optimization
2014-01-02 15:46:00 -08:00
cremno 18433731ed remove various preprocessor conditionals
- HAVE_IEEEFP_H is nowhere defined or needed at all
- FreeBSD < 4 is unsupported since years
- MSVC workaround (around what exactly?)
2014-01-02 07:33:33 +01:00
cremno 09bb30870b tiny word boxing optimization 2014-01-02 06:36:29 +01:00
Tomoyuki Sahara 120a02c15d add String#partition and String#rpartition. 2013-12-27 15:30:20 +09:00
take_cheeze df780ae5e9 add mrb_intern_lit for creating symbol from string literal 2013-12-01 10:38:59 +09:00
Yukihiro "Matz" Matsumoto 9c6398a444 rename mrb_intern2() to mrb_intern(); huge API incompatibility; close #1513 2013-11-29 08:47:28 +09:00
fleuria 14429ef268 add regression for #1563 2013-11-16 15:05:21 +08:00
fleuria 995e0f89cf add regression for #1572 2013-11-16 15:05:15 +08:00
fleuria 2d646a13f7 add regression for #1564 2013-11-16 14:32:43 +08:00
Yukihiro "Matz" Matsumoto 04a2c58e94 add new function mrb_load_irep_file_cxt() and simplifies mruby.c 2013-11-15 10:49:40 +09:00
Yukihiro "Matz" Matsumoto d8f9a30ef3 fix irep memory leak 2013-11-15 10:35:45 +09:00
bggd 86c80139ab Changed a variable declaration to top of block 2013-11-13 22:35:25 +09:00
Yukihiro "Matz" Matsumoto a725bd7a23 call codedump_all() from mirb if --verbose is set; close #1559 2013-11-10 04:34:53 +09:00
Yukihiro "Matz" Matsumoto e92d4e2680 modified to use irep->reps to reference child ireps. preparation for
removing irep array from mrb_state.  note that instructions OP_LAMBDA,
OP_EXEC and OP_EPUSH are incompatible, and dumped mrb format has changed.
2013-11-07 03:54:22 +09:00
Yukihiro "Matz" Matsumoto f80401de6c resolved conflicts and updated to latest return value change of mrb_generate_code() 2013-11-05 00:13:01 +09:00
Yukihiro "Matz" Matsumoto e386760cc7 add Fiber.current 2013-11-04 23:58:32 +09:00