Terence Lee
c717bbb77a
LinkerConfig is a struct with five params
2015-09-25 23:22:11 -06:00
Yukihiro "Matz" Matsumoto
524a038876
inspect prints valid UTF-8 character without escaping
2015-09-25 23:09:46 +09:00
Yukihiro "Matz" Matsumoto
c069e5ff40
add boundary check to utf8len() to avoid oob memory access
2015-09-25 23:08:37 +09:00
Yukihiro "Matz" Matsumoto
798ec3aff4
UTF-8 string support in core
...
define MRB_UTF8_STRING (in mrbconf.h) to enable UTF-8 support.
2015-09-24 02:37:33 +09:00
Yukihiro "Matz" Matsumoto
101ec5eb0a
don't print anonymous struct class name
2015-09-23 12:51:12 +09:00
Yukihiro "Matz" Matsumoto
20a4e9ade6
mruby-struct gem refactoring
2015-09-23 12:13:01 +09:00
Yukihiro "Matz" Matsumoto
ad1087f5ed
should initialize local variable prepended to false
2015-09-23 03:27:10 +09:00
Yukihiro "Matz" Matsumoto
6a06a3e48d
String#rindex should no longer take integer argument
2015-09-23 01:06:26 +09:00
Yukihiro "Matz" Matsumoto
418eec2c7d
remove a comment that no longer be true; 2cb6c27
2015-09-23 00:01:39 +09:00
Yukihiro "Matz" Matsumoto
2cb6c27781
String#index should no longer take integer argument
2015-09-22 19:10:48 +09:00
Yukihiro "Matz" Matsumoto
e47f0fc0c2
Merge pull request #2959 from sagmor/api-documentation
...
C API documentation
2015-09-22 04:14:31 +09:00
Seba Gamboa
4c8205db1f
Merge descriptions from doc/api/mruby/array.h.md
2015-09-21 15:13:43 -03:00
Seba Gamboa
88f9770f83
document mrb_nil_value
2015-09-21 14:50:59 -03:00
Seba Gamboa
0e5b815399
Document data header
2015-09-21 14:50:04 -03:00
Yukihiro "Matz" Matsumoto
73dc32c670
add new functions mrb_gc_register/unregister; close #1411
...
some routines need to refer mruby objects (e.g. callbacks), in that case
you have to protect your objects from garbage collection. the new functions
mrb_gc_register() keeps those objects from GC. you have to remove your
objects using mrb_gc_unregister() when your C routines use mruby objects
any longer, otherwise objects will leak.
2015-09-22 00:15:29 +09:00
Seba Gamboa
dd925578c6
Sort compiler macros around
2015-09-21 11:59:39 -03:00
Seba Gamboa
40bf7bde78
Sorting documentation grouping
2015-09-21 01:48:42 -03:00
Seba Gamboa
c127614638
Setting up doxygen groups
2015-09-20 21:14:07 -03:00
Seba Gamboa
f36944f551
Merging documentation from docs
2015-09-20 18:57:17 -03:00
Seba Gamboa
7505bad677
Playing around with some documentations schemes
2015-09-18 23:59:29 -03:00
Yukihiro "Matz" Matsumoto
386a2b8aa1
Merge pull request #2958 from suzukaze/fix-indents
...
Fix indents
2015-09-19 11:41:23 +09:00
Jun Hiroe
ce6297aa04
Fix indents
2015-09-19 06:38:28 +09:00
Yukihiro "Matz" Matsumoto
6d55e770d3
Merge pull request #2957 from suzukaze/replace-1-with-true-macro
...
Replace 1 with TURE macro
2015-09-18 23:20:55 +09:00
Yukihiro "Matz" Matsumoto
9586aaa889
Merge pull request #2956 from Asmod4n/master
...
Problem: Hash#fetch doesn't raise KeyError when a key cannot be found
2015-09-18 23:19:51 +09:00
Jun Hiroe
dd1fa91a66
Replace 1 with TURE macro
2015-09-18 15:51:49 +09:00
Asmod4n
4bd98671bc
Problem: Hash#fetch doesn't raise KeyError when a key cannot be found
...
Solution: change the Exception class raised to KeyError when a key
cannot be found.
2015-09-17 13:28:09 +02:00
Asmod4n
e6d9b450ba
Merge remote-tracking branch 'mruby/master'
2015-09-17 13:24:17 +02:00
Yukihiro "Matz" Matsumoto
070e04ea22
Merge pull request #2953 from takahashim/string_aset
...
support String#[pos, len]= val
2015-09-17 09:34:11 +09:00
takahashim
f1c23a0f75
support String#[]= with 3 args
2015-09-16 18:50:03 +09:00
Yukihiro "Matz" Matsumoto
08f9a3ed04
Merge pull request #2952 from takahashim/hash-fetch-block-key
...
fix block variable in Hash#fetch
2015-09-16 03:19:44 +09:00
takahashim
b88ca625ab
fix block variable in Hash#fetch
2015-09-16 02:57:41 +09:00
Yukihiro "Matz" Matsumoto
e91b7d640c
Merge pull request #2951 from tatsuhiro-t/mrb_close_with_nullptr
...
Don't crash if NULL is passed to mrb_close
2015-09-15 08:45:34 +09:00
Yukihiro "Matz" Matsumoto
e8f88daa9c
instance_eval should set target_class; close #2936
...
target_class should be singleton class of the receiver
2015-09-14 15:56:54 +09:00
Tatsuhiro Tsujikawa
a085c04e37
Don't crash if NULL is passed to mrb_close
...
Sometimes it is very useful just return from mrb_close if NULL is
passed as mrb. This is the same spirit of free(3), which just does
nothing if NULL is passed.
2015-09-12 12:11:10 +09:00
Yukihiro "Matz" Matsumoto
eb9bec19dc
Merge pull request #1822 from mattn/locale
...
Add mrb_utf8_from_locale, mrb_utf8_free, mrb_locale_from_utf8, mrb_locale_free
2015-09-11 11:42:03 +09:00
Yasuhiro Matsumoto
8277e950ee
Support windows locale
...
Add mrb_utf8_from_locale, mrb_utf8_free, mrb_locale_from_utf8, mrb_locale_free. Just works for windows.
2015-09-11 11:12:03 +09:00
Yukihiro "Matz" Matsumoto
3ed8e7fbb2
Merge pull request #2949 from tatsuhiro-t/custom-install-location
...
Customize installation directory using INSTALL_DIR environment variable
2015-09-11 10:48:09 +09:00
Tatsuhiro Tsujikawa
291265ec86
Customize installation directory using INSTALL_DIR environment variable
...
Previously, minirake installed several commands (e.g., mrbc) in
repository locally under bin directory. But there was no knob for
users to change this directory. It effectively made `make distcheck`
fail if mruby was embedded into project managed by autotools.
This change adds a way for the user to change installation directory
by setting INSTALL_DIR environment variable.
2015-09-11 00:15:01 +09:00
Yukihiro "Matz" Matsumoto
698b3c925d
add Hash#rehash to handle key modification; ref #2945
2015-09-10 23:03:53 +09:00
Yukihiro "Matz" Matsumoto
543ac88eae
Merge pull request #2947 from kazuho/kazuho/freeze-hash-key
...
freeze the hash keys (fixes #2945 )
2015-09-10 22:58:01 +09:00
Kazuho Oku
8256d77c7f
avoid unnecessary string duplications by checking the frozen flag
2015-09-10 22:50:01 +09:00
Kazuho Oku
44eb1492be
freeze the hash key ( fixes #2945 )
2015-09-10 22:24:10 +09:00
Yukihiro "Matz" Matsumoto
1cbbb7e11c
Merge branch 'polyfox-module-prepend'
2015-09-05 02:04:20 +09:00
Yukihiro "Matz" Matsumoto
2550edd570
remove origin member to implement prepend from struct RClass; ref #2885
...
instead origin is saved in ICLASS with MRB_FLAG_IS_ORIGIN set.
2015-09-05 02:01:02 +09:00
Yukihiro "Matz" Matsumoto
2f1a031fcd
Merge pull request #2943 from zzak/subdirs
...
Allow rbfiles in mrblib and test to have subdirs
2015-09-05 01:06:12 +09:00
Yukihiro "Matz" Matsumoto
47795d0636
Merge pull request #2942 from suzukaze/revert
...
Revert 7b5f8b0 except removing trailing spaces
2015-09-05 01:05:20 +09:00
Jun Hiroe
6ced9c3752
Revert 7b5f8b0 except removing trailing spaces
2015-09-05 00:08:12 +09:00
Zachary Scott
c6860bc0c4
Allow rbfiles in mrblib and test to have subdirs
2015-09-04 11:01:50 -04:00
Yukihiro "Matz" Matsumoto
fb3883e57e
Merge pull request #2941 from Mav7/master
...
Added range.h.md and edited re.h.md and version.h.md
2015-09-04 17:00:58 +09:00
Yukihiro "Matz" Matsumoto
8bb7962eb8
Merge branch 'module-prepend' of https://github.com/polyfox/mruby into polyfox-module-prepend
2015-09-04 04:01:49 +09:00