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 |
|
Yukihiro "Matz" Matsumoto
|
bbd50cca2f
|
Merge pull request #878 from monaka/pr-reduce-sprintf
Reduce sprintf() calls. Remove mrb_int_to_str() and MRB_INT_FORMAT.
|
2013-02-23 21:31:39 -08:00 |
|
Yukihiro "Matz" Matsumoto
|
a6d7de5dab
|
Merge pull request #875 from monaka/pr-enable-building-libmruby-with-DISABLE_STDIO-macro
Fix errors caused by stdio.h dependent code.
|
2013-02-23 21:26:37 -08:00 |
|
Masaki Muranaka
|
b833df3d37
|
Remove commented out code. Remove redundant function calls.
|
2013-02-24 00:11:48 +09:00 |
|
Masaki Muranaka
|
dd62349749
|
Reduce sprintf() calls. Remove mrb_int_to_str() and MRB_INT_FORMAT.
|
2013-02-23 21:21:15 +09:00 |
|
Masaki Muranaka
|
2bfb88825d
|
Fix errors caused by stdio.h dependent code.
|
2013-02-23 17:05:18 +09:00 |
|
mattn
|
b1a5146ea8
|
Pluggable Regexp
|
2013-02-15 04:38:27 +09:00 |
|
Masaki Muranaka
|
ea82eaaa79
|
Remove unused function parametes.
|
2013-01-29 17:45:54 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
709c120d14
|
Merge pull request #734 from monaka/pr-error-check-inprovement-in-cdump-and-dump
Error check inprovements in cdump and dump
|
2013-01-15 14:50:05 -08:00 |
|
Selman ULUG
|
443f207f9e
|
silence clang warning
|
2013-01-15 03:08:11 +02:00 |
|
Masaki Muranaka
|
5830553054
|
Use MRB_DUMP_OK instead of 0.
|
2013-01-15 09:03:56 +09:00 |
|
Masaki Muranaka
|
86b3200746
|
Fix error handlings.
|
2013-01-09 13:33:00 +09:00 |
|
Masaki Muranaka
|
81b6895885
|
Merge branch 'master' of github.com:mruby/mruby into pr-strict-error-checking
|
2013-01-09 13:29:59 +09:00 |
|
Masaki Muranaka
|
0b337accad
|
Extract each expresion in "if" statements. It is for maintainability.
|
2013-01-09 12:19:39 +09:00 |
|
Masaki Muranaka
|
94fb04a51e
|
Remove redundant null checks.
|
2013-01-09 11:22:39 +09:00 |
|
Akira Yumiyama
|
b24848b6ab
|
refactoring src/dump.c
|
2012-12-19 08:33:11 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b720156c99
|
Merge pull request #515 from iij/pr-fix-mrb-format
fixes *.mrb dump/load format with escaped character.
|
2012-10-29 23:30:59 -07:00 |
|
Masaki Muranaka
|
30f7a93d41
|
Use NULL instead of 0. (It is not a bug fix but a cosmetic change.)
|
2012-10-30 14:25:00 +09:00 |
|
Akira Yumiyama
|
94d16805a5
|
fixes *.mrb dump/load format with escaped character.
- hex-style string support
- mrb format changes like:
- "\n" (before: \n -> after: \n)
- '\n' (before: \n -> after: \\n)
|
2012-10-30 08:30:18 +09:00 |
|
Yuichiro MASUI
|
15f46a1feb
|
define convert method mrb_int/mrb_float with C string
|
2012-10-27 14:26:50 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
e05bbd45bb
|
Merge pull request #504 from monaka/pr-remove-redundant-sizeof-char
Remove redundant sizeof(char).
|
2012-10-22 07:09:46 -07:00 |
|
Masaki Muranaka
|
dd10048094
|
Remove redundant sizeof(char). "Always sizeof(char) == 1" is described in ISO C specs.
|
2012-10-22 11:21:04 +09:00 |
|
Masaki Muranaka
|
fed285d194
|
Use MRB_DUMP_SIZE_OF_CHAR instead of sizeof(char).
|
2012-10-22 11:17:31 +09:00 |
|
Masaki Muranaka
|
2ab40b4dcc
|
Fix prototype/declaration mismatch in uint8_dump().
|
2012-10-22 11:08:06 +09:00 |
|
Yukihiro Matsumoto
|
9bb6f0b331
|
pool string need not to convert
|
2012-10-20 03:32:02 +09:00 |
|
Tomoyuki Sahara
|
ebf88eec6b
|
a string may have NUL characters.
|
2012-09-10 18:44:30 +09:00 |
|
Yukihiro Matsumoto
|
7d02df3016
|
NaN boxing
|
2012-08-14 13:16:34 +09:00 |
|
Max Anselm
|
5a4beeed2d
|
Make all(?) void casts explicit for C++
|
2012-07-29 19:48:48 -04:00 |
|
Masaki Muranaka
|
cd50242146
|
Reduce strlen(). refs #301
|
2012-07-16 17:58:20 +09:00 |
|
Masaki Muranaka
|
611cf71a10
|
Use mrb_calloc if you want zero cleard buffers.
|
2012-07-08 11:33:49 +09:00 |
|
Masaki Muranaka
|
cc431827e9
|
write_pool_block(): reduce calling strlen(). refs #301.
dump_irep_record(): Set error code in case dump failed.
|
2012-07-06 14:02:55 +09:00 |
|
Yukihiro Matsumoto
|
9936ce997c
|
forgot to rename function mrb_sym2name -> mrb_sym2name_len
|
2012-06-21 16:27:05 +09:00 |
|
Yukihiro Matsumoto
|
a70c4e0c79
|
reduce calling of strlen(); #301
|
2012-06-21 16:22:29 +09:00 |
|
Yukihiro Matsumoto
|
76f7aecff3
|
use ENABLE/DISABLE instead of INCLUDE for configuration macro names
|
2012-06-15 15:34:49 +09:00 |
|