Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whitespace adjustment and removal of some unused variables #24

Closed
wants to merge 12 commits into from

Conversation

stesser
Copy link
Contributor

@stesser stesser commented Jun 13, 2019

I do not know how to restrict the pull request to just the two commits I consider relevant (probably is the GIT way to create a temporary branch for that purpose?)

The relevant commits are:

ca56e06
684e3f6

stesser added 12 commits June 9, 2019 13:10
Do not allocate one BcDig per character of the string passed in.
For ibase between 11 and 26 (decimal) more than one BcDig may be
needed to store the value expressed by BC_BASE_DIGS characters.

Testing for that case will probably cause more overhead than just
applying a fudge factor (not verified - special casing the ibase
range that needs this factor and using a factor of 1.5 instead of
2 might be worth the extra code complexity).
This change improves "make test" performance by more than 2%.
This implementation is not optimized for speed, yet. I have plans to
add copy-on-write semantics for BcNums (i.e. add a reference count and
copy the BcNum only if its refcount is > 1 it is about to be
modified).

This version fails in the bc/stdin test, but diagnosing this problem
will have to wait for tomorrow ...
Beyond the changes performed by the automatic merge, remove references
to the constvals field in struct BcFunc.
FreeBSD uses strict checks for base system components and the build
failed due to the compiler warnings being treated as errors in base.
@codecov
Copy link

codecov bot commented Jun 13, 2019

Codecov Report

Merging #24 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
+ Coverage   99.73%   99.73%   +<.01%     
==========================================
  Files          16       16              
  Lines        3431     3435       +4     
==========================================
+ Hits         3422     3426       +4     
  Misses          9        9
Impacted Files Coverage Δ
src/bc/parse.c 100% <ø> (ø) ⬆️
src/program.c 99.73% <100%> (ø) ⬆️
src/num.c 99.8% <100%> (ø) ⬆️

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 b6cc5ef...ca56e06. Read the comment docs.

@gavinhoward
Copy link
Owner

I have already made these changes in my local branch. I just haven't pushed them yet. I will push them when I get home from work, and I will close this then to remind me.

Thank you.

@gavinhoward
Copy link
Owner

Changes are pushed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants