[MPlayer-cvslog] r33403 - trunk/libmenu/menu.c

Ivan Kalvachev ikalvachev at gmail.com
Sun May 8 00:54:18 CEST 2011


On 5/8/11, Reimar Döffinger <Reimar.Doeffinger at gmx.de> wrote:
> On Sat, May 07, 2011 at 11:48:45PM +0300, Ivan Kalvachev wrote:
>> On 5/7/11, Reimar Döffinger <Reimar.Doeffinger at gmx.de> wrote:
>> > On Sat, May 07, 2011 at 10:28:18PM +0200, Clément Bœsch wrote:
>> >> On Sat, May 07, 2011 at 09:06:27PM +0200, reimar wrote:
>> >> > Author: reimar
>> >> > Date: Sat May  7 21:06:26 2011
>> >> > New Revision: 33403
>> >> >
>> >> > Log:
>> >> > Fix variable type and values to match function prototype.
>> >> >
>> >> > Modified:
>> >> >    trunk/libmenu/menu.c
>> >> >
>> >> > Modified: trunk/libmenu/menu.c
>> >> > ==============================================================================
>> >> > --- trunk/libmenu/menu.c	Sat May  7 20:59:15 2011	(r33402)
>> >> > +++ trunk/libmenu/menu.c	Sat May  7 21:06:26 2011	(r33403)
>> >> > @@ -438,7 +438,7 @@ static char *menu_fribidi(char *txt)
>> >> >    static size_t buffer_size = 1024;
>> >> >    static char *outputstr;
>> >> >
>> >> > -  FriBidiCharType base;
>> >> > +  FriBidiParType base;
>> >> >    fribidi_boolean log2vis;
>> >> >    size_t len;
>> >> >
>> >> > @@ -459,7 +459,7 @@ static char *menu_fribidi(char *txt)
>> >> >        outputstr = realloc(outputstr, buffer_size);
>> >> >      }
>> >> >      len = fribidi_charset_to_unicode (char_set_num, txt, len,
>> >> > logical);
>> >> > -    base = menu_fribidi_flip_commas?FRIBIDI_TYPE_ON:FRIBIDI_TYPE_L;
>> >> > +    base = menu_fribidi_flip_commas?FRIBIDI_PAR_ON:FRIBIDI_PAR_LTR;
>> >> >      log2vis = fribidi_log2vis (logical, len, &base, visual, NULL,
>> >> > NULL,
>> >> > NULL);
>> >> >      if (log2vis) {
>> >> >        len = fribidi_remove_bidi_marks (visual, len, NULL, NULL,
>> >> > NULL);
>> >>
>> >> Careful about that one. IIRC we got the same issue with a sub file. It
>> >> may be meaningful to check for the version of FriBiDi.
>> >
>> > Yes I saw some code in the headers that would indicate that some
>> > older fribidi versions might have issues.
>> > But it didn't seem worth keeping it, I think we'll see when we get bug
>> > reports.
>>
>> This breaks on my system.
>> My distro is with fribidi 0.10.9 from http://fribidi.org/ . Distro
>> just made major release.
>>
>> I guess the one that works with these changes is fribidi2 0.19.2 .
>>
>> So ...
>
> Ok, can you give the error message?

libmenu/menu.c: In function 'menu_parse_config':
libmenu/menu.c:203:34: warning: assignment discards qualifiers from
pointer target type
libmenu/menu.c: In function 'menu_fribidi':
libmenu/menu.c:441:3: error: 'FriBidiParType' undeclared (first use in
this function)
libmenu/menu.c:441:3: note: each undeclared identifier is reported
only once for each function it appears in
libmenu/menu.c:441:18: error: expected ';' before 'base'
libmenu/menu.c:442:3: warning: ISO C90 forbids mixed declarations and code
libmenu/menu.c:462:5: error: 'base' undeclared (first use in this function)
libmenu/menu.c:462:37: error: 'FRIBIDI_PAR_ON' undeclared (first use
in this function)
libmenu/menu.c:462:52: error: 'FRIBIDI_PAR_LTR' undeclared (first use
in this function)
make: *** [libmenu/menu.o] Error 1

I checked, they don't exist in the installed headers.


More information about the MPlayer-cvslog mailing list