Hello: I'm wanting to use the buffer replacement snippet I found out here and went to plug it in and got this message:
act_wiz.c: At top level: act_wiz.c:6790: warning: return type defaults to 'int' act_wiz.c: In function 'MUDCMD': act_wiz.c:6799: error: 'BUFFER' has no member named 'file' act_wiz.c:6799: error: 'BUFFER' has no member named 'function' act_wiz.c:6799: error: 'BUFFER' has no member named 'line' act_wiz.c:6806: error: 'ch' undeclared (first use in this function) act_wiz.c:6806: error: (Each undeclared identifier is reported only once act_wiz.c:6806: error: for each function it appears in.) act_wiz.c:6808: warning: 'return' with no value, in function returning non-void make: *** [act_wiz.o] Error 1
And this is the code:
/*Find and display where buffers are stuck open (MUAHAHAHA!) *Great Debugging tool, by Dazzle(Darien) of Sandstorm */ MUDCMD(do_trackbuffer) { BUFFER *output = new_buf(); BUFFER *count, *count_next; int counter =0;
07 Dec, 2011, Rarva.Riendf wrote in the 2nd comment:
Votes: 0
The snippet does not define BUFFER structure, I looked at this snippet as well, but I did not have this new_buf function as well. I guess you will need to look for it in the codebase he used to have the missing puzzle pieces.
Essentially it updates the buffer system to make it possible to track any unclosed buffers allocated by new_buf()……. new_buf gets re-defined from a function to the definition to __new_buf() which auto-inputs the variables for file/function and line.
You can define file/function and line in the buffer structure (buf_type)by adding
I'm wanting to use the buffer replacement snippet I found out here and went to plug it in and got this message:
And this is the code:
This is the code it's calling, which I thought (following the directions in the snippet), I've replaced correctly.
Thanks in advance for your help.
Arholly