Masaki Muranaka
|
2b5b161f8b
|
Sort include files. Some redundant includes are removed.
|
2013-03-29 10:22:31 +09:00 |
|
Masaki Muranaka
|
92821cf2ef
|
Use mrb_str_cat() instead of mrb_str_cat2() as possible.
|
2013-03-23 15:55:55 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
acab35a2a5
|
Merge pull request #1039 from crimsonwoods/fix_the_type_of_opcode
Fix the type of value that is returned by bit shift expression.
|
2013-03-22 19:11:51 -07:00 |
|
Masaki Muranaka
|
f8fa56d8c3
|
Use mrb_intern2() instead of mrb_intern(). This is for avoiding overhead by strlen().
|
2013-03-22 14:22:45 +09:00 |
|
crimsonwoods
|
c1f6a27660
|
fix the type of value that is returned by bit-shift expression.
|
2013-03-21 22:57:14 +09:00 |
|
Yukihiro Matz Matsumoto
|
d0d920e909
|
rename mrb_true_or_false_value() to mrb_bool_value()
|
2013-03-19 12:03:54 +09:00 |
|
Masaki Muranaka
|
84b279d915
|
Use mrb_true_or_false_value() / in hash_equal().
|
2013-03-19 11:04:21 +09:00 |
|
Masaki Muranaka
|
615e8560b8
|
Use mrb_true_or_false_value() / in mrb_hash_has_keyWithKey().
|
2013-03-19 11:04:21 +09:00 |
|
Masaki Muranaka
|
50ad607e91
|
Use mrb_true_or_false_value() / in mrb_hash_empty_p().
|
2013-03-19 11:04:21 +09:00 |
|
Yukihiro Matz Matsumoto
|
243669308d
|
obsolete mrb_object; opposite of bc870ce
|
2013-03-15 23:16:20 +09:00 |
|
MATSUMOTO Ryosuke
|
809732ab40
|
Adjust some indents
|
2013-03-02 10:26:54 -08:00 |
|
Masaki Muranaka
|
da9b9c549a
|
Remove unused structures.
|
2013-03-01 13:18:57 +09:00 |
|
brainopia
|
db6e6dc5b8
|
Remove freeze leftovers
|
2013-02-27 09:47:05 +04:00 |
|
Masaki Muranaka
|
d864648506
|
Clean code up.
|
2013-02-26 19:16:48 +09:00 |
|
Masaki Muranaka
|
b833df3d37
|
Remove commented out code. Remove redundant function calls.
|
2013-02-24 00:11:48 +09:00 |
|
Masamitsu MURASE
|
aeb8e2eaac
|
Fix potential bug about Hash.
|
2013-02-03 16:52:43 +09:00 |
|
skandhas
|
1a528da40b
|
add mrb_check_hash_type
|
2013-01-10 17:02:41 +08:00 |
|
Ryunosuke SATO
|
ee0563823d
|
Stop warning: extra ';' outside of a function
|
2012-11-30 22:43:53 +09:00 |
|
Yukihiro Matz Matsumoto
|
3eeef30618
|
make mrb_hash_keys() non static function
|
2012-11-14 14:42:21 +09:00 |
|
Yukihiro Matz Matsumoto
|
d2d2e9f5f9
|
add new predicates mrb_string_p(),mrb_array_p(),mrb_hash_p()
|
2012-11-04 05:02:39 +09:00 |
|
Yukihiro Matsumoto
|
18fbe4d0b7
|
do not touch h from Hash when h might be NULL
|
2012-10-23 14:16:14 +09:00 |
|
Masamitsu MURASE
|
42fa994e9b
|
Publish mrb_hash_delete_key.
|
2012-08-26 04:17:56 +09:00 |
|
Masaki Muranaka
|
22b032fcdf
|
mrb_hash_delete_key(), mrb_hash_keys() : Declare as static.
mrb_check_hash_type(): Remove as no implementation.
|
2012-07-29 20:11:43 +09:00 |
|
Masaki Muranaka
|
b2fc62f3a9
|
Remove commented out code.
|
2012-07-29 15:25:14 +09:00 |
|
Masamitsu MURASE
|
b48cfea736
|
Protect deleted key and value from GC.
|
2012-07-28 21:10:57 +09:00 |
|
Junji Sawada
|
96366117ea
|
Remove unnecessary header inclusion
|
2012-07-14 11:39:25 +09:00 |
|
Yukihiro Matsumoto
|
48c73ac630
|
less <stdio.h>
|
2012-07-13 10:13:47 +09:00 |
|
Yukihiro Matsumoto
|
0a88499f32
|
sizeof("a") is bigger by one than strlen("a")
|
2012-06-27 15:19:40 +09:00 |
|
Yukihiro Matsumoto
|
f045e64675
|
reduce calling mrb_str_new_cstr() to avoid strlen(); #301
|
2012-06-23 13:51:50 +09:00 |
|
Yukihiro Matsumoto
|
766ae4ee5f
|
dislose mrb_hash_keys; close #304
|
2012-06-21 16:27:16 +09:00 |
|
Yukihiro Matsumoto
|
a70c4e0c79
|
reduce calling of strlen(); #301
|
2012-06-21 16:22:29 +09:00 |
|
crimsonwoods
|
cd68190480
|
split declaration and definition for 'khash_xxx'.
|
2012-06-19 23:00:29 +09:00 |
|
Masaki Muranaka
|
f564ec7e82
|
Remove some redundant code.
|
2012-06-15 00:56:00 +09:00 |
|
Yukihiro Matsumoto
|
cc86250297
|
remove unsafe macros in hash.h
|
2012-06-03 00:23:59 +09:00 |
|
Yukihiro Matsumoto
|
ecbaf9cd99
|
simpler implementation of Hash#empty?
|
2012-06-02 23:52:32 +09:00 |
|
Yukihiro Matsumoto
|
8d0cc57a43
|
hash->ht might be NULL; it shouldn't though
|
2012-06-02 23:50:34 +09:00 |
|
Yukihiro Matsumoto
|
090e896d48
|
hash->ht might be NULL; it shouldn't though
|
2012-06-02 23:46:30 +09:00 |
|
Yukihiro Matsumoto
|
110cdd82e0
|
naming convention consistency for hash.h
|
2012-06-02 21:47:27 +09:00 |
|
Yukihiro Matsumoto
|
de133c3715
|
refactoring around mrb_hash_new
|
2012-06-02 21:42:52 +09:00 |
|
Yukihiro Matsumoto
|
9b9b345697
|
remove unnecessary header inclusion from hash.c
|
2012-06-01 02:45:23 +09:00 |
|
Yukihiro Matsumoto
|
b7d5ccdb36
|
small refactoring; hash->ht should not be NULL
|
2012-06-01 02:30:54 +09:00 |
|
Yukihiro Matsumoto
|
1321a157c2
|
values need not to dup unlike keys
|
2012-06-01 02:28:21 +09:00 |
|
Yukihiro Matsumoto
|
2a6b5b8ff5
|
stop using mrb_exec_recursive_paired() from Hash#==
|
2012-06-01 01:40:12 +09:00 |
|
Yukihiro Matsumoto
|
6caeb8f8fb
|
hash function should use #eql? internally
|
2012-06-01 01:30:44 +09:00 |
|
Yukihiro Matsumoto
|
6a2cf46ff9
|
hash function should use #hash internally
|
2012-06-01 01:25:16 +09:00 |
|
Yukihiro Matsumoto
|
3c80a5e2bf
|
add inline to KHASH_INIT functions
|
2012-06-01 01:18:20 +09:00 |
|
Yukihiro Matsumoto
|
7cf607bb75
|
stop duping values from Hash#values
|
2012-05-30 16:25:22 +09:00 |
|
Yukihiro Matsumoto
|
a4a48e3da1
|
specify allocating array size for Hash#values
|
2012-05-30 16:12:32 +09:00 |
|
Yukihiro Matsumoto
|
b275be253d
|
Hash#keys stop duping keys
|
2012-05-28 12:24:31 +09:00 |
|
Yukihiro Matsumoto
|
ad9e841c53
|
made mrb_get_args() better (optinal args, type checks); close #173 #176
|
2012-05-24 01:09:36 +09:00 |
|