[Mplayer-cvslog] CVS: main/libmpcodecs mp_image.h,1.21,1.22
Filip Kalinski
filon at pld.org.pl
Sat Jan 4 08:45:19 CET 2003
- Previous message: [Mplayer-cvslog] CVS: main/libaf af_surround.c,1.1,1.2
- Next message: [Mplayer-cvslog] CVS: main/libaf af_comp.c,NONE,1.1 af_gate.c,NONE,1.1 af_pan.c,NONE,1.1 af_resample.h,NONE,1.1 af_tools.c,NONE,1.1 Makefile,1.6,1.7 af.c,1.19,1.20 af.h,1.12,1.13 af_channels.c,1.8,1.9 af_delay.c,1.8,1.9 af_equalizer.c,1.2,1.3 af_format.c,1.9,1.10 af_resample.c,1.15,1.16 af_volume.c,1.5,1.6 control.h,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
On Sat, Jan 04, 2003 at 02:19:03AM +0100, Arpi wrote:
> Hi,
>
> argh.
> NEVER EVER add #include line sto .h files!
> fix it where it's included.
>
> commit reversed.
>
Why???
There is call to malloc, free, memset, and printf here.
What can be fixed is rather moving function bodies to
mp_image.c and leaving only prototypes in mp_image.h.
Then, includes can be added to a .c file.
Now if I include mp_image.h I have to always add includes which I don't
use, this is wrong. This includes have to be in the file, where the
fnctions using them are defined.
...
> > diff -u -r1.21 -r1.22
> > --- mp_image.h 30 Oct 2002 20:50:10 -0000 1.21
> > +++ mp_image.h 4 Jan 2003 01:17:04 -0000 1.22
> > @@ -1,6 +1,13 @@
> > #ifndef __MP_IMAGE_H
> > #define __MP_IMAGE_H 1
> >
> > +#include <stdlib.h>
> > +#include <string.h>
> > +
> > +#ifdef HAVE_MALLOC_H
> > +#include <malloc.h>
> > +#endif
> > +
--
Filip Kalinski <filon at pld.org.pl>
- Previous message: [Mplayer-cvslog] CVS: main/libaf af_surround.c,1.1,1.2
- Next message: [Mplayer-cvslog] CVS: main/libaf af_comp.c,NONE,1.1 af_gate.c,NONE,1.1 af_pan.c,NONE,1.1 af_resample.h,NONE,1.1 af_tools.c,NONE,1.1 Makefile,1.6,1.7 af.c,1.19,1.20 af.h,1.12,1.13 af_channels.c,1.8,1.9 af_delay.c,1.8,1.9 af_equalizer.c,1.2,1.3 af_format.c,1.9,1.10 af_resample.c,1.15,1.16 af_volume.c,1.5,1.6 control.h,1.3,1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list