Tomoyuki Sahara
bfb9cf7922
Merge pull request #20 from expeditiousRubyist/master
...
Win32 Port
2015-07-22 09:35:39 +09:00
Rubyist
4ab922044d
Removed unnecessary/incorrect use of sizeof(int) and corrected more
...
improper usages of mrb_sys_fail
2015-07-21 15:56:27 -07:00
Rubyist
7ee9ab89f9
Changed some uses of mrb_sys_fail to instead use mrb_raise where
...
appropriate
2015-07-21 03:37:28 -07:00
Yukihiro "Matz" Matsumoto
0f5386db2e
Merge pull request #2894 from suzukaze/fix-docs
...
Fix indents; Indent is two spaces; Delete tabs [skip ci]
2015-07-20 11:15:48 +09:00
Jun Hiroe
18a0900a82
Fix indents; Indent is two spaces; Delete tabs [skip ci]
2015-07-19 23:04:13 +09:00
Rubyist
a426f0e2b5
Overrided close and write to work on Win32 platforms
2015-07-18 23:22:57 -07:00
Yukihiro "Matz" Matsumoto
4ebe94725c
Merge pull request #2892 from Mav7/master
...
Added documentation for hash.
2015-07-18 16:19:27 +09:00
Rubyist
752f7c1526
Minimal semi-working compile on Windows platforms.
2015-07-17 23:45:02 -07:00
Rubyist
7d8cbf1a9c
Added Winsock 2 to list of libraries to use when building for Windows
...
targets
2015-07-17 23:03:34 -07:00
Ralph Desir(Mav7)
6619dc4d75
Deleted range and string markdowns for now.
2015-07-17 14:43:55 -04:00
Ralph Desir
f282d94793
Update hash.h.md
2015-07-17 14:25:15 -04:00
Ralph Desir
78a40fce88
Update hash.h.md
2015-07-17 14:21:13 -04:00
Yukihiro "Matz" Matsumoto
34fc856a45
Merge pull request #2890 from jbreeden/sub_pattern_not_found
...
Don't crash if pattern not found for sub
2015-07-17 11:37:30 +09:00
Jared Breeden
08c12ab7bf
Don't crash if pattern not found for sub
2015-07-16 15:33:07 -07:00
Corey Powell
26bee4a16b
Added mrb_prepend_module to mruby header
2015-07-16 15:25:27 -05:00
Corey Powell
ae1ece7228
Make include_module_at static
...
Since I can't forsee any reason to use it directly inplace of using
prepend/include
2015-07-16 15:25:14 -05:00
Yukihiro "Matz" Matsumoto
6c94b2d963
Merge pull request #2889 from takkaw/fix_build_cygwin64
...
64bit Cygwin also doesn't have frexpl(3)
2015-07-16 21:56:38 +09:00
Yukihiro "Matz" Matsumoto
4f37adfd5e
Merge pull request #2887 from cremno/use-mrb_str_cat_str-instead-of-mrb_str_append
...
use mrb_str_cat_str() instead of mrb_str_append()
2015-07-16 21:56:00 +09:00
Yukihiro "Matz" Matsumoto
31d085e795
Merge pull request #2888 from cremno/delete-non-nullptr-checks-before-mrb_free()-calls
...
delete mrb_free()-related non-NULL checks
2015-07-16 21:55:27 +09:00
takkaw
67e187f0f8
64bit Cygwin also doesn't have frexpl(3)
2015-07-16 18:40:07 +09:00
cremno
0f284091d1
delete mrb_free()-related non-NULL checks
...
No need to optimize since a program only exits once and errors are rare.
Also the mruby source code doesn't have these kind of checks elsewhere.
The ones in {Time,Random}#initialize are kept because there it actually
matters
since initialization always happens and re-initialization is unlikely.
2015-07-16 04:58:21 +02:00
cremno
938ed044f4
use mrb_str_cat_str() instead of mrb_str_append()
...
If the argument is always a string, then mrb_str_cat_str() can be
directly called instead of indirectly by mrb_str_append().
mrb_any_to_s(), mrb_obj_as_string(), mrb_inspect() always return a
string.
2015-07-16 03:56:31 +02:00
Corey Powell
667f7788db
Renamed MRB_FLAG_IS_INSTANCE to MRB_INSTANCE_TT_MASK
2015-07-15 07:27:31 -05:00
Yukihiro "Matz" Matsumoto
207577f0af
mrb_protect() to return the exception raised (with the state of true)
2015-07-15 14:47:15 +09:00
Yukihiro "Matz" Matsumoto
1085167fef
add an small comment description in mruby/error.h header
2015-07-15 14:47:15 +09:00
Yukihiro "Matz" Matsumoto
c0bf76d0a1
remove unused variable declaration
2015-07-15 14:47:15 +09:00
take_cheeze
f6b5a82972
Use class array instead of variadic.
2015-07-15 14:47:15 +09:00
take_cheeze
cdd72d9c37
Implement mrb_protect, mrb_ensure, mrb_rescue, mrb_rescue_exceptions.
...
(`mrb_rescue_exceptions` is mruby implementation of `rb_rescue2`.)
Closes #2844 , closes #2837 .
2015-07-15 14:46:56 +09:00
take_cheeze
2e4bc2de88
Refactor Build#compile_as_cxx.
2015-07-15 14:46:56 +09:00
Corey Powell
dbbf2e2623
Remove non-applicable "hack" comment
2015-07-14 14:12:23 -05:00
Corey Powell
eb172c28d7
Applied gc patch to fix ORIGIN ICLASS method table leak
...
Based on the gc patch by ko1
https://github.com/ruby/ruby/commit/5922c954614e5947a548780bb3b894626affe6dd
2015-07-14 09:44:04 -05:00
Corey Powell
f0e920baf0
Renamed parameters in include_module_at
2015-07-14 08:55:53 -05:00
Yukihiro "Matz" Matsumoto
69a2c5cc73
Merge pull request #2884 from jbreeden/doc_bang_modifier
...
Doc bang modifier
2015-07-14 15:32:47 +09:00
jbreeden
e92da7b76c
Fix typo
2015-07-13 23:26:29 -07:00
jbreeden
510e53d89f
Add ! documentation to mruby.h.md
2015-07-13 23:21:19 -07:00
Yukihiro "Matz" Matsumoto
53a81da0fa
mrb_get_args: improve function description about !
2015-07-14 13:35:06 +09:00
Yukihiro "Matz" Matsumoto
4e7050fe0c
mrb_get_args: allow d!
2015-07-14 13:34:21 +09:00
Yukihiro "Matz" Matsumoto
a075498613
mrb_get_args: allow A,H,s,z,a,d specifiers to take ! to accept nil.
...
S,A,H gives nil, s,z,a,d gives NULL for nil argument. ref 02474da
2015-07-14 13:22:42 +09:00
Blaž Hrastnik
78462c9181
Clean up tests
2015-07-13 23:46:41 +02:00
Blaž Hrastnik
8c4da7accd
assert() cannot be nested
2015-07-13 23:38:37 +02:00
Blaž Hrastnik
8c13e2b7c6
Set origin when doing kind_of? comparisons
2015-07-13 23:35:30 +02:00
Blaž Hrastnik
b0fb9ccfd8
Enable test_prepend_module_ancestors because it seems to pass.
2015-07-13 23:25:01 +02:00
Corey Powell
11cb41770d
Space out test_prepend_super_in_alias assert
...
Also tried to fix it, however the problem lies with how aliased methods
are done and their internal structure.
mruby simply aliases methods by grabbing the RProc and giving it a new name,
super then determines the original method to call by using the name
so a method called m, aliased as m2, will call the m2 super method instead of m
2015-07-13 10:45:57 -05:00
Corey Powell
81a2b3431c
included_modules, origin fix
...
Prepended modules would include their origin ICLASS
2015-07-13 09:49:51 -05:00
Corey Powell
199a808e36
Bugfix, included_modules would include classes
2015-07-13 09:49:18 -05:00
Corey Powell
1f678a4ace
Removed comment beside method_removed
...
Not sure if this apart of the ISO standard, so make sure its not misrepresented
2015-07-13 09:40:40 -05:00
Corey Powell
668153092f
Added Module#method_removed hook
2015-07-13 09:38:24 -05:00
Blaž Hrastnik
11dad71578
Enable visibility prepend tests again
2015-07-13 14:04:43 +02:00
Blaž Hrastnik
a725cb9093
Include prepended methods in the instance_methods list.
2015-07-13 14:04:43 +02:00
Corey Powell
47264bf289
Ported all MRI prepend tests
...
And of course, some of them fail miserably
2015-07-13 14:04:42 +02:00