Re: [RFA] Add la_getstr member to language_defn
Thiago Jung Bauermann <bauerman <at> br.ibm.com>
2009-01-03 02:26:43 GMT
El lun, 24-11-2008 a las 20:09 -0200, Thiago Jung Bauermann escribió:
> Ok, this version of the patch has the following changes from my last
> submission:
>
> - changed read_string comment to use the wording above;
> - renamed la_getstr, c_getstr and default_getstr to la_get_string,
> c_get_string and default_get_string;
> - added const char **encoding argument to {la,c,default}_get_string,
> so that the charset of the string can be returned to the caller;
> - fixed c_get_string to use UINT_MAX for fetchlimit instead of -1;
> - fixed c_get_string to allocate 1 byte when LEN is 0.
>
> WDYT?
The patch doesn't apply anymore. This is the same patch, refreshed
against HEAD as of Dec 28th. Ok?
--
--
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center
2009-01-03 Thiago Jung Bauermann <bauerman <at> br.ibm.com>
* language.h (language_dfn): Add la_get_string member.
(LA_GET_STRING): New macro.
(default_get_string): New prototype.
* language.c (default_get_string): New function.
(unknown_language_defn, auto_language_defn, local_language_defn): Use
default_get_string for la_get_string.
* c-lang.c (c_get_string): New function.
(Continue reading)