simon-git: spigot (master): spigot.git

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sun Nov 13 08:48:50 GMT 2016


TL;DR:
  48b6ed1 Expression parser: use std::string instead of malloc.

Repository:     https://git.tartarus.org/simon/spigot.git
On the web:     https://git.tartarus.org/?p=simon/spigot.git
Branch updated: master
Committer:      spigot.git
Date:           2016-11-13 08:48:50

commit 48b6ed12899d7f3004e0b32742bf999d98219086
web diff https://git.tartarus.org/?p=simon/spigot.git;a=commitdiff;h=48b6ed12899d7f3004e0b32742bf999d98219086;hp=c4fb15e6b7d8c31f213f2de40a22ce215c9bb0bd
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Nov 13 08:44:17 2016 +0000

    Expression parser: use std::string instead of malloc.
    
    Mostly for the valgrind convenience - valgrind keeps reporting
    annoying spurious errors of the form 'you malloced 2 bytes for some
    titchy string and then an optimised library strcmp tried to read from
    it a machine word at a time', which is the kind of thing you wish
    valgrind and the C library would just sort out between them and not
    bother you with. Hopefully changing to std::string will perturb these
    annoying warnings out of existence, and in any case, it's also
    convenient to make the memory management somebody else's problem.

 expr.cpp | 81 ++++++++++++++++++++++------------------------------------------
 1 file changed, 28 insertions(+), 53 deletions(-)



More information about the tartarus-commits mailing list