[x264-devel] Re: static's

Loren Merritt lorenm at u.washington.edu
Tue Apr 19 20:09:24 CEST 2005


On Tue, 19 Apr 2005, Tom Jacobs wrote:

> i was just wondering why the majority of the functions in x264 are declared
> as static?  it is probably my misunderstanding of a static but in my
> parallel compiler it defines variables to be shared between processors.
> this can sometimes coarse a problem when i am porting the code.
> ive only found 4 actual variable declared as static though. are these
> essential?

Functions are shared anyway. Static limits the scope of the function to 
within the current source file. This is generally a good thing in 
libraries, since it means they can use whatever internal names they want 
without polluting the namespace of the application.

--Loren Merritt

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list