Masaki Muranaka
5cf46db561
Add comments to notify files are auto generated.
2014-03-09 18:10:27 +09:00
Yukihiro "Matz" Matsumoto
5f787b0cdf
Merge pull request #1836 from monaka/pr-use-mrb_str_new_cstr
...
Use mrb_str_new_cstr() instead of mrb_str_new() with strlen().
2014-03-09 17:12:28 +09:00
Masaki Muranaka
40f57f7b42
Use mrb_str_new_cstr() instead of mrb_str_new() with strlen().
2014-03-09 16:45:29 +09:00
Yukihiro "Matz" Matsumoto
4f27089b4a
Merge branch 'master' of github.com:mruby/mruby
2014-03-09 03:16:28 +09:00
Yukihiro "Matz" Matsumoto
bc663549ea
Merge pull request #1833 from cremno/use-mrb_str_cat_lit
...
use mrb_str_cat_lit for literals
2014-03-09 03:01:54 +09:00
Yukihiro "Matz" Matsumoto
24839d74b2
Merge pull request #1834 from cremno/use-nan-and-infinity-macros
...
use NAN and INFINITY macros
2014-03-09 03:01:04 +09:00
cremno
bfc522bcd5
use mrb_str_cat_lit for literals
2014-03-08 18:38:31 +01:00
Yukihiro "Matz" Matsumoto
6423011986
remove invocation of strlen() on buffer of strings; with refactoring
2014-03-09 02:35:49 +09:00
Yukihiro "Matz" Matsumoto
ee57789c72
Merge pull request #1831 from monaka/pr-make-type-casts-safer
...
Make type casts safer
2014-03-09 01:28:31 +09:00
Yukihiro "Matz" Matsumoto
452bf73c23
Merge pull request #1832 from ksss/fix-1823
...
fix #1823
2014-03-09 01:27:34 +09:00
cremno
8a4faae55e
MSVC: add NAN and INFINITY for older versions
2014-03-08 17:25:56 +01:00
cremno
f57b9d1576
use NAN and INFINITY
...
The macro str_to_mrb_float (strto[df]) converts a string to a number,
but these two macros can be used to directly get the special value.
The NAN macro requires quiet NaN support, but so does str_to_mrb_float.
This change also circumvents missing C99 support in Microsoft's C library.
Its (or ISO C90's) strtod doesn't parse "nan" or "inf".
2014-03-08 17:25:07 +01:00
Yukihiro "Matz" Matsumoto
6a23be7805
add data_type check to mruby-random
2014-03-09 01:22:53 +09:00
Yukihiro "Matz" Matsumoto
9a89a82048
refactoring mruby-random
2014-03-09 01:21:57 +09:00
Yukihiro "Matz" Matsumoto
ae65c7da58
implement Array#sample in mruby-random gem
2014-03-09 01:03:34 +09:00
Yukihiro "Matz" Matsumoto
bd4b59cd04
add "?" specifier to check if preceding optional argument is given
2014-03-09 00:25:59 +09:00
ksss
d7b179475b
fix #1823
2014-03-08 17:51:21 +09:00
Masaki Muranaka
270d25bf2d
Make type casts safer.
2014-03-08 15:53:59 +09:00
Yukihiro "Matz" Matsumoto
058bb18f28
Merge pull request #1828 from take-cheeze/string_embed
...
Use sizeof(void*) instead of mrb_int size and extend embed string size.
2014-03-08 15:01:42 +09:00
Yukihiro "Matz" Matsumoto
286665c437
Merge pull request #1830 from cremno/pool-fixes
...
two pool fixes
2014-03-08 13:34:19 +09:00
Yukihiro "Matz" Matsumoto
6f5d234292
Merge pull request #1829 from takkaw/mirb_linenoise
...
support linenoise in mirb
2014-03-08 13:31:38 +09:00
cremno
307c356c8a
pool: use mrb_malloc_simple instead of mrb_malloc
2014-03-07 20:55:11 +01:00
cremno
0c96b936dc
MSVC: fix C4146
...
C4146 (unary minus operator applied to unsigned type, result still
unsigned)
2014-03-07 20:48:44 +01:00
takkaw
0d4bd01cf1
support linenoise in mirb
2014-03-08 01:22:31 +09:00
Yukihiro "Matz" Matsumoto
e5e5aadfa8
convert too much from size_t to uint32_t; mrb_sym2name_len() takes size_t*
2014-03-08 00:38:56 +09:00
take_cheeze
c3f3a0484a
use sizeof(void*) instead of mrb_int size and extend embed string size
2014-03-08 00:32:59 +09:00
Yukihiro "Matz" Matsumoto
aa4f3c79ef
reduce integer type complexity from int/size_t/uint32_t by unifying them to uint32_t; close #1778
2014-03-07 20:30:42 +09:00
Yukihiro "Matz" Matsumoto
ac8d04fb6c
Merge pull request #1820 from ksss/string-embed
...
Embed small string
2014-03-07 18:51:32 +09:00
Yukihiro "Matz" Matsumoto
035898c721
Merge pull request #1824 from unak/patch-1
...
.PHONY should be placed after `all'
2014-03-07 18:41:01 +09:00
Yukihiro "Matz" Matsumoto
fe1b4cea41
Hash#== and eql? should not return fixnum; ref #1823
2014-03-07 18:40:10 +09:00
Yukihiro "Matz" Matsumoto
23853acbb6
Merge pull request #1823 from ksss/hash-eql
...
Fix behavior Hash#eql?
2014-03-07 18:36:53 +09:00
unak
8ee5b0196b
.PHONY should be placed after `all'
...
Because some make (e.g. nmake) recognize it as a normal rule definition and if it's the first rule, make runs it as a default rule.
Consequently `all', `test' and `clean' are all ran (because they are depended by .PHONY), and builded files are cleaned.
2014-03-07 12:11:10 +09:00
ksss
cab1f734ef
Fix behavior Hash#eql?
2014-03-07 11:08:24 +09:00
ksss
4bc19d5fad
add embed string test
2014-03-06 14:00:08 +00:00
ksss
54132e4364
make embed string when create literals
2014-03-06 13:47:51 +00:00
ksss
4070b5987a
embed small string
...
use flags 4 for *this object is embed*
use flags 8~64 for *embed string length*
2014-03-06 13:12:08 +00:00
Yukihiro "Matz" Matsumoto
e40428af7b
Merge pull request #1819 from mattn/fix-mruby-time
...
Fix build on mingw32
2014-03-06 20:57:29 +09:00
mattn
a9ac721e38
Fix build on mingw32
2014-03-06 19:57:22 +09:00
Yukihiro "Matz" Matsumoto
50974614ec
Merge pull request #1818 from unak/patch-1
...
fixed broken gettimeofday implementation for Windows
2014-03-06 12:46:11 +09:00
unak
561c2a1581
fixed broken gettimeofday implementation for Windows
...
small, but critical typo :)
2014-03-06 12:40:48 +09:00
Yukihiro "Matz" Matsumoto
bd4f38add6
Merge pull request #1815 from take-cheeze/source_location
...
Fix and add test for Proc#source_location.
2014-03-06 08:39:51 +09:00
Yukihiro "Matz" Matsumoto
2329b17893
Merge pull request #1817 from cremno/visualcpp-toolchain-change-cflags
...
visualcpp toolchain: change compiler/linker flags
2014-03-06 08:37:40 +09:00
Yukihiro "Matz" Matsumoto
00af5efd96
Merge pull request #1816 from cremno/error.h-add-extern_c
...
error.h: add extern "C" for C++
2014-03-06 08:36:44 +09:00
cremno
ab025dc511
visualcpp toolchain: change compiler/linker flags
...
with these flags visualcpp should behave more like the gcc toolchain
c:
- produce debug information
- optimize for speed instead of disabling optimization
- use non-debug version of Microsoft's C library
- remove unused and unnecessary macro definitions
cxx:
- separate C and C++ (#1594 )
- specify kind of exception handling (see warning C4530)
linker:
- produce debug information
- disable incremental linking and re-enable optimizations
2014-03-05 20:27:58 +01:00
cremno
cbc84ba5b2
error.h: add extern "C" for C++
2014-03-05 19:50:13 +01:00
take_cheeze
f8270ee59b
fix and add test for Proc#source_location
2014-03-06 03:40:41 +09:00
Yukihiro "Matz" Matsumoto
b8625bbc5e
Merge pull request #1814 from cremno/__file__-windows-paths
...
__FILE__ test: add support for \ as separator
2014-03-06 01:44:25 +09:00
Yukihiro "Matz" Matsumoto
1bba236cb2
Merge pull request #1812 from cremno/time-3
...
mruby-time: add gettimeofday(2) for Windows
2014-03-06 01:43:06 +09:00
Yukihiro "Matz" Matsumoto
9dfdbe6632
Merge pull request #1813 from cremno/time-1
...
mruby-time: various smaller changes
2014-03-06 01:41:37 +09:00
cremno
3900fcecd7
__FILE__ test: add support for \ as separator
2014-03-05 17:38:02 +01:00