PEND_OP.p -- what does it do?
It gets set to a magic number during parsing and then is used in RecSortPrec, but I don't understand what 'p' is supposed to be doing. What is the meaning of the value assigned to it? -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://www.xmission.com/~legalize/book/download/index.html> Legalize Adulthood! <http://blogs.xmission.com/legalize/>
Richard wrote: [PEND_OP.p -- what does it do?]
It gets set to a magic number during parsing and then is used in RecSortPrec, but I don't understand what 'p' is supposed to be doing.
What is the meaning of the value assigned to it?
Tim and/or Jonathan will be able to answer that with certainty, but I guess this stores the precedence of the pending math operation and RecSortPrec then sorts the operation pointers in the order they have to be called. Regards, Gerald
In article <004c01c7c9b0$bdc0ba60$1b1a2e3e@gkd1>, "Gerald K. Dobiasovsky" <gerald.dob@aon.at> writes:
but I guess this stores the precedence of the pending math operation and RecSortPrec then sorts the operation pointers in the order they have to be called.
That was my guess, but since the operand pointers are constructed along with the operator pointers and the sort procedure seems only to sort the operator pointers, I wasn't seeing how this was going to work. -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://www.xmission.com/~legalize/book/download/index.html> Legalize Adulthood! <http://blogs.xmission.com/legalize/>
Gerald wrote:
Tim and/or Jonathan will be able to answer that with certainty, but I guess this stores the precedence of the pending math operation and RecSortPrec then sorts the operation pointers in the order they have to be called.
I'm in the last stages of packing for a Colorado trip tomorrow morning, will be back July 28th. I didn't write that code but I have maintained and modified it - Geralds statement looks plausible short of studying the code a bit more. Tim
participants (3)
-
Gerald K. Dobiasovsky -
Richard -
Tim Wegner