[MPlayer-cvslog] CVS: main/libmpdemux mpeg_hdr.c,1.12,1.13

Joey Parrish joey at nicewarrior.org
Thu Apr 21 18:34:58 CEST 2005


On Wed, Apr 20, 2005 at 05:12:19PM +0200, Dominik 'Rathann' Mierzejewski wrote:
> On Wednesday, 20 April 2005 at 17:09, Rich Felker wrote:
> > > you'll fix all the uses of u_int??_t in MPlayer, I assume?
> > 
> > AFAIK it's never used anywhere else.
> 
> Your knowing nothwitstanding, it's used in a few places:
> % find . -name "*.h" -o -name "*.c" | xargs grep u_int.._t
> ./TOOLS/TVout/con2fb/con2fb.c:  u_int32_t con, fb;
> ./TOOLS/TVout/matroxset/matroxset.c:    u_int32_t conns;
> ./TOOLS/TVout/matroxset/matroxset.c:                            static const struct { u_int32_t mask; const char* msg; } *ptr, vals[] = {
> ./libdha/sysdep/AsmMacros_alpha.h:extern void outb(u_int32_t port, u_int8_t val);
> ./libdha/sysdep/AsmMacros_alpha.h:extern void outw(u_int32_t port, u_int16_t val);
> ./libdha/sysdep/AsmMacros_alpha.h:extern void outl(u_int32_t port, u_int32_t val);
> ./libdha/sysdep/AsmMacros_alpha.h:extern u_int8_t inb(u_int32_t port);
> ./libdha/sysdep/AsmMacros_alpha.h:extern u_int16_t inw(u_int32_t port);
> ./libdha/sysdep/AsmMacros_alpha.h:extern u_int32_t inl(u_int32_t port);
> ./drivers/radeon/radeonfb.c:                u_int16_t cfb16[16];
> ./drivers/radeon/radeonfb.c:                u_int32_t cfb24[16];
> ./drivers/radeon/radeonfb.c:                u_int32_t cfb32[16];

And it works most of the time because on linux and cygwin (at least)
inttypes.h includes stdint.h at the top.  But this is not something on
which we should rely.

--Joey

-- 
"There are trivial truths and there are great truths.  The opposite of a
trivial truth is plainly false.  The opposite of a great truth is also true."
  --Neils Bohr




More information about the MPlayer-cvslog mailing list