[webkit-dev] globals and guidelines

David Hyatt hyatt at apple.com
Tue Dec 9 13:13:27 PST 2008

This is an area where we haven't settled on a convention yet, which is  
why you see these inconsistencies.  At various times I've used gXXX as  
well as s_XXXX.   My own preference is for gXXX, even though it isn't  
particularly consistent with the m_XXX member variable convention.


On Dec 9, 2008, at 2:46 PM, Cary Clark wrote:

> Global variables aren't discussed here:
>  http://webkit.org/coding/coding-style.html
> In sources, I see:
> gX.. WebCore/rendering/RenderLayer.h:138:    static const
> ScrollAlignment gAlignCenterIfNeeded;
> s_x.. WebCore/rendering/RenderObject.h:964:    static bool  
> s_affectsParentBlock;
> AxBx.. WebCore/dom/RangeException.h:41:        static const int
> RangeExceptionOffset = 200;
> Is there one convention for const, and one for non-const? Or none at  
> all?
> Thanks
> Cary
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

More information about the webkit-dev mailing list