Hello, I'm new in this forum so I hope i'm within the rules :P
Anyways... about the part of the code that I don't understand. It comes from gtkmozembed and many other open sourced ... source.
They would define something like :
Code:
GTKMOZEMBED_API(void) gtk_moz_embed_close_stream (GtkMozEmbed *embed);
and above it, they would have a macro:
Code:
#define GTKMOZEMBED_API(type) type
Now... I understand the macros...
But... Where's the rest of the function??
How does it know what to do if we type:
Code:
gtk_moz_embed_close_stream(*embeded_widget);
I have scanned & used the search on all of the source files, and I can't seems to find a link for it...
Another source file that I can relate to is the source of salamander:
in main.h, there's a definition for a function
Code:
void create_menu(geckobrowser *mozzie);
But I can't find the rest of the function, not in main.c, not in the included files, not in anything.
Is it a type of overloading?
if so, where's the original function?