Re: proto-skript [was authors....] (fwd)
| From: | Maxim Maletsky | Date: | Tue, 04 Feb 2003 01:23:06 +0000 |
| Subject: | Re: proto-skript [was authors....] (fwd) | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969351521@lists.php.net to get a copy of this message | ||
oh, I noticed :)
Update: for now I only composed the script (partially based on Jesus's
and Brad's code) that scans the the C sources and funcsummary.txt to a
structured array of data. This, would then be compared to the XML in the docs
and the C sources to get the actual parameter counts, return types and
proto definitions. Comparing the two, you get some very interesting
results.
This script cannot be precise as the C code is a lot tricky and i am not
going to write a C parser here. At most, it catched some 60-70% of the
C sources. But so far, in just a few hours stubbing the code, I noticed
how many inconsistencies were there.
Let's see what Ilia is playing with. If same thing then we might want to
merge the efforts somehow, otherwise I can commit my file once I make it
be something more finalized and useful.
--
Maxim Maletsky
maxim@php.net
On Mon, 3 Feb 2003 18:00:15 +0000 (GMT) Philip Olson <philip@cornado.com> wrote:
> Sorry, I wrote a wrong address for Ilia so here's a
> correct one.
>
> Philip
>
>
> ---------- Forwarded message ----------
> Date: Mon, 3 Feb 2003 17:46:08 +0000 (GMT)
> From: Philip Olson <philip@cornado.com>
> To: Maxim Maletsky <maxim@php.net>
> Cc: Friedhelm Betz <holliwell@gmx.net>, Gabor Hojtsy <gabor@hojtsy.hu>,
> phpdoc@lists.php.net, ilia@php.net
> Subject: Re: [PHP-DOC] proto-skript [was authors....]
>
> On Mon, 3 Feb 2003, Maxim Maletsky wrote:
> > Thanks, I think this can be useful to me.
> >
> > Actually, in base of this (and others out there) script(s), I am going
> > to attempt creating a script that parses both the C code and the docs
> > tree to look for any inconsistencies.
> >
> > Somewhat like a doc-bug hunter. The goal in this case will be to
> > analyze the current documentation and get listed the functions that do
> > not correspond to the current documentation, such as in our case some
> > return values and parameter counts. Would be helpful getting a
> > machine-generated summary of incorrectly documented protos and functions
> > (like for things that have been changed since they were documented etc).
> >
> > I already saw things doing similar to that, so I've got the base.
> >
> > Any thoughts/complains/suggestions? If what comes out will work well for
> > me and nobody objects, I will then commit it to the /phpdoc/scripts.
>
> Ilia has already created something that does this and
> he's been going through it doing minor tweaks here and
> there for awhile now. You may want to talk to him.
>
> Regards,
> Philip
>
>
>
>
>
> > Friedhelm Betz <holliwell@gmx.net> wrote... :
> >
> > > > > I have heard some rumors about someone creating a proto check script to
> > > > > check whether the protos in phpdoc reflect the current protos of
> > > > > functions in the php source. Take in account undocumented new
> > > > > parameters, etc. too... I don't think that anybody can get on this to
do
> > > > > it manually in any reasonable time...
> > > >
> > > > Would be nice to investigate on this deeper and see whether we can do
> > > > something about it. I could go ahead to write a similar script myself.
> > >
> > > Take a look at /phpdoc/scripts/xml_proto.php
> > > never tried, but may be a good starting point.
> > >
> > > Friedhelm
> > >
> > >
> > > --
> > > PHP Documentation Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> >
> > --
> > PHP Documentation Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> --
> PHP Documentation Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>