Subject: Re: how to avoid API namespace collisions in an ever evolving system (was: CVS commit: basesrc)
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Andrew Brown <>
List: tech-userlevel
Date: 08/13/2002 18:07:08
>While something like prefixing all names in my programs with der_Mouse_
>will _probably_ render them unique (or, really, collision-free with
>respect to OS-provided headers), it's only "probably", and I'm not
>willing to uglify my code that badly in any case.  Not to mention that
>doing so would introduce nonportability due to external name length
>limits making everything collide.

#define heapsort __stupid_libc_heapsort_that_i_will_not_use
#include <stdlib.h>
#undef heapsort

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."