Is there a field anywhere in that file structure that keeps track of the
file's name?  In db.c where it's loading area data, it's got its various
functions like fread_string and fread_word, and if something's screwy
with the area file then they'll bug with something like "Word too long"
but not tell you which file or where in the file, and I'd like to be
able to log the file and the line and offset of what it was trying to
read when that happened (I just happen to be going to db.c right now and
the idea hit me, but I've no idea if that structure holds the filename
info)... so that's my question... I don't think it does, or else a lot
of coding examples I see on the internet, and probably the whole design
of those functions originally would have included that kind of info, but
there's no harm in asking :D Thanks in advance :)

Richard Lindsey.

Reply via email to