lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANiq72=owOmGLi3Zh+7o5CRKU1_tNU-OsKskj35GXwkDCchwKQ@mail.gmail.com>
Date: Sat, 2 Aug 2025 15:41:28 +0200
From: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>
To: Benno Lossin <lossin@...nel.org>
Cc: Daniel Almeida <daniel.almeida@...labora.com>, Onur <work@...rozkan.dev>, 
	Boqun Feng <boqun.feng@...il.com>, linux-kernel@...r.kernel.org, 
	rust-for-linux@...r.kernel.org, ojeda@...nel.org, alex.gaynor@...il.com, 
	gary@...yguo.net, a.hindborg@...nel.org, aliceryhl@...gle.com, 
	tmgross@...ch.edu, dakr@...nel.org, peterz@...radead.org, mingo@...hat.com, 
	will@...nel.org, longman@...hat.com, felipe_life@...e.com, daniel@...lak.dev, 
	bjorn3_gh@...tonmail.com
Subject: Re: [PATCH v5 2/3] implement ww_mutex abstraction for the Rust tree

On Sat, Aug 2, 2025 at 12:42 PM Benno Lossin <lossin@...nel.org> wrote:
>
> My understanding of C preprocessor macros is not good enough to parse or
> understand this :( What is that `__PASTE` thing?

It allows you to paste the expansion of other macros, e.g. compare `A` and `B`:

    #define A(a,b) a##b
    #define B(a,b) __PASTE(a,b)

    #define C 43

    A(42, C)
    B(42, C)

would give:

    42C
    4243

https://godbolt.org/z/Ms18oed1b

Cheers,
Miguel

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ