This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v5] Add pretty printers for the NPTL lock types


On Tue, Apr 12, 2016 at 12:59 PM, Siddhesh Poyarekar
<sid@reserved-bit.com> wrote:
> Write them outside the condition, i.e.
>
>     ret = pthread_rwlockattr_setkind_np (attr,
>                                          PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP);

I thought it was mandatory to align the parameters to a function so
that they start at the same column in their respective lines. If it's
not, I can simply do:

&& pthread_rwlockattr_setkind_np (attr,
  PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP) == 0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]