[Freeipa-devel] Patch for the INI parser. Ceanup. Prep for INI validation.

Simo Sorce ssorce at redhat.com
Thu Apr 16 21:46:03 UTC 2009


On Thu, 2009-04-16 at 16:50 -0400, Stephen Gallagher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Stephen Gallagher wrote:
> > Dmitri Pal wrote:
> >> Hi,
> > 
> >>    INI parser. Cleanup. Prep for INI validation.
> >>      This patch addresses several issues:
> >>    a) Cleaning unit test to match coding standard
> >>    b) Replace tabs with spaces - I do not know where they came
> >>    but there were some.
> >>    c) Allowing to read file and keep aside a collection
> >>    of K-V pairs where key is the key in the INI file and value is the
> >>    line number on which line the key appears.
> >>    d) There will be different kinds of errors so
> >>    error printing function was abstracted.
> >>    g) Placeholders for other printing functions have been introduced.
> > 
> > 
> > 
> >> ------------------------------------------------------------------------
> > 
> >> _______________________________________________
> >> Freeipa-devel mailing list
> >> Freeipa-devel at redhat.com
> >> https://www.redhat.com/mailman/listinfo/freeipa-devel
> > 
> > Nack
> > 
> > Do not include so many different changes in a single patch. Of note,
> > never include formatting changes alongside functional changes. This
> > needs to be broken up into at least two patches, one for the formatting
> > and the other for the functional changes.
> > 
> > There is no need to internationalize the empty string. It's a waste of
> > gettext macros.
> > 
> > I am morally opposed to the use of inline in a public API, but I can
> > live with it.
> > 
> > 
> > 
> 
> After several off-list discussions, I'm going to push this patch, and
> Dmitri will follow up with some additional fixes.
> 
> Highlights: his copy of git is broken, so breaking the patch in two is
> non-trivial. The strings are placeholders, so it's fine to
> internationalize them. Inline may be removed in a subsequent patch.
> 
> Ack and pushed.

Please next time make these discussions public.
There is no pressing need to push this patch immediately, if Dmitri has
problems with his git tree, he better get it fixed before going forward.
It's not an excuse to get poor patches in.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York




More information about the Freeipa-devel mailing list