Yukihiro "Matz" Matsumoto
ad04b45e5b
Merge pull request #1851 from tmash06/add_include_limit_h
...
add including limits.h.
2014-03-13 03:09:03 +09:00
tmash06
cfcd2e2dc9
add including limits.h.
...
Because Android's libc(bionic) defines SIZE_MAX at limits.h.
2014-03-13 02:37:09 +09:00
take_cheeze
bbb7ba46b2
don't use of anonymous unions
2014-03-11 22:01:00 +09:00
Masaki Muranaka
270d25bf2d
Make type casts safer.
2014-03-08 15:53:59 +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
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
cubicdaiya
67de10bfcb
use C style comments instead of C++ style comments
...
According to CONTRIBUTING.md,
Don't use C++ style comments
/* This is the prefered comment style */
Use C++ style comments only for temporary comment e.g. commenting out some code lines.
2014-03-01 03:31:45 +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
Yukihiro "Matz" Matsumoto
a1131361d5
dump.c: wrong filename table dump for multiple script files; close #1648
2014-01-08 00:40:45 +09:00
take_cheeze
ccc22d7b09
move debug record size assertion to correct position
2013-11-26 11:43:39 +09:00
take_cheeze
23a412830d
fix realloc error
2013-11-24 20:39:17 +09:00
Yukihiro "Matz" Matsumoto
16e1fbc1e8
mrb format should be portable among configurations (e.g. MRB_NAN_BOXING)
2013-11-20 07:34:57 +09:00
Yukihiro "Matz" Matsumoto
d73dfa8708
resolve conflict
2013-11-20 07:29:55 +09:00
Miura Hideki
54c5b12fb7
irep->pool struct pool -> mrb_value
2013-11-19 20:38:02 +09:00
Yukihiro "Matz" Matsumoto
7ca2763f75
write_debug_record should dump info recursively; close #1581
2013-11-18 07:48:32 +09:00
Yukihiro "Matz" Matsumoto
23f6d05ac6
wrong size of filenames buffer
2013-11-15 14:48:45 +09:00
Yukihiro "Matz" Matsumoto
2bda965258
should output debug info for child ireps; close #1575
2013-11-15 14:16:49 +09:00
Yukihiro "Matz" Matsumoto
13c2d65b02
should not free buffer that is still accessed
2013-11-15 11:47:08 +09:00
Yukihiro "Matz" Matsumoto
3286e63202
wrong size of filenames buffer
2013-11-15 11:46:30 +09:00
Yukihiro "Matz" Matsumoto
71354b91cb
enum mrb_vtype varies on compile time configuration, namely MRB_NAN_BOXING
2013-11-15 02:45:52 +09:00
Yukihiro "Matz" Matsumoto
ca704e5438
pacify some warnings on OpenBSD
2013-11-13 10:33:10 +09:00
Yukihiro "Matz" Matsumoto
677a2ac226
irep->pool not to be GCed
2013-11-07 04:20:46 +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
Cremno
501df71833
MSVC: compilation works again (+minor style fixes)
2013-09-03 21:15:14 +02:00
take_cheeze
3df8686259
don't use RArray in filename table generating
2013-09-02 22:46:57 +09:00
take_cheeze
8588c54452
declare variable outside for
2013-09-02 22:12:55 +09:00
take_cheeze
3d1fffbd6b
support multiple filename in irep
2013-09-02 00:48:06 +09:00
Carson McDonald
e57da6ae2a
Fix signed/unsigned warning, size_t for start_index was discarded.
2013-07-03 07:15:30 -04:00
Carson McDonald
43ba7f74a2
Fix unsigned/signed comparison.
2013-07-01 07:01:02 -04:00
crimsonwoods
1dfe52e53d
fix typos.
2013-05-05 11:28:06 +09:00
Yukihiro "Matz" Matsumoto
bdb11e3101
remove our own prototype for sprintf(); ref #1223
2013-04-29 15:26:33 +09:00
Masaki Muranaka
f139320635
Revert file access mode to 0644.
2013-04-29 09:25:54 +09:00
arton
513bce35f6
add extern funcs declaration and casts for cimpiling C++ compiler
2013-04-28 15:31:50 +09:00
Yukihiro "Matz" Matsumoto
c79172dfd5
put spaces after if/while
2013-04-20 23:11:43 +09:00
h2so5
337076f9ba
Add validation for C language symbol name
2013-04-09 16:21:51 +09:00
Julien Ammous
35450bfcac
stdint header seems required on osx for uint8_t
2013-04-06 14:59:55 +02:00
Yukihiro "Matz" Matsumoto
e0ba717d2c
Merge pull request #1108 from monaka/pr-cleanup-numeric.c-20130329
...
Cleanup numeric.c
2013-03-30 04:50:21 -07:00
Masaki Muranaka
a9f2473377
Add null char terminate to each symbol name.
2013-03-30 13:17:29 +09:00
Masaki Muranaka
c260ef894e
Rename mrb_fix2str() to mrb_fixnum_to_str(). This is for naming consistency.
2013-03-29 22:19:26 +09:00
Masaki Muranaka
05ad6902fd
Remove API mrb_string_value(). There have mrb_str_to_str() in the core. And mrb_string_value() is no merit to keep using.
2013-03-29 18:01:25 +09:00
Masaki Muranaka
c67aec25b6
Reduce temporary memory allocations. They are redundant.
2013-03-29 16:23:10 +09:00
Masaki Muranaka
31bb00b9c2
Add arena guard. It will be exausted when the pool is huge.
2013-03-28 17:57:52 +09:00
Yuichiro MASUI
f3ebb89392
Added debug infomation section into .mrb file
2013-03-27 18:21:04 +09:00
Yukihiro Matz Matsumoto
e03e697549
little cosmetic change (delete word Rite); bump dump file version number
2013-03-27 11:28:05 +09:00
Yukihiro Matz Matsumoto
a0f6e4d58e
resolve conflict from #964
2013-03-27 00:52:24 +09:00
Yukihiro Matz Matsumoto
93e9174c57
symbol length make size_t from mrb_int; cancel #993 monaka/pr-cleanup-symbol.c-20130312
2013-03-14 19:09:55 +09:00
Masaki Muranaka
5bed51e584
Don't use int. It decreases portability. Use size_t as array index and length. It avoids overflow in the extreme situations.
2013-03-09 00:35:58 +09:00
Masaki Muranaka
9324c2168a
Don't initialize variables that store result as MRB_DUMP_OK. It possibly causes bugs on modifications in the future.
2013-03-08 22:48:32 +09:00
Yuichiro MASUI
814094230c
Change unsigned char to uint8_t
2013-03-08 18:55:15 +09:00
Yuichiro MASUI
2842583678
New mrb format. The detail is in https://github.com/mruby/mruby/issues/944
2013-03-08 03:14:21 +09:00