Biodiversity Patch, Take 1

View: New views
1 Messages — Rating Filter:   Alert me  

Biodiversity Patch, Take 1

by Bugzilla from enderandrew@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm done butting my head against the wall for the moment.  Sadly, I
probably won't even be able to take a look at this again until next
Monday or Tuesday at the earliest, so I can going to throw this out
there in its current state, which is it *mostly* compiles, save for
some undefined reference errors which are driving me nuts.

I've tested it compiling in Windows with Mingw and one one file is
giving me errors, where as under Cygwin (where I had to hack some
Makefiles just to even attempt to compile) I'm getting a couple files
that bitch and complain.

If you can't get the attachment to the email, I'll throw the file up
on http://www.enderandrew.com/pub when I get home in a few hours.

The patch ended up at 1,200k which is pretty huge.  Given that I am
just beginning to learn C, this was a massive first task, as compared
to Hello World.  Mind you, I certainly didn't write it from scratch, I
tried contacting the original author to ask if he had ported it, or
would be willing to, and couldn't get a hold of him (Nick Webb) so I
attempted it myself.  The nethack and slash'em sources are fairly
different (a quick diff between the two nets a 15 meg patch) so I had
to manually put in just about every hunk, and rewrite quite a bit to
work in slash'em, except it doesn't fully work yet.

And it is also very likely that some of the stuff that did compile
isn't correct and may be buggy.  So either way, I'm hoping someone
will take a look at this and help fix some of the breakage I no doubt
created.

I had hoped I'd get it to compile cleanly on the first pass myself,
and maybe after I step away for a few days I can come back and clean
it up more, but at the same time, I don't think this was a bad first
pass for such a novice.

As a last note, the coding style seems a little inconsistent in
nethack and slash'em to begin with, and this patch is no different.
In many places, spacing and indentation can be cleaned up a bit to be
more consistent, and on later passes I might clean that up some, but
that wasn't my chief concern.

-- T. J. Brumfield
"In the beginning the Universe was created. This has made a lot of
people very angry and been widely regarded as a bad move."
--Douglas Adams
"Nihilism makes me smile."
--Christopher Quick


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Slashem-devel mailing list
Slashem-devel@...
https://lists.sourceforge.net/lists/listinfo/slashem-devel

slashem-biodiversity-0.1.patch.bz2 (315K) Download Attachment