[PATCH 1/5] Cygwin: mmap: refactor mmap_record::match

Ken Brown kbrown@cornell.edu
Thu Jan 9 20:23:23 GMT 2025


On 1/9/2025 12:17 PM, Corinna Vinschen wrote:
> What about keeping
> 
>    bool match (caddr_t addr, SIZE_T len, caddr_t &m_addr, SIZE_T &m_len);
> 
> available as inline method just calling the new match() method with
> a local "contains" variable?  This way, you don't have to define dummy
> "contains" where the value is unused...
Good idea.  I was annoyed at having to define those dummy variables but 
didn't think about how to avoid it.

Thanks.

Ken


More information about the Cygwin-patches mailing list