Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(76)

Issue 2862041: eiSList (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by Bo Schwarzstein
Modified:
13 years, 5 months ago
Reviewers:
kendrick, Elvic
Base URL:
http://elvishrender.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -0 lines) Patch
eiCORE/UnitTest/CMakeLists.txt View 1 chunk +3 lines, -0 lines 0 comments Download
eiCORE/UnitTest/eiSListUnitTest.h View 1 chunk +62 lines, -0 lines 2 comments Download
eiCORE/eiSList.h View 1 chunk +84 lines, -0 lines 4 comments Download
eiCORE/eiSList.c View 1 chunk +124 lines, -0 lines 4 comments Download

Messages

Total messages: 3
Bo Schwarzstein
13 years, 5 months ago (2010-11-03 17:25:52 UTC) #1
kendrick
My 2 cents opinion. http://codereview.appspot.com/2862041/diff/1/eiCORE/UnitTest/eiSListUnitTest.h File eiCORE/UnitTest/eiSListUnitTest.h (right): http://codereview.appspot.com/2862041/diff/1/eiCORE/UnitTest/eiSListUnitTest.h#newcode21 eiCORE/UnitTest/eiSListUnitTest.h:21: typedef struct myNode I am ...
13 years, 5 months ago (2010-11-04 04:27:05 UTC) #2
Elvic
13 years, 5 months ago (2010-11-04 07:13:57 UTC) #3
Generally good to me, Kaichi's comments on the algorithm is remarkable, I would
take a deeper look later.

http://codereview.appspot.com/2862041/diff/1/eiCORE/eiSList.c
File eiCORE/eiSList.c (right):

http://codereview.appspot.com/2862041/diff/1/eiCORE/eiSList.c#newcode100
eiCORE/eiSList.c:100: eiBool ei_slist_clear(ei_slist* slist)
On 2010/11/04 04:27:05, kendrick wrote:

The design is to be "intrusive", as you said, users are supposed to allocate and
release the memory on their own. This design gives us more flexibility on memory
management, with the cost of reducing usability.

These functions are only meant to manipulate "linkages", no other sorts of
operations should be performed.

http://codereview.appspot.com/2862041/diff/1/eiCORE/eiSList.h
File eiCORE/eiSList.h (right):

http://codereview.appspot.com/2862041/diff/1/eiCORE/eiSList.h#newcode32
eiCORE/eiSList.h:32: 
On 2010/11/04 04:27:05, kendrick wrote:

I guess this is the special naming convention for our STL-analogue containers.

http://codereview.appspot.com/2862041/diff/1/eiCORE/eiSList.h#newcode49
eiCORE/eiSList.h:49: EI_API_EXPORT eiSizet ei_slist_size(const ei_slist* slist);
On 2010/11/04 04:27:05, kendrick wrote:

Agreed.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b