summaryrefslogtreecommitdiff
path: root/lib/dynamic-string.c
Commit message (Collapse)AuthorAgeFilesLines
* dynamic-string: New function ds_get_preprocessed_line().Ben Pfaff2011-03-161-1/+27
| | | | | This commit adds one user. It will be useful elsewhere in an upcoming commit.
* Avoid shadowing local variable names.Ben Pfaff2010-09-201-2/+0
| | | | | | | | | | | All of these changes avoid using the same name for two local variables within a same function. None of them are actual bugs as far as I can tell, but any of them could be confusing to the casual reader. The one in lib/ovsdb-idl.c is particularly brilliant: inner and outer loops both using (different) variables named 'i'. Found with GCC -Wshadow.
* treewide: Remove trailing whitespaceJoe Perches2010-08-301-3/+3
| | | | | | Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Simon Horman <horms@verge.net.au> Signed-off-by: Jesse Gross <jesse@nicira.com>
* timeval: Use monotonic time where appropriate.Jesse Gross2010-06-081-1/+1
| | | | | | | | | | Most of the timekeeping needs of OVS are simply to measure intervals, which means that it is sensitive to changes in the clock. This commit replaces the existing clocks with monotonic timers. An additional set of wall clock timers are added and used in locations that need absolute time. Bug #1858
* dynamic-string: Optimize ds_put_char().Ben Pfaff2010-05-051-1/+1
| | | | | | A qprof profile showed ds_put_char() and ds_put_uninit() as 4% of total runtime. This commit inlines the common case, which reduces them to 1% total.
* dynamic-string: New function ds_swap().Ben Pfaff2010-01-281-1/+10
|
* dynamic-string: New function ds_cstr_ro().Ben Pfaff2009-12-161-0/+6
|
* jsonrpc: Add logging for messages sent and received, at DBG level.Ben Pfaff2009-11-171-0/+7
| | | | | This made it much easier to see problems while developing some ovsdb-server features.
* Implement JSON parsing and serialization.Ben Pfaff2009-11-041-0/+25
| | | | This will be used by the upcoming Open vSwitch configuration database.
* New function ds_steal_cstr().Ben Pfaff2009-07-161-1/+12
|
* Update primary code license to Apache 2.0.Ben Pfaff2009-06-151-10/+10
|
* Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45.v0.90.0Ben Pfaff2009-07-081-0/+261