[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Steve Mosher wrote:
> Why is coldcore, nearly 50K lines of code, all in one
> source file? Is it  simply that coldcc has no #include
> directive? If so, couldn't that be easily fixed?
> 
> I've been trying to deduce a lot of the workings of
> ColdCore by looking at  the source, but 2 megs of
>  source is difficult (to say the least) to wade
> through.
> 
> I have a perl script kicking around somewhere that
> can be used as a  preprocessor to implement #include
> (as it works in C, effectively), IIRC, I  did build
> some decent recursion handling into it. I can provide
> a copy of it if you think it would be useful.

Mainly because almost all Cold development is done with a running 
server, not by editing a textdump.  The textdump is pretty much only a 
means for transporting a database and distributing it to users.

There should be scripts in either the ColdCore tarball or the Genesis 
tarball though that will split the textdump into lots of little files 
and subsequently join them back together.  But really, for getting a 
grasp of things, it is far far easier to just fire up a copy and explore 
a running system. :)

  - Bruce