[parted-devel] Re: Parted 2.0 plans

leslie.polzer at gmx.net leslie.polzer at gmx.net
Thu Nov 23 10:04:12 CET 2006


On Wed, Nov 22, 2006 at 09:20:05PM +0000, Debarshi 'Rishi' Ray wrote:

> >>I have implemented this feature.
Thank you very much :)

> >I think -l is more clear. It'll basically "list" the devices. But
> >another options would be put one as an alias to the other. Would work
> >fine.
I'm for aliasing, too.

> >Basically, I still think -l is clear.
Me too, and people are used to it from fdisk.

> >> +static int print_all ();
> >
> >Why you didn't use _print_all ();?
>
> There are 2 functions. print_all does the actual job of 'print all'.
> When invoked using the command line switch _print_all calls print_all
> and exits, in other cases do_print calls print_all. I chose the names
> according to the way 'version' and '--version' are implemented through
> 'do_print' and '_version' respectively.
>
> Has it messed up the naming conventions?
Sort of.  Static functions are prefixed with an underscore throughout
the code.  When there's a naming clash in this respect, you should think
about the naming of your functions.  The 'do_' prefix is helpful in this
case, if I got it right.

  Leslie

-- 
gpg --keyserver pgp.mit.edu --recv-keys DD4EBF83
http://nic-nac-project.de/~skypher/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20061123/4800e959/attachment.pgp


More information about the parted-devel mailing list