Re: gcc v5+ generates code that cause segment faults

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux