1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/socket
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
..
lib
.document
addrinfo.h
ancdata.c
basicsocket.c
constants.c
depend
extconf.rb
getaddrinfo.c
getnameinfo.c
ifaddr.c * ext/socket/ifaddr.c (ifaddr_inspect_flags): support IFF_SIMPLEX. 2014-05-27 12:29:19 +00:00
init.c
ipsocket.c
mkconstants.rb * ext/socket/mkconstants.rb: More constants 2014-05-23 20:54:40 +00:00
option.c
raddrinfo.c introduce ZALLOC{,_N} to replace ALLOC{,_N}+MEMZERO use 2014-07-25 21:34:35 +00:00
rubysocket.h
socket.c * ext/socket/socket.c (sock_gethostname): Use NI_MAXHOST to support 2014-07-25 04:17:50 +00:00
sockport.h
sockssocket.c
tcpserver.c
tcpsocket.c
udpsocket.c
unixserver.c
unixsocket.c * ext/socket/unixsocket.c (rsock_init_unixsock): Open a socket 2014-05-28 15:42:09 +00:00