Hiroshi Mimaki
c29185ff13
%zu format is not supported by MSVC
2014-11-06 13:30:42 +09:00
Yukihiro "Matz" Matsumoto
0e40468809
specify alignment specifier for GCC and MSC; ref #2630
2014-11-04 07:10:41 +09:00
Yukihiro "Matz" Matsumoto
be844f9284
Fix misaligned access when reading irep; close #2630
...
Add padding bytes before iseq block that may be used as mrb_code[].
Note that dumped mrb format has changed.
Based on a patch from kimu_shu <alfvegardrisc@gmail.com >
2014-11-04 02:41:42 +09:00
Yukihiro "Matz" Matsumoto
32aee72d29
wrong iseq conversion flag
2014-09-04 18:28:56 +09:00
Yukihiro "Matz" Matsumoto
3492be401a
avoid iseq allocation from static irep binary. it reduces 424KB allocation for mrbtest
2014-09-04 17:16:34 +09:00
Tatsuhiko Kubo
7d9b5132a5
Fix error handlings for fputs().
2014-08-28 05:29:25 +09:00
Tatsuhiko Kubo
921798be01
Fix error handlings for fprintf().
2014-08-28 05:19:09 +09:00
Tatsuhiko Kubo
bf173b320f
Remove discareded NULL checks.
2014-08-27 18:58:26 +09:00
cremno
aff65afe97
check the return value of fwrite
2014-07-12 20:36:45 +09:00
Jose Narvaez
a5cadf4bec
Fixed dead increment in 'dump.c' reported by 'clang-analyzer'
2014-06-13 10:13:18 +01:00
Yukihiro "Matz" Matsumoto
79a6574ac8
remove unnecessary assignment; ref #2301
2014-05-22 08:20:54 +09:00
take_cheeze
3fa19357b3
Reduce children filenames listing.
...
It is executed per each debug filenames in irep to same ireps(children).
2014-05-21 22:00:11 +09:00
take_cheeze
87eec261e0
Reduce filename table creation in irep dumping to once.
2014-05-21 21:57:33 +09:00
Yukihiro "Matz" Matsumoto
54c2dcf231
allow NULL (no variable) in lvar section of mrb format; fix #2294
...
This fix use UINT16_MAX for NULL symbol tag, that means maximum symbol length
is not UINT16_MAX-1.
2014-05-19 18:39:37 +09:00
take_cheeze
30e0dc7956
Support LVAR section removing.
2014-05-15 15:08:30 +09:00
Yukihiro "Matz" Matsumoto
9184d254e2
resize register number in LVAR section from 32bits to 16bits
2014-05-14 17:32:30 +09:00
Yukihiro "Matz" Matsumoto
10459a5eb2
Merge branch 'dump_lv' of https://github.com/take-cheeze/mruby into take-cheeze-dump_lv
2014-05-14 11:27:41 +09:00
cremno
36eef0c222
add namespace prefix to dump_irep
2014-05-02 22:29:12 +02:00
Thiago Scalone
05df94f148
Added dump_irep in header.
2014-04-30 18:32:55 -03:00
take_cheeze
5073d14e28
Remove lv_len and use nlocals - 1 instead.
...
Check that `lv`'s length is always `nlocals - 1`.
2014-04-29 22:06:59 +09:00
take_cheeze
4c7f9897c2
Support local variables information dumping.
2014-04-29 20:47:50 +09:00
cremno
01b76630b8
fix disabled stdio (and remove trailing spaces)
2014-04-29 07:05:30 +02:00
Yukihiro "Matz" Matsumoto
48f36d3f0e
better integer size assertion suggested by usak
2014-04-25 04:33:08 +09:00
Yukihiro "Matz" Matsumoto
320f0711f0
remove -Wsign-compare warnings
2014-04-25 02:33:33 +09:00
Jun Hiroe
81308c0bf4
Use boolean macro in is_valid_c_symbol_name()
2014-04-21 01:49:27 +09:00
take_cheeze
1ed9394078
Use boolean macro instead of integer literal in is_debug_info_defined.
2014-04-19 23:25:48 +09:00
Yukihiro "Matz" Matsumoto
72c274473b
remove size_t cast in mrb_assert() since ((size_t)n <= SIZE_MAX) is always true
2014-03-19 09:07:59 +09:00
Yukihiro "Matz" Matsumoto
3e24e06b29
add a space after C reserved words
2014-03-18 23:57:29 +09:00
Yukihiro "Matz" Matsumoto
c476c1b528
symbol length type to be mrb_int
2014-03-15 15:43:40 +09:00
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