Ticket #145: liberty.h.patch

File liberty.h.patch, 1.8 kB (added by draqo, 2 years ago)
  • gnugo/engine/liberty.h

    RCS file: /sources/gnugo/gnugo/engine/liberty.h,v
    retrieving revision 1.258
    diff -u -r1.258 liberty.h
     
    9797  "analyze_semeai" 
    9898 
    9999/* To prioritize between different types of reading, we give a cost 
    100  * ranking to each of the routines above: 
     100 * ranking to each of the routines above (bigger index means bigger 
     101 * cost): 
    101102 * 
    102103 * 4 semeai 
    103104 * 3 owl 
     
    111112  3, 3, 4, 0, 0, 1, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, -1 
    112113   
    113114 
    114 const char *routine_id_to_string(enum routine_id routine); 
     115inline const char *routine_id_to_string(enum routine_id routine); 
    115116 
    116117 
    117118/* This is used for both the dragon status and safety fields. 
     
    194195                     struct corner_db *database); 
    195196void dfa_match_init(void); 
    196197 
    197 void reading_cache_init(int bytes); 
    198 void reading_cache_clear(void); 
    199 float reading_cache_default_size(void); 
     198inline void reading_cache_init(int bytes); 
     199inline void reading_cache_clear(void); 
     200inline float reading_cache_default_size(void); 
    200201 
    201202/* reading.c */ 
    202203int attack(int str, int *move); 
     
    345346int surround_map(int dr, int pos); 
    346347 
    347348/* functions to add (or remove) move reasons */ 
    348 void collect_move_reasons(int color); 
     349inline void collect_move_reasons(int color); 
    349350 
    350351void clear_move_reasons(void); 
    351352void add_lunch(int eater, int food); 
     
    652653 
    653654void break_territories(int color_to_move, struct influence_data *q, 
    654655                       int store, int pos); 
    655 void clear_break_in_list(void); 
     656inline void clear_break_in_list(void); 
    656657void break_in_move_reasons(int color); 
    657658 
    658659void choose_strategy(int color, float our_score, float game_status);