[cairo] "operator" keyword in libcairo

Chris fltk at functionalfuture.com
Tue Dec 28 17:15:31 PST 2004


On Tue, 2004-12-28 at 17:06 -0800, Ned Konz wrote:
> On Tuesday 28 December 2004 2:14 pm, Chris wrote:
> > I noticed that in libcairo there are tons of variables named "operator."
> >
> > Operator is a keyword in the Microsoft compiler and causes a lot of pain
> > when trying to compile over there.  I'm going to rename them to "op" or
> > something and see how it goes from there.
> 
> It shouldn't be a keyword in a C compiler (though of course it is in C++), 
> should it? Do they also reserve new, delete, etc.?

Good question.  Maybe the compiler was working in C++ mode or something.
It shouldn't be since they are all ".c" files as far as I know.
Obviously something was tripping up though.  I'll have to look into it.

-- 
// Chris




More information about the cairo mailing list