From: Robert P. J. Day Date: Sat, 16 Apr 2016 04:23:27 -0400 (EDT) Subject: [U-Boot] what is the rationale for 900+ lines duplicated in common/dlmalloc.c and include/malloc.h? Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de just noticed, in common/dlmalloc.c, the sizable chunk: #if 0 /* Moved to malloc.h */ /* ---------- To make a malloc.h, start cutting here ------------ */ ... several hundred lines ... #ifdef __cplusplus }; /* end of extern "C" */ #endif /* ---------- To make a malloc.h, end cutting here ------------ */ #endif /* 0 */ /* Moved to malloc.h */ given that those lines appear to be duplicated in malloc.h, what is the purpose of them still being in dlmalloc.c? i'm just curious. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================