Skip to content

Clean up add_to_list function a bit.#1140

Merged
iphydf merged 1 commit into
TokTok:masterfrom
iphydf:add-to-list
Aug 30, 2018
Merged

Clean up add_to_list function a bit.#1140
iphydf merged 1 commit into
TokTok:masterfrom
iphydf:add-to-list

Conversation

@iphydf

@iphydf iphydf commented Aug 27, 2018

Copy link
Copy Markdown
Member

Can't trivially get rid of recursion here, since it's a non-linear
recursive function.


This change is Reviewable

@iphydf iphydf added this to the v0.2.x milestone Aug 27, 2018
Comment thread toxcore/DHT.c Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread toxcore/DHT.h Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain return value

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@codecov

codecov Bot commented Aug 30, 2018

Copy link
Copy Markdown

Codecov Report

Merging #1140 into master will increase coverage by 0.1%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1140     +/-   ##
========================================
+ Coverage    82.4%   82.6%   +0.1%     
========================================
  Files          82      82             
  Lines       14478   14478             
========================================
+ Hits        11943   11965     +22     
+ Misses       2535    2513     -22
Impacted Files Coverage Δ
toxcore/DHT.c 76.7% <100%> (ø) ⬆️
toxcore/onion_client.c 94.4% <0%> (-0.2%) ⬇️
toxcore/net_crypto.c 93.4% <0%> (-0.1%) ⬇️
toxcore/friend_connection.c 94.8% <0%> (+0.2%) ⬆️
toxav/msi.c 65.6% <0%> (+1.6%) ⬆️
toxav/toxav.c 69.1% <0%> (+1.7%) ⬆️
toxav/bwcontroller.c 55% <0%> (+8.6%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 515196d...a5cd476. Read the comment docs.

Can't trivially get rid of recursion here, since it's a non-linear
recursive function.
@iphydf iphydf merged commit a5cd476 into TokTok:master Aug 30, 2018
@iphydf iphydf deleted the add-to-list branch August 30, 2018 21:57
@robinlinden robinlinden modified the milestones: v0.2.x, v0.2.8 Oct 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants