simon-git: spigot (master): Simon Tatham
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Mon Feb 15 19:44:01 GMT 2016
TL;DR:
7cfe3a9 Fix a lot of gcc warnings.
13c2eae Add missing source files to python/setup.py.
f1903b2 New Python demo script: pythangle.py.
Repository: git://git.tartarus.org/simon/spigot.git
On the web: http://tartarus.org/~simon-git/gitweb/?p=spigot.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2016-02-15 19:44:01
commit 7cfe3a942357e2936660a6cadd727c4cc3d9f4bf
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=7cfe3a942357e2936660a6cadd727c4cc3d9f4bf;hp=211d2f384104811cf438ac95fd480ff0ee6b66b0
Author: Simon Tatham <anakin at pobox.com>
Date: Mon Feb 15 19:21:13 2016 +0000
Fix a lot of gcc warnings.
I noticed today that spigot is not 'gcc -Wall' clean. Most of the
fixes are not functionally interesting (removing unused stuff,
initialising things that everyone except the compiler could see were
safe, a straight-up warning-suppression or two, the usual), but two
that might have actually caused trouble sooner or later were a missing
'virtual' on a destructor in expr.cpp and an embarrassing failure to
actually write to the output pointers in CfracSource::gen_interval().
algebraic.cpp | 7 +++++--
baseout.cpp | 10 ++++------
cfracout.cpp | 4 +---
erf.cpp | 1 -
exp.cpp | 1 -
expr.cpp | 24 ++++++++++++++----------
holefiller.h | 2 +-
main.cpp | 6 +++---
spigot.cpp | 9 +++------
spigot.h | 2 +-
10 files changed, 32 insertions(+), 34 deletions(-)
commit 13c2eae2b5ed4ce0481227cdede3b758e34293bd
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=13c2eae2b5ed4ce0481227cdede3b758e34293bd;hp=7cfe3a942357e2936660a6cadd727c4cc3d9f4bf
Author: Simon Tatham <anakin at pobox.com>
Date: Mon Feb 15 19:21:27 2016 +0000
Add missing source files to python/setup.py.
I haven't been keeping that build script up to date as I add new
modules to the main spigot makefile. Ahem.
python/setup.py | 3 +++
1 file changed, 3 insertions(+)
commit f1903b2bb664a29c8f82dc8eda65beae3305f1bd
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=f1903b2bb664a29c8f82dc8eda65beae3305f1bd;hp=13c2eae2b5ed4ce0481227cdede3b758e34293bd
Author: Simon Tatham <anakin at pobox.com>
Date: Mon Feb 15 19:39:01 2016 +0000
New Python demo script: pythangle.py.
It generates Pythagorean triples that approximate a given angle as
closely as you desire, by finding rational approximations v/u to tan
of _half_ that angle, and then turning each one into a Pythagorean
triple by squaring the Gaussian integer (u+iv). I had occasion to want
to do this recently in the context of making a real object slant at a
specified approximate angle, and it struck me as a neatly
spigot-shaped problem with just enough other computation around it to
make a second plausible demo app for the spigot python module.
python/pythangle.py | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 77 insertions(+)
More information about the tartarus-commits
mailing list