why are magic numbers preferred?
Bernhard Fischer
rep.dot.nop at gmail.com
Wed Apr 16 16:59:28 UTC 2008
On Wed, Apr 16, 2008 at 05:59:45PM +0200, Cristian Ionescu-Idbohrn wrote:
>Please consider the 1st attachment as a POC, and then the 2nd attachment,
>which is more dearer to me ;-)
Some of these could perhaps go into the "library tuning", if vda likes
it.
Still, i think you're overdoing it a bit. Funny, i _though_ we had
# define KB (1024)
# define MB (1024*1024)
but i do not see them (anymore).
[]
> #include "libbb.h"
>
>+#define FOUR 4
>+#define ONE_KB 1024
>+#define FOUR_KB (FOUR * ONE_KB)
This somehow reminds me of those people who made a fake-script wrapper
that was able to run ontop of both bash and csh -- was it SciTech? don't
remember.
More information about the busybox
mailing list