# HG changeset patch # User Mike Becker # Date 1456484142 -3600 # Node ID 54ea19938d57c69cef10b5b3ece7f76bb05dc495 # Parent eef745ba3774befefdaac0038c6b844e37de990f updated copyright and version info diff -r eef745ba3774 -r 54ea19938d57 LICENSE --- a/LICENSE Wed Aug 26 14:46:42 2015 +0200 +++ b/LICENSE Fri Feb 26 11:55:42 2016 +0100 @@ -1,4 +1,4 @@ -Copyright 2014 Mike Becker. All rights reserved. +Copyright 2016 Mike Becker. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 Makefile --- a/Makefile Wed Aug 26 14:46:42 2015 +0200 +++ b/Makefile Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. # -# Copyright 2014 Mike Becker. All rights reserved. +# Copyright 2016 Mike Becker. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 conf.mk --- a/conf.mk Wed Aug 26 14:46:42 2015 +0200 +++ b/conf.mk Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. # -# Copyright 2014 Mike Becker. All rights reserved. +# Copyright 2016 Mike Becker. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/Makefile --- a/src/Makefile Wed Aug 26 14:46:42 2015 +0200 +++ b/src/Makefile Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. # -# Copyright 2014 Mike Becker. All rights reserved. +# Copyright 2016 Mike Becker. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/Makefile --- a/src/chess/Makefile Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/Makefile Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. # -# Copyright 2014 Mike Becker. All rights reserved. +# Copyright 2016 Mike Becker. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/bishop.c --- a/src/chess/bishop.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/bishop.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/bishop.h --- a/src/chess/bishop.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/bishop.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/chess.h --- a/src/chess/chess.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/chess.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/conf.mk --- a/src/chess/conf.mk Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/conf.mk Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. # -# Copyright 2014 Mike Becker. All rights reserved. +# Copyright 2016 Mike Becker. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/king.c --- a/src/chess/king.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/king.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/king.h --- a/src/chess/king.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/king.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/knight.c --- a/src/chess/knight.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/knight.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/knight.h --- a/src/chess/knight.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/knight.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/pawn.c --- a/src/chess/pawn.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/pawn.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/pawn.h --- a/src/chess/pawn.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/pawn.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/pgn.c --- a/src/chess/pgn.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/pgn.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/pgn.h --- a/src/chess/pgn.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/pgn.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/queen.c --- a/src/chess/queen.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/queen.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/queen.h --- a/src/chess/queen.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/queen.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/rook.c --- a/src/chess/rook.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/rook.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/rook.h --- a/src/chess/rook.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/rook.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/rules.c --- a/src/chess/rules.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/rules.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/chess/rules.h --- a/src/chess/rules.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/chess/rules.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/client.c --- a/src/client.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/client.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/colors.c --- a/src/colors.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/colors.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/colors.h --- a/src/colors.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/colors.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/game.c --- a/src/game.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/game.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/game.h --- a/src/game.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/game.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/input.c --- a/src/input.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/input.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/input.h --- a/src/input.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/input.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/main.c --- a/src/main.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/main.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -146,7 +146,7 @@ return 0; } -Settings default_settings() { +static Settings default_settings() { Settings settings; memset(&settings, 0, sizeof(Settings)); settings.gameinfo.servercolor = WHITE; @@ -194,10 +194,6 @@ refresh(); } -void leavescr() { - endwin(); -} - int main(int argc, char **argv) { srand(time(NULL)); @@ -218,7 +214,7 @@ endwin(); return EXIT_FAILURE; } - atexit(leavescr); + atexit((void(*)())endwin); int exitcode; if (settings.singlemachine) { diff -r eef745ba3774 -r 54ea19938d57 src/network.c --- a/src/network.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/network.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/network.h --- a/src/network.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/network.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/server.c --- a/src/server.c Wed Aug 26 14:46:42 2015 +0200 +++ b/src/server.c Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff -r eef745ba3774 -r 54ea19938d57 src/terminal-chess.h --- a/src/terminal-chess.h Wed Aug 26 14:46:42 2015 +0200 +++ b/src/terminal-chess.h Fri Feb 26 11:55:42 2016 +0100 @@ -1,7 +1,7 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * - * Copyright 2014 Mike Becker. All rights reserved. + * Copyright 2016 Mike Becker. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -36,7 +36,7 @@ #ifndef TERMINAL_CHESS_H #define TERMINAL_CHESS_H -#define PROGRAM_VERSION "0.9-r52" +#define PROGRAM_VERSION "0.9-r55" #ifdef __cplusplus extern "C" {