home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] what is the meaning of leading "_" in gcc function calls?

It's GNU gettext, which is used to localize applications. The _() macro is
used to loads a localize string.

https://www.gnu.org/software/gettext/manual/index.html

J-F

On Sun, Oct 1, 2017 at 5:47 PM, Robert P. J. Day <rpjday [ at ] crashcourse [ dot ] ca>
wrote:

>
>   currently digging through the git source code, and i'm seeing some
> function calls of the form:
>
>   if (size < len)
>           die(_("too-short tree file"));
>
>   i'm ashamed to admit, i'm not sure what the above represents -- the
> underscore embedded in that function call? what does it mean?
>
> rday
>
> --
>
> ========================================================================
> Robert P. J. Day                                 Ottawa, Ontario, CANADA
>                         http://crashcourse.ca
>
> Twitter:                                       http://twitter.com/rpjday
> LinkedIn:                               http://ca.linkedin.com/in/rpjday
> ========================================================================
> _______________________________________________
> Linux mailing list
> Linux [ at ] lists [ dot ] oclug [ dot ] on [ dot ] ca
> http://oclug.on.ca/mailman/listinfo/linux
>



-- 
Jean-François Bilodeau
Senior technical trainer / System developer
819-712-1020
www.chronogears.com