simon-git: putty (master): Simon Tatham

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Tue Dec 22 13:37:00 GMT 2015


TL;DR:
  7ca84b4 Add the new testbn binary to .gitignore.
  74e7629 Use the proper snprintf function if compiling with VS2015.
  21101c7 Make some static text in GTK dialogs selectable.
  2eb952c Use readonly edit controls in some Windows dialogs.
  9ddd071 Stop copying the licence text into C source code.
  774d37a Autogenerate licence text in doc subdir from LICENCE.

Repository:     git://git.tartarus.org/simon/putty.git
On the web:     http://tartarus.org/~simon-git/gitweb/?p=putty.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2015-12-22 13:37:00

commit 7ca84b4d68cb7a58302030ed0432ad5deb4b025d
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=7ca84b4d68cb7a58302030ed0432ad5deb4b025d;hp=50ea866e4c657da00ad03aaa6f2eb492978bf00e
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Dec 22 11:20:09 2015 +0000

    Add the new testbn binary to .gitignore.
    
    One of these days I'll think of a way of not forgetting this every
    time...

 .gitignore |    1 +
 1 file changed, 1 insertion(+)

commit 74e7629e68ecfa8f764879d5553a5801451e11bb
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=74e7629e68ecfa8f764879d5553a5801451e11bb;hp=7ca84b4d68cb7a58302030ed0432ad5deb4b025d
Author: Simon Tatham <anakin at pobox.com>
Date:   Sat Dec 19 10:07:11 2015 +0000

    Use the proper snprintf function if compiling with VS2015.
    
    Proper snprintf is finally supported as of the latest Visual Studio,
    and has better semantics for my purposes than the old MS-specific
    _snprintf. (Specifically, if its output doesn't fit the buffer, it
    returns the full size it _would_ have wanted, so that you can then
    immediately allocate that much space, and don't have to keep going
    round a loop increasing the buffer size until you find the answer.)

 misc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 21101c7397e460933635a7bfed813864fc4f88fe
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=21101c7397e460933635a7bfed813864fc4f88fe;hp=74e7629e68ecfa8f764879d5553a5801451e11bb
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Dec 22 12:32:48 2015 +0000

    Make some static text in GTK dialogs selectable.
    
    I've made the licence text, the About box, and the host key dialog
    into GTK selectable edit controls. (The former because it contains a
    lot of text; the About box because pasting version numbers into bug
    reports is obviously useful; the host key because of the fingerprint.)

 unix/gtkdlg.c |   72 +++++++++++++++++++++++++++++++++++++++++++--------------
 unix/gtkwin.c |    2 +-
 unix/unix.h   |    2 +-
 3 files changed, 57 insertions(+), 19 deletions(-)

commit 2eb952ca31aa13d1f6f429305fbb6f43a9a28c56
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=2eb952ca31aa13d1f6f429305fbb6f43a9a28c56;hp=21101c7397e460933635a7bfed813864fc4f88fe
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Dec 22 10:18:48 2015 +0000

    Use readonly edit controls in some Windows dialogs.
    
    This makes the About and Licence boxes copy-and-pasteable, similarly
    to what I've just done on Unix.
    
    (But unlike on the Unix side, here I haven't touched the host key
    prompt dialog, because that's a standard Windows MessageBox and not
    easy to mess around with. Plus, in any case, you can already hit ^C to
    copy the whole text out of a MessageBox. Same goes for the PGP
    fingerprints dialog.)
    
    As a side effect, several copies of the copyright notice and licence
    text have moved from .rc files into C source. I've updated
    CHECKLST.txt, but they won't stay there for long.

 CHECKLST.txt        |    8 ++++----
 windows/pageant.rc  |   46 +++++++---------------------------------------
 windows/puttygen.rc |   46 +++++++---------------------------------------
 windows/win_res.h   |    8 +++-----
 windows/win_res.rc2 |   48 ++++++++----------------------------------------
 windows/windlg.c    |   41 +++++++++++++++++++++++++++++++++++++++--
 windows/winpgen.c   |   39 ++++++++++++++++++++++++++++++++++++++-
 windows/winpgnt.c   |   39 ++++++++++++++++++++++++++++++++++++++-
 8 files changed, 144 insertions(+), 131 deletions(-)

commit 9ddd071ec28050b3be572f25f3ae7d44e46e4039
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=9ddd071ec28050b3be572f25f3ae7d44e46e4039;hp=2eb952ca31aa13d1f6f429305fbb6f43a9a28c56
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Dec 22 12:43:31 2015 +0000

    Stop copying the licence text into C source code.
    
    Now all the uses of the licence text or the short copyright notice get
    it from a new header "licence.h", which in turn is built by a Perl
    script licence.pl invoked by mkfiles.pl, using LICENCE itself as the
    source.
    
    Hence, I can completely remove a whole section from the list of
    licence locations in CHECKLST.txt :-)

 .gitignore          |    1 +
 CHECKLST.txt        |   19 +--------------
 licence.pl          |   64 +++++++++++++++++++++++++++++++++++++++++++++++++++
 mkfiles.pl          |    5 ++--
 unix/gtkdlg.c       |   35 +++-------------------------
 windows/version.rc2 |    3 ++-
 windows/windlg.c    |   35 +++-------------------------
 windows/winpgen.c   |   34 +++------------------------
 windows/winpgnt.c   |   34 +++------------------------
 9 files changed, 83 insertions(+), 147 deletions(-)

commit 774d37a0dc79441d6add265a0d360af3e53f8460
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=774d37a0dc79441d6add265a0d360af3e53f8460;hp=9ddd071ec28050b3be572f25f3ae7d44e46e4039
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Dec 22 11:18:48 2015 +0000

    Autogenerate licence text in doc subdir from LICENCE.
    
    Now we have licence.pl, it seems to me to make very good sense to have
    it generate the Halibut form(s) of the licence and copyright year as
    well as the source-code forms.
    
    As a result, I believe _no_ copies of the licence text or copyright
    date exist any more except for the master one in LICENCE - so I can
    completely remove the checklist section about all the places to update
    it, because there's only one. Hooray!

 .gitignore      |    1 +
 CHECKLST.txt    |   17 -----------
 doc/Makefile    |    4 +--
 doc/blurb.but   |    2 +-
 doc/licence.but |   27 ------------------
 licence.pl      |   85 ++++++++++++++++++++++++++++++++++++++++++++-----------
 6 files changed, 72 insertions(+), 64 deletions(-)



More information about the tartarus-commits mailing list