diff -N -r -u -X .ignore gnugo-copy/engine/board.c gnugo/engine/board.c
|
old
|
new
|
|
| 192 | 192 | */ |
| 193 | 193 | static int next_stone[BOARDMAX]; |
| 194 | 194 | |
| | 195 | /* Table for some functions - used to speed up the program. */ |
| | 196 | static int all_libs[MAXLIBS]; |
| | 197 | |
| 195 | 198 | |
| 196 | 199 | /* ---------------------------------------------------------------- */ |
| 197 | 200 | |
| … |
… |
|
| 2609 | 2612 | int |
| 2610 | 2613 | count_common_libs(int str1_pos, int str2_pos) |
| 2611 | 2614 | { |
| 2612 | | static int all_libs1[MAXLIBS]; |
| 2613 | 2615 | int *last_lib, *libs1; |
| 2614 | 2616 | int liberties1, liberties2; |
| 2615 | 2617 | int str1_nr, str2_nr; |
| … |
… |
|
| 2658 | 2660 | } |
| 2659 | 2661 | } |
| 2660 | 2662 | else { |
| 2661 | | findlib(str1_pos, MAXLIBS, all_libs1); |
| 2662 | | libs1 = all_libs1; |
| | 2663 | findlib(str1_pos, MAXLIBS, all_libs); |
| | 2664 | libs1 = all_libs; |
| 2663 | 2665 | } |
| 2664 | 2666 | |
| 2665 | 2667 | color = string[str2_nr].color; |
| … |
… |
|
| 2683 | 2685 | int |
| 2684 | 2686 | find_common_libs(int str1_pos, int str2_pos, int maxlib, int *libs) |
| 2685 | 2687 | { |
| 2686 | | static int all_libs1[MAXLIBS]; |
| 2687 | 2688 | int *last_lib, *libs1; |
| 2688 | 2689 | int liberties1, liberties2; |
| 2689 | 2690 | int str1_nr, str2_nr; |
| … |
… |
|
| 2736 | 2737 | } |
| 2737 | 2738 | } |
| 2738 | 2739 | else { |
| 2739 | | findlib(str1_pos, MAXLIBS, all_libs1); |
| 2740 | | libs1 = all_libs1; |
| | 2740 | findlib(str1_pos, MAXLIBS, all_libs); |
| | 2741 | libs1 = all_libs; |
| 2741 | 2742 | } |
| 2742 | 2743 | |
| 2743 | 2744 | color = string[str2_nr].color; |
| … |
… |
|
| 2759 | 2760 | int |
| 2760 | 2761 | have_common_lib(int str1_pos, int str2_pos, int *lib) |
| 2761 | 2762 | { |
| 2762 | | static int all_libs1[MAXLIBS]; |
| 2763 | 2763 | int *last_lib, *libs1; |
| 2764 | 2764 | int liberties1, liberties2; |
| 2765 | 2765 | int str1_nr, str2_nr; |
| … |
… |
|
| 2789 | 2789 | /* Speed optimization: don't copy liberties with findlib */ |
| 2790 | 2790 | libs1 = string_libs[str1_nr].list; |
| 2791 | 2791 | else { |
| 2792 | | findlib(str1_pos, MAXLIBS, all_libs1); |
| 2793 | | libs1 = all_libs1; |
| | 2792 | findlib(str1_pos, MAXLIBS, all_libs); |
| | 2793 | libs1 = all_libs; |
| 2794 | 2794 | } |
| 2795 | 2795 | |
| 2796 | 2796 | color = string[str2_nr].color; |
| … |
… |
|
| 2984 | 2984 | extended_chainlinks(int str_pos, int adj[MAXCHAIN], int both_colors) |
| 2985 | 2985 | { |
| 2986 | 2986 | int *cur_neighbor, *last_neigbor; |
| 2987 | | static int libs[MAXLIBS]; |
| 2988 | 2987 | int *cur_lib, *last_lib; |
| 2989 | 2988 | int checked_pos; |
| 2990 | 2989 | int color; |
| … |
… |
|
| 3014 | 3013 | } |
| 3015 | 3014 | |
| 3016 | 3015 | /* Get the liberties. */ |
| 3017 | | cur_lib = libs; |
| 3018 | | last_lib = cur_lib + findlib(str_pos, MAXLIBS, libs); |
| | 3016 | cur_lib = all_libs; |
| | 3017 | last_lib = cur_lib + findlib(str_pos, MAXLIBS, all_libs); |
| 3019 | 3018 | |
| 3020 | 3019 | /* Look for unmarked strings next to a liberty and add the |
| 3021 | 3020 | * ones which are found to the output. |
diff -N -r -u -X .ignore gnugo-copy/patterns/patterns.vcproj gnugo/patterns/patterns.vcproj
|
old
|
new
|
|
| 635 | 635 | > |
| 636 | 636 | </File> |
| 637 | 637 | <File |
| 638 | | RelativePath="patlib.h" |
| 639 | | > |
| 640 | | </File> |
| 641 | | <File |
| 642 | 638 | RelativePath="patterns.h" |
| 643 | 639 | > |
| 644 | 640 | </File> |