[cairo] "operator" keyword in libcairo

Maarten Breddels dmon at xs4all.nl
Tue Dec 28 19:36:31 PST 2004


Chris wrote:

>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.
>
>  
>
I never had a problem with it, using the compiler from visual studio 6 
and 7(.NET) the compiler does have a "c-mode", i'm not sure if it 
automaticly does that when compiling .c files, but cairo compiles ok here.



More information about the cairo mailing list