[pacman-dev] Pointless public/private functions

Xavier shiningxc at gmail.com
Fri Jul 27 10:36:42 EDT 2007


On Fri, Jul 27, 2007 at 03:27:03PM +0100, Andrew Fyfe wrote:
> Throughout the libalpm and pacman code there's a lot of public functions 
> that simply wrap a private function (maybe with some asserts). What's 
> the point? Why not have the asserts in the private function and make the 
> private function public reducing the number of function being called?
> 
> 

Maybe that's because all public functions were in alpm.c before, and then Dan
moved them where they belong :
http://projects.archlinux.org/git/?p=pacman.git;a=commit;h=64d36db5f45db15997c6a3987d6f4b0ce147df27

So I would also think these wrappers make little sense now, but not totally
sure :)




More information about the pacman-dev mailing list