Difference for test/toolkit/toolkit_common.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 1
 
Line 1
 /* place holder for now, feel free to replace this place holder with something usefull,  /*
  it is there only so that toolkit.a has a bit of content */   * static char *rcsid_check_object_c =
    *   "$Id: toolkit_common.c,v 1.2 2006/06/01 23:07:32 tchize Exp $";
    */
   
 int blablabla(int bla){  /*
  return bla;      CrossFire, A Multiplayer game for X-windows
   
       Copyright (C) 2002 Mark Wedel & Crossfire Development Team
       Copyright (C) 1992 Frank Tore Johansen
   
       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 of the License, 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.
   
       You should have received a copy of the GNU General Public License
       along with this program; if not, write to the Free Software
       Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   
       The authors can be reached via e-mail at crossfire-devel@real-time.com
   */
   
   /*
    * This is the toolkit for common only operations
    * All methods should start with cctk (common check toolkit)
    */
   
   #include <global.h>
   #include <stdlib.h>
   #include <check.h>
   
   #define STATUS_LOGDIR    0x0001
   #define STATUS_DATADIR   0x0002
   
   #define STATUS_GLOBALS   0x0100
   #define STATUS_HASHTABLE 0x0200
   #define STATUS_OBJECTS   0x0400
   #define STATUS_VARS      0x0800
   #define STATUS_BLOCK     0x1000
   #define STATUS_BMAP      0x2000
   #define STATUS_ANIM      0x4000
   #define STATUS_ARCH      0x8000
   #define SET_TKFLAG(__flag) (status_flag|=__flag)
   #define CHECK_TKFLAG(__flag) (status_flag & __flag)
   #define CCTK_ASSERT(__flag) { \
           if (!CHECK_TKFLAG(__flag)) \
               fail("Improper initialisation, flag 0x%H",__flag);\
           }
   static int status_flag=0;
   
   /**
    * set the logdir to use
    */
   void cctk_setlog(char* logfile){
       settings.logfilename=logfile;
       SET_TKFLAG(STATUS_LOGDIR);
   }
   
   void cctk_setdatadir(char* datadir){
       settings.datadir=datadir;
       SET_TKFLAG(STATUS_DATADIR);
   }
   /**
    * Loads up to archetype initialisation using standard crossfire files in source tree
    */
   void cctk_init_std_archetypes(){
       CCTK_ASSERT(STATUS_LOGDIR|STATUS_DATADIR);
       settings.archetypes="archetypes";
       settings.treasures="treasures.bld";
       init_globals();
       init_hash_table();
       init_objects();
       init_vars();
       init_block();
       read_bmap_names ();
       read_smooth();
       init_anim();
       init_archetypes();
       SET_TKFLAG(STATUS_GLOBALS|STATUS_HASHTABLE|STATUS_OBJECTS|STATUS_VARS|STATUS_BLOCK|STATUS_BMAP|STATUS_ANIM|STATUS_ARCH);
 }  }


Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2

File made using version 1.98 of cvs2html by leaf at 2011-07-21 19:14