1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
normal 48a2b96d2b introduce ZALLOC{,_N} to replace ALLOC{,_N}+MEMZERO use
Using calloc where possible reduces code and binary sizes.

* include/ruby/ruby.h (ZALLOC, ZALLOC_N): implement
  (Data_Make_Struct, TypedData_Make_Struct):
  ZALLOC replaces ALLOC+memset
* compile.c (iseq_seq_sequence): ZALLOC_N replaces ALLOC_N+MEMZERO
* cont.c (fiber_t_alloc): ZALLOC replaces ALLOC+MEMZERO
* io.c (rb_io_reopen): ditto
* iseq.c (prepare_iseq_build): ditto
* parse.y (new_args_tail_gen, parser_new, ripper_s_allocate): ditto
* re.c (match_alloc): ditto
* variable.c (rb_const_set): ditto
* ext/socket/raddrinfo.c (get_addrinfo): ditto
* ext/strscan/strscan.c (strscan_s_allocate): ditto
* gc.c (rb_objspace_alloc): calloc replaces malloc+MEMZERO

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25 21:34:35 +00:00
..
-test- fileno.c: suppress warnings 2014-05-30 03:18:08 +00:00
bigdecimal bigdecimal/math.rb: error message in BigMath#PI 2014-06-28 11:29:11 +00:00
continuation
coverage * ext/openssl/depend: remove dependency from internal headers. 2014-05-14 10:55:38 +00:00
date * ext/date/lib/date/format.rb: removed empty file by @vipulnsward. 2014-07-01 02:28:56 +00:00
dbm * ext/dbm/dbm.c: fix wrong arguments in GetDBM2 macro by @v2e4lisp. 2014-07-13 08:29:09 +00:00
digest Revert r46828 2014-07-15 15:43:03 +00:00
dl extmk.rb: check if parent is build 2014-05-09 05:52:59 +00:00
etc mkconstants.rb: remove empty comments 2014-07-06 02:42:55 +00:00
fcntl
fiber
fiddle fiddle/extconf.rb: supply 0 2014-06-21 03:54:19 +00:00
gdbm * ext/gdbm/gdbm.c: remove needless tabs. 2014-07-13 08:48:42 +00:00
io
json json/parser/prereq.mk: use enum 2014-03-17 04:57:19 +00:00
mathn
nkf
objspace ext/objspace: Check fptr before trying to dump FILE object fd 2014-03-10 21:55:51 +00:00
openssl * ext/openssl/ossl.c: use encryptor instead of encrypter in doc. 2014-07-19 16:10:58 +00:00
pathname * file.c, ext/pathname/pathname.c: [DOC] correct position of method rdoc. 2014-07-06 12:45:27 +00:00
psych * ext/psych/lib/psych/visitors/yaml_tree.rb: dump empty symbols with a 2014-06-05 22:42:58 +00:00
pty pty.c: do nothing if terminated already 2014-05-26 04:35:17 +00:00
racc/cparse
rbconfig/sizeof * ext/rbconfig/sizeof/depend (sizes.c): fix build failure since r46924. 2014-07-24 12:14:27 +00:00
readline readline/extconf.rb: rl_hook_func_t 2014-04-04 15:31:23 +00:00
ripper
sdbm * ext/gdbm/gdbm.c: remove needless tabs. 2014-07-13 08:48:42 +00:00
socket introduce ZALLOC{,_N} to replace ALLOC{,_N}+MEMZERO use 2014-07-25 21:34:35 +00:00
stringio stringio.c: use rb_str_append other than ASCII-8BIT 2014-04-23 02:03:43 +00:00
strscan introduce ZALLOC{,_N} to replace ALLOC{,_N}+MEMZERO use 2014-07-25 21:34:35 +00:00
syslog
thread * ext/thread/thread.c: added nodoc attribute into 2014-07-19 16:00:51 +00:00
tk tcltklib.c: fix format specifiers 2014-06-23 21:15:39 +00:00
win32
win32ole * ext/win32ole/win32ole.c (Init_win32ole): add WIN32OLE_RECORD#initialize 2014-07-24 13:51:22 +00:00
zlib * ext/socket/ifaddr.c (IS_IFADDRS): Unused macro removed. 2014-05-11 16:31:51 +00:00
.document * ext/.document: remove refinement from documentable directories. 2014-03-15 09:56:43 +00:00
extmk.rb configure.in: fix static-linked-ext 2014-07-03 03:40:24 +00:00
Setup
Setup.atheos
Setup.emx
Setup.nacl
Setup.nt