On Fri, 15 May 2015 17:13:32 +0530
Sairam Gaddam <gaddamsairam at gmail.com> wrote:

> On Fri, May 15, 2015 at 4:46 PM, Hick Gunter <hick at scigames.at> wrote:
> 
> > The keyword "static" before a function name limits its visibility
> > to the current source file.
> >
> > But many of the PRIVATE functions are not declared static like the
> > "sqlite3VdbePrintOp"
> function.
> If they do declare, can i know where they did that?

In amalgamation you can search in sqlite3.h for these defines:

#define SQLITE_PRIVATE static
#define SQLITE_API extern

Some lines up, you find in what .h file they are declared.

By default all functions in C are of type extern (if you don't add static, they 
are extern), so, if you declare them on .h file they can be called from other 
.c files. If you don't declare them on .h but at top of .c file where they are 
implemented they can't be called from other .c files. If you declare them as 
static, you can't call them from any other .c files.

HTH

---   ---
Eduardo Morras <emorrasg at yahoo.es>

Reply via email to