Hello,
I’m going through Evan M.'s tutorial on Nginx module. In part “4.2.
Anatomy of a Body Filter”, there’s a piece of code like this:
"And hook the buffer into a new chain link:
At the last line, added_link is being used as a structure pointer but at
the beginning it’s defined as a structure. Am i missing something?
Compiler gives error for this incompetible usage.
On Thu, Mar 10, 2011 at 11:06 PM, ctasdemir [email protected]
wrote:
At the last line, added_link is being used as a structure pointer but at
the beginning it’s defined as a structure. Am i missing something?
Compiler gives error for this incompetible usage.
If it is a silly C grammatical error, just go ahead and fix it.
BTW,
we usually use ngx_chain_t pointers rather than plain structures on
the stack
do not assume nobody writes body filter modules; that is silly.
Thanks for the answer. I’m trying the understand internals of nginx. I
changed it to pointer but still i can’t manage to write end of buffer.
Ok, i’ll keep trying
Coskun,
Posted at Nginx Forum:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.