20-06-2013, 09:35 AM
Hello,
I have a question regarding the Rule 8.10.
Usually in our code we implement inline functions in header files.
Therefore these inline functions are already visible in many modules.
How can these inline function be made static?
Is it necessary to implement these inline functions as static in header files?
example:
header_file.h
inline void function1(int a, int b)
{
...
return;
}
c_file1.c
include
void function3(void)
{
function1(a_param, b_param);
...
return;
}
Can somebody give me a solution?
Regards
Wolfgang
I have a question regarding the Rule 8.10.
Usually in our code we implement inline functions in header files.
Therefore these inline functions are already visible in many modules.
How can these inline function be made static?
Is it necessary to implement these inline functions as static in header files?
example:
header_file.h
inline void function1(int a, int b)
{
...
return;
}
c_file1.c
include
void function3(void)
{
function1(a_param, b_param);
...
return;
}
Can somebody give me a solution?
Regards
Wolfgang
<t></t>