[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Equation display styles and context-sensitive rendering
From: |
Jeff Kingston |
Subject: |
Re: Equation display styles and context-sensitive rendering |
Date: |
Sat, 16 Dec 2006 08:56:39 +1100 |
+ StyleCopy(new_style, *style);
+ context_key(context(new_style)) = key;
+ context_value(context(new_style)) = value;
+ context_previous(context(new_style)) = &context(*style);
Unless I've missed something, there is a bug here: I don't
see any creation of a new context object, this code overwrites
the object at the front of the list rather than adding to the
front of the list.
Jeff
ps I agree with the general approach of adding to the front
of a list. It means you don't have to copy the list when
you copy the style; and linear search down the list for
the first occurrence of what you want is quite fast enough.