Project

General

Profile

Feature #11207

[PATCH] ext/socket/ancdata.c (bsock_sendmsg_internal): use rb_scan_args

Added by normalperson (Eric Wong) about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:69439]

Description

This should make the code more maintainable and make it easy to add
keyword argument (to support "exception: false") in the future.

This unfortunately may cause extra allocations, but I don't
think it's worth worrying about since there are other
rb_scan_args callers which do the same thing as well.

akr: any comment? I might commit this in a few days and
prepare another patch for "exception: false" support. Thanks.


Files

#1

Updated by Anonymous about 5 years ago

  • Status changed from Open to Closed

Applied in changeset r50777.


ChangeLog: add entry for r50776 [ci skip]

  • ext/socket/ancdata.c (bsock_sendmsg_internal): use rb_scan_args [ruby-core:69439] [Feature #11207]

Also available in: Atom PDF