what is the rationale for 900+ lines duplicated in common/dlmalloc.c and include/malloc.h?
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
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Quoted 14 lines · Robert P. J. Day
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 */
Quoted 2 lines
given that those lines appear to be duplicated in
malloc.h, what is the purpose of them still being indlmalloc.c? i'm just curious.
Good point. Something that could probably be cleaned up.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160420/fc88cc0c/attachment.sig>
Quoted 13 lines · Tom Rini
Quoted 11 lines · Robert P. J. Day
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
Quoted 7 lines
Quoted 5 lines
/* ---------- 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 indlmalloc.c? i'm just curious.Good point. Something that could probably be cleaned up.
i can submit a patch for that ... i can either remove the "if 0"
stuff in its entirety, or leave a short comment to the effect that what was here has now been moved, if you think it's worth it. pick one, and i'll put together the patch.
rday
Signature · 7 lines
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================Quoted 21 lines · Robert P. J. Day
Quoted 19 lines · Tom Rini
Quoted 16 lines · Robert P. J. Day
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 indlmalloc.c? i'm just curious.
Quoted 6 lines
Quoted 1 line
Good point. Something that could probably be cleaned up.
i can submit a patch for that ... i can either remove the "if 0"
stuff in its entirety, or leave a short comment to the effect that what was here has now been moved, if you think it's worth it. pick one, and i'll put together the patch.
I would remove all of it. If we ever re-sync with upstream on that file it'll still be obvious what we did.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160421/1ce0f920/attachment.sig>