This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc v5+ generates code that cause segment faults
On 07/10/2016 01:50, Michael J. Fuhrman wrote:
> Here is a discussion on the merits of Internal vs External encapsulation.
>
> http://stackoverflow.com/questions/2929281/are-nested-functions-a-bad-thing-in-gcc
>
> As for me, I was using it for scope resolution. Helping to make the
> code more OO, as well as help avoid naming conflicts between various C
> modules.
Use the static qualifier for your "private" functions.
static functions are not visible outside a translation unit.
Regards.