[vlc-devel] [PATCH v3 02/14] src: add cleaner md5 API

Rémi Denis-Courmont remi at remlab.net
Mon Apr 13 13:55:17 CEST 2020


Le sunnuntaina 12. huhtikuuta 2020, 23.25.04 EEST Marvin Scholz a écrit :
> On 8 Apr 2020, at 19:07, Rémi Denis-Courmont wrote:
> > Le keskiviikkona 8. huhtikuuta 2020, 19.47.54 EEST Marvin Scholz a écrit :
> >> On 8 Apr 2020, at 17:48, Rémi Denis-Courmont wrote:
> >>> Le keskiviikkona 8. huhtikuuta 2020, 18.20.30 EEST Francois Cartegnie
> >>> a écrit
> >>> 
> >>>> Le 08/04/2020 à 17:08, Rémi Denis-Courmont a écrit :
> >>>>> And the FinishHex could be a static inline so as not to couple
> >>>>> unrelated
> >>>>> conversion and hashing routines.
> >>>> 
> >>>> That will force a new include
> >>> 
> >>> Sigh, fine then use a do-while(0) macro.
> >> 
> >> Whats the benefit of a static inline function or a macro vs the way
> >> I do it now?
> > 
> > What François complained about - no need for extra #include
> 
> I still don't really understand how I am supposed to do that…

I don't have anything else to say. Maybe it's not possible or not practical 
for reasons that would be clear if I tried, but I obviously haven't and 
wouldn't care to.

> And I still don't understand whats the benefit of doing that,
> maybe I am misunderstanding something…

Uh? As said, the benefit is that you don't need to include other headers to get 
function declarations.

-- 
Rémi Denis-Courmont
Ville neuve de Tapiola, République d´Uusimaa





More information about the vlc-devel mailing list