Jun Hiroe
e340babc1e
Refactor mrb_str_downcase_bang()
2014-05-05 12:42:57 +09:00
Jun Hiroe
c6551e03e0
Refactor mrb_str_capitalize_bang()
2014-05-05 12:40:15 +09:00
sasaki takeru
b59ac841af
Don't reset ridx,eidx. And fix for #1949
2014-05-04 22:39:51 +09:00
Yukihiro "Matz" Matsumoto
e9e4c13390
Merge pull request #2161 from nobu/embedded_document
...
Embedded document
2014-05-04 20:29:48 +09:00
yui-knk
73c370ae52
Fix typo.
2014-05-04 16:43:13 +09:00
Yukihiro "Matz" Matsumoto
0fe62ddcd3
Merge pull request #2183 from yui-knk/fix-error-comment
...
Fix comment of exc_inspect (and adjust spaces)
2014-05-04 12:29:19 +09:00
yui-knk
cf80e7fe21
Fix comment of exc_inspect (and adjust spaces)
2014-05-04 10:22:27 +09:00
cremno
86cfcd20d6
simply use isfinite
2014-05-04 01:50:17 +02:00
Yukihiro "Matz" Matsumoto
f977772359
new macro mrb_int(mrb,x) to retrieve mrb_int from mrb_value with conversion if needed
2014-05-03 23:45:40 +09:00
Yukihiro "Matz" Matsumoto
1519e441a0
use proper length for mrb_get_values_at()
...
separate mrb_range_beg_len() into two: the one truncates range into the
sequence size, and the one does not. #values_at uses the latter.
2014-05-03 23:35:24 +09:00
Yukihiro "Matz" Matsumoto
206c96e4a7
reindent else
2014-05-03 21:20:14 +09:00
Yukihiro "Matz" Matsumoto
0c294af091
convert range edges to integers
2014-05-03 21:19:06 +09:00
Yukihiro "Matz" Matsumoto
bd681269f4
do not raise error in mrb_range_beg_len()
2014-05-03 21:18:25 +09:00
Yukihiro "Matz" Matsumoto
342f124702
raise TypeError instead of ArgumentError when argument of wrong type given to the values_at
2014-05-03 21:17:22 +09:00
Yukihiro "Matz" Matsumoto
c3aa436e2c
Merge branch 'values_at' of https://github.com/take-cheeze/mruby into take-cheeze-values_at
2014-05-03 21:13:03 +09:00
Yukihiro "Matz" Matsumoto
c2bd0d33ea
remove each from range.c
2014-05-03 12:11:17 +09:00
Yukihiro "Matz" Matsumoto
44838f5698
Merge pull request #2178 from cremno/rename-dump_irep
...
add namespace prefix to `dump_irep`
2014-05-03 09:05:43 +09:00
Nobuyoshi Nakada
8b13efc26d
count skipped line numbers
2014-05-03 08:42:32 +09:00
Nobuyoshi Nakada
cf3b880df6
skip to the next line and reset column after =end
2014-05-03 08:42:31 +09:00
Nobuyoshi Nakada
82fce52211
fix char after =end
...
skips() advance after the string skipped.
2014-05-03 08:42:31 +09:00
Nobuyoshi Nakada
854ae564a3
fix embedded documents
...
tabs are allowed after `=begin` and `=end`.
raise `SyntaxError` if no =end is found.
2014-05-03 08:42:31 +09:00
Nobuyoshi Nakada
69c6ff7aa0
fix condition for the rest of input
...
the input must rest the length of a string to be peeked at least.
fixes parse error at embedded documents by string eval, and `-e`
command line options.
2014-05-03 08:42:31 +09:00
cremno
36eef0c222
add namespace prefix to dump_irep
2014-05-02 22:29:12 +02:00
Jun Hiroe
3988597afc
Fix indent
2014-05-03 02:20:23 +09:00
Jun Hiroe
129e5a6c21
Refactor rshift
2014-05-03 01:13:43 +09:00
take_cheeze
44dc05f12a
Implement Struct#values_at and Array#values_at .
...
Add API `mrb_get_values_at()` to mruby/range.h .
2014-05-02 23:20:48 +09:00
sasaki takeru
bf214c4913
goto STOP if ridx==0
2014-05-02 11:05:31 +09:00
Carson McDonald
03796274da
On overflow, clear new stack space before mrb_raise
2014-05-01 10:50:50 -04:00
Thiago Scalone
05df94f148
Added dump_irep in header.
2014-04-30 18:32:55 -03:00
Nobuyoshi Nakada
ab67c57f65
remove trailing spaces
2014-04-30 09:50:14 +09:00
Nobuyoshi Nakada
345f172bba
adjust indent
2014-04-30 09:50:02 +09:00
Yukihiro "Matz" Matsumoto
0bdc87d239
indent codedump when file/line info is not available; ref #2147
2014-04-29 19:08:47 +09:00
Yukihiro "Matz" Matsumoto
70a4cc6b08
codedump for binary mrb files as well
2014-04-29 19:05:49 +09:00
Yukihiro "Matz" Matsumoto
077ccaf4a5
Merge pull request #2158 from kyab/support_doubling_stack
...
Add doubling stack extend, as fix for #2016
2014-04-29 18:57:18 +09:00
Yukihiro "Matz" Matsumoto
7bbda66824
Merge pull request #2147 from take-cheeze/dump_line_file
...
Print file name and line number in codedump if available.
2014-04-29 18:55:19 +09:00
kyab
a13775eb22
Add doubling stack extend, as fix for #2016
2014-04-29 18:42:52 +09:00
Yukihiro "Matz" Matsumoto
aab52be133
Merge pull request #2156 from cremno/fix-disabled-stdio-2
...
fix disabled stdio
2014-04-29 17:11:11 +09:00
Yukihiro "Matz" Matsumoto
5fb5c2a4c2
Merge pull request #2155 from cremno/define-resize_capa-as-a-function
...
define `resize_capa` as a function
2014-04-29 17:10:27 +09:00
Yukihiro "Matz" Matsumoto
8639703bec
Merge pull request #2157 from cremno/remove-mrb_str_offset
...
remove `mrb_str_offset`
2014-04-29 17:08:04 +09:00
Yukihiro "Matz" Matsumoto
5398a55462
Merge pull request #2154 from cremno/dbl_dig
...
remove `DBL_DIG` fallback definition
2014-04-29 17:06:33 +09:00
cremno
739b155535
remove mrb_str_offset
2014-04-29 07:13:44 +02:00
cremno
01b76630b8
fix disabled stdio (and remove trailing spaces)
2014-04-29 07:05:30 +02:00
cremno
0406343f2b
remove DBL_DIG fallback definition
2014-04-29 06:21:49 +02:00
cremno
5b3a442d31
include the missing header for DBL_DIG
2014-04-29 06:21:29 +02:00
cremno
92632c61dd
define resize_capa as a function
...
This increases readability and maintainability,
and it also doesn't use reserved identifiers.
2014-04-29 06:09:45 +02:00
kyab
1405f3a514
Fix MSVC warning for symbol.c
2014-04-29 13:00:11 +09:00
Yukihiro "Matz" Matsumoto
a2dc6f7db9
Merge pull request #2151 from carsonmcdonald/multilinecommentfix
...
Fix multiline comments
2014-04-29 12:29:29 +09:00
Yukihiro "Matz" Matsumoto
2ca5bed901
make cioff in struct REnv from int to ptrdiff_t; close #2149
2014-04-29 12:25:15 +09:00
Yukihiro "Matz" Matsumoto
48e82d7c77
cast intptr_t to mrb_int to pacify compiler warning; close #2148
2014-04-29 12:21:49 +09:00
Yukihiro "Matz" Matsumoto
88c0d0cf9a
clear all stack everytime to prevent GC crash; ref #2109
2014-04-29 10:38:38 +09:00