Re: Fwd: SplDoublyLinkedList

From: Date: Mon, 09 Jan 2012 08:17:07 +0000
Subject: Re: Fwd: SplDoublyLinkedList
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-57282@lists.php.net to get a copy of this message
On Mon, 09 Jan 2012 04:59:09 +0100, Paul Dragoonis <dragoonis@gmail.com> wrote:
Hey Internals, I've finished the patch, and with approval i'd like to push to trunk, even though i'm aware we have a 5_4 branch code freeze. Can someone review my work and provide feedback/approval? [1] https://gist.github.com/1580974
Just a few comments: * There's zend_parse_parameters_none, which basically expands to what you've done. * We use tabs for indentation not space (tabstop 4) * Leave a space between "while" and the parenthesis. * Your declarations should be on the top of a block, otherwise compilers that don't implement that C99 feature (like Microsoft's Visual C++) will reject them. * In C (though not in C++), you don't have to add casts on conversions from void*. This is more of an opinion, but I also think you shouldn't because otherwise if you forget an include, you won't get a warning on the conversion of the implicit int return of undeclared functions to your target pointer type. -- Using Opera's revolutionary email client: http://www.opera.com/mail/

« previous php.internals (#57282) next »