summaryrefslogtreecommitdiffstats
path: root/ini/ini_comment.c
Commit message (Collapse)AuthorAgeFilesLines
* Initialize simple bufferDmitri Pal2011-01-031-5/+10
| | | | | | | | | Allocating simple buffer is not enough. It needs to be initialized with something. The patch does exactly this for the case when the empty comment string is represented by a NULL value in the function input variable. Coverity issue 10073.
* Refactoring comment objectDmitri Pal2010-12-211-120/+150
| | | | | | | | | | | | | | * Added copy coment functionality * Changed the internal implementation to use array simple buffer instead of the two arrays one for lines and one for lengths * Realigned comments in the header file * Changed the trace macros to use simplified entry and exit macros. * Corrected unit test to return error codes. * Refactored unit test to use array of test functions intead of the direct calls * Added unit test for copy functionality.
* Extend the comment interfaceDmitri Pal2010-09-221-10/+30
| | | | | Take advantage of the already known string length instead of counting bytes once more.
* Refining comment objectDmitri Pal2010-09-221-19/+135
| | | | Comment object should store lengths of the lines.
* Introducing a comment objectDmitri Pal2010-04-301-0/+509
Comment object will store the comments found in the INI file. It is based on the ref_array interface. Fixing review comments for comment obj.