lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #10088] allow "typedef u32_t mem_size_t" when MEM_SI


From: Simon Goldschmidt
Subject: [lwip-devel] [patch #10088] allow "typedef u32_t mem_size_t" when MEM_SIZE > 640000L and MEM_USE_POOLS
Date: Fri, 13 Oct 2023 09:56:22 -0400 (EDT)

Follow-up Comment #4, patch #10088 (project lwip):

My point is: wouldn't it be better to assert that with MEM_USE_POOLS, MEM_SIZE
is never > 64000? Because having mem_size_t == u32_t really does not make any
sense when you can't allocate elements > 65535 bytes because the pool
implementation uses u16_t.

On the other hand, using MEM_SIZE at all does not make sense for
MEM_USE_POOLS, and thus, it probably doesn't hurt to keep mem_size_t
consistent, no matter if MEM_USE_POOLS is 1 or 0...


    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/patch/?10088>

_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]