Author: cazfi Date: Fri Oct 7 18:17:04 2016 New Revision: 34048 URL: http://svn.gna.org/viewcvs/freeciv?rev=34048&view=rev Log: Added common srvdefs.h with TOKEN_DELIMITERS moved there also client end to use.
See patch #7882 Added: trunk/common/srvdefs.h Modified: trunk/common/Makefile.am trunk/server/stdinhand.c Modified: trunk/common/Makefile.am URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/Makefile.am?rev=34048&r1=34047&r2=34048&view=diff ============================================================================== --- trunk/common/Makefile.am (original) +++ trunk/common/Makefile.am Fri Oct 7 18:17:04 2016 @@ -95,6 +95,7 @@ spaceship.h \ specialist.c \ specialist.h \ + srvdefs.h \ style.c \ style.h \ team.c \ Added: trunk/common/srvdefs.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/srvdefs.h?rev=34048&view=auto ============================================================================== --- trunk/common/srvdefs.h (added) +++ trunk/common/srvdefs.h Fri Oct 7 18:17:04 2016 @@ -0,0 +1,26 @@ +/*********************************************************************** + Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. +***********************************************************************/ +#ifndef FC__SRVDEFS_H +#define FC__SRVDEFS_H + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#define TOKEN_DELIMITERS " \t\n," + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* FC__SRVDEFS_H */ Modified: trunk/server/stdinhand.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/stdinhand.c?rev=34048&r1=34047&r2=34048&view=diff ============================================================================== --- trunk/server/stdinhand.c (original) +++ trunk/server/stdinhand.c Fri Oct 7 18:17:04 2016 @@ -48,6 +48,7 @@ #include "player.h" #include "research.h" #include "rgbcolor.h" +#include "srvdefs.h" #include "unitlist.h" #include "version.h" @@ -83,8 +84,6 @@ #include "handicaps.h" #include "stdinhand.h" - -#define TOKEN_DELIMITERS " \t\n," #define OPTION_NAME_SPACE 25 _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits