[MPlayer-cvslog] r27807 - trunk/stream/stream_dvd.c

Nico Sabbi Nicola.Sabbi at poste.it
Mon Oct 20 12:02:02 CEST 2008


On Monday 20 October 2008 11:55:39 diego wrote:
> Author: diego
> Date: Mon Oct 20 11:55:38 2008
> New Revision: 27807
>
> Log:
> Replace typeof by __typeof__, the former is a non-portable GNU
> extension.
>
>
> Modified:
>    trunk/stream/stream_dvd.c
>
> Modified: trunk/stream/stream_dvd.c
> ===================================================================
>=========== --- trunk/stream/stream_dvd.c	(original)
> +++ trunk/stream/stream_dvd.c	Mon Oct 20 11:55:38 2008
> @@ -398,7 +398,7 @@ read_next:
>          // See also gcc problem report PR c/7847:
>          //
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?database=gcc&cmd=view+audit-
>trail&pr=7847 for(i=0;i<9;i++) {	// check if all values zero:
> -          typeof(d->dsi_pack.sml_agli.data[i].address) tmp_addr;
> +          __typeof__(d->dsi_pack.sml_agli.data[i].address)
> tmp_addr;
> memcpy(&tmp_addr,&d->dsi_pack.sml_agli.data[i].address,sizeof(tmp_a
>ddr)); if((skip=tmp_addr)!=0) break;
>          }

it's horrid nonetheless: relying on an unknown data type implies a
scarse knowledge of the API. I'll change it tonight or do it yourself
if you prefer



More information about the MPlayer-cvslog mailing list