Extended Bitvectors

Posted by Colton on Wed 03 May 2006 09:34 PM — 5 posts, 16,811 views.

#0
The codebase I was using didn't come with the extended bitvector stuff included so I went and added it all and it seemed to work well. I decided to use languages to test it and these were the errors I recieved:
Quote:

act_comm.c: In function `knows_language':
act_comm.c:2457: error: request for member `bits' in something not a structure o
r union
act_comm.c:2461: error: request for member `bits' in something not a structure o
r union
act_comm.c:2462: error: request for member `bits' in something not a structure o
r union
act_comm.c: In function `do_languages':
act_comm.c:2663: error: request for member `bits' in something not a structure o
r union
make[1]: *** [o/act_comm.o] Error 1
make: *** [all] Error 2


I went through mud.h to double check everything was in the correct spot, I had the struct with the other structs, the struct was defined. And I had all the xIS_SET and other functions along those lines as well as the ext_is_empty et cetera. I added all of these functions to misc.c as shown in stock smaug but the I couldn't get the errors to go away. Also, bits is in the structure... (was the first thing I thought of when I saw the error)... and yes I did change all of the IS_SET to xIS_SET et cetera for languages. Thanks, Colton.
USA #1
Why languages as a test?

Here's a tutorial:
http://www.auricmud.com/snippets/roomflags.html
#2
I wasn't thinking so much that I redid languages incorrectly but that I may have not compleatly added the extended bitvector code properly, I'll try tutorial and see if I still recive errors on that one.
#3
It seems to work fine this way so I soupose I am overlooking something... -however- in reset.c there is the line (int) plc = &pRoomIndex->room_flags; and I'm not quite sure what this should be in order to make it work properly.
#4
Nevermind, solved this problem.