gcc v5+ generates code that cause segment faults
Mason
slash.tmp@free.fr
Fri Oct 7 09:17:00 GMT 2016
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.
More information about the Gcc-help
mailing list