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 * ext/socket/lib/socket.rb: Don't test $! in "ensure" clause because 2013-12-13 16:11:12 +00:00
.document * ext/socket/.document: Add ifaddr.c. 2013-05-14 14:48:00 +00:00
addrinfo.h * ext/**/*.[ch]: removed trailing spaces. 2010-04-22 08:04:13 +00:00
ancdata.c socket: sendmsg/recvmsg only retries blocking on errors 2014-02-21 00:55:13 +00:00
basicsocket.c * ext/socket: Avoid unnecessary ppoll/select on Linux. 2014-01-18 14:13:22 +00:00
constants.c constants.c: fix macro name 2013-04-08 15:28:43 +00:00
depend Fix a dependency. 2013-05-16 10:29:05 +00:00
extconf.rb * ext/socket/extconf.rb: Don't check fields of struct tcp_info if the 2014-05-19 20:00:00 +00:00
getaddrinfo.c {getaddrinfo,getnameinfo}.c: fix for old platforms 2013-05-03 04:35:37 +00:00
getnameinfo.c {getaddrinfo,getnameinfo}.c: fix for old platforms 2013-05-03 04:35:37 +00:00
ifaddr.c * ext/socket/ifaddr.c (ifaddr_inspect_flags): support IFF_SIMPLEX. 2014-05-27 12:29:19 +00:00
init.c * ext/socket/init.c (wait_connectable): break if the socket is 2014-02-21 14:59:44 +00:00
ipsocket.c * ext/socket: Wrap struct addrinfo by struct rb_addrinfo. 2014-02-19 09:38:24 +00:00
mkconstants.rb * ext/socket/mkconstants.rb: More constants 2014-05-23 20:54:40 +00:00
option.c * ext/socket/option.c: Fix complation error on Android. 2014-05-21 03:22:18 +00:00
raddrinfo.c introduce ZALLOC{,_N} to replace ALLOC{,_N}+MEMZERO use 2014-07-25 21:34:35 +00:00
rubysocket.h * ext/socket/option.c (inspect_tcp_info): New function to inspect struct tcp_info. 2014-05-19 11:52:03 +00:00
socket.c * ext/socket/socket.c (sock_gethostname): Use NI_MAXHOST to support 2014-07-25 04:17:50 +00:00
sockport.h * ext/socket: Bypass getaddrinfo() if node and serv are numeric. 2014-02-19 10:37:43 +00:00
sockssocket.c * ext/socket: Make Socket documentation appear. Add documentation for 2011-08-15 23:08:39 +00:00
tcpserver.c * ext/socket/unixserver.c: [DOC] Document #accept 2013-08-19 16:54:59 +00:00
tcpsocket.c socket: ai_addrlen is socklen_t 2013-02-15 07:54:38 +00:00
udpsocket.c * ext/socket: Wrap struct addrinfo by struct rb_addrinfo. 2014-02-19 09:38:24 +00:00
unixserver.c * ext/socket/unixserver.c: [DOC] Document #accept 2013-08-19 16:54:59 +00:00
unixsocket.c * ext/socket/unixsocket.c (rsock_init_unixsock): Open a socket 2014-05-28 15:42:09 +00:00