summaryrefslogtreecommitdiff
path: root/games/quarry
diff options
context:
space:
mode:
authorjoerg <joerg>2012-11-16 00:50:39 +0000
committerjoerg <joerg>2012-11-16 00:50:39 +0000
commit8b031d67944b0af694bbc3cd4bf0ec06b22da86b (patch)
tree792b1187260be719fe441047a9f1841cda8ae45a /games/quarry
parentb028e92787c2f651140809dd2ec659ca2f07c43b (diff)
downloadpkgsrc-8b031d67944b0af694bbc3cd4bf0ec06b22da86b.tar.gz
Fix inline usage.
Diffstat (limited to 'games/quarry')
-rw-r--r--games/quarry/distinfo17
-rw-r--r--games/quarry/patches/patch-src_board_board-internals.h13
-rw-r--r--games/quarry/patches/patch-src_board_board.c76
-rw-r--r--games/quarry/patches/patch-src_board_board.h44
-rw-r--r--games/quarry/patches/patch-src_gui-gtk_gtk-control-center.c30
-rw-r--r--games/quarry/patches/patch-src_gui-gtk_gtk-control-center.h19
-rw-r--r--games/quarry/patches/patch-src_gui-gtk_quarry-text-buffer.c13
-rw-r--r--games/quarry/patches/patch-src_gui-gtk_quarry-text-buffer.h13
-rw-r--r--games/quarry/patches/patch-src_gui-utils_time-control.c13
-rw-r--r--games/quarry/patches/patch-src_gui-utils_time-control.h14
-rw-r--r--games/quarry/patches/patch-src_sgf_sgf-privates.h13
-rw-r--r--games/quarry/patches/patch-src_sgf_sgf-tree.c22
-rw-r--r--games/quarry/patches/patch-src_sgf_sgf-utils.c22
-rw-r--r--games/quarry/patches/patch-src_sgf_sgf.h26
-rw-r--r--games/quarry/patches/patch-src_utils_string-list.c13
-rw-r--r--games/quarry/patches/patch-src_utils_utils.h13
16 files changed, 360 insertions, 1 deletions
diff --git a/games/quarry/distinfo b/games/quarry/distinfo
index bf5e767e471..281ac5c05f4 100644
--- a/games/quarry/distinfo
+++ b/games/quarry/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/03/13 16:06:16 wiz Exp $
+$NetBSD: distinfo,v 1.2 2012/11/16 00:50:39 joerg Exp $
SHA1 (quarry-0.2.0.tar.gz) = 261683ed795db8309b2a830badff4d2f1f2cd860
RMD160 (quarry-0.2.0.tar.gz) = d931fa8a228f545c285c5481771bae91fa0787f8
@@ -7,3 +7,18 @@ SHA1 (patch-aa) = 4ca3baf50d135572e3fe2905cb7369b54f1d6233
SHA1 (patch-ab) = 30214ce85f680b99dccc0009f5bd7ff8f927d9d1
SHA1 (patch-ac) = f37e86ecf9fb0d93fd02c990a3224fffb9ee5c15
SHA1 (patch-ad) = 07b6eb3a618a26830c74a085cc9e132b413caa52
+SHA1 (patch-src_board_board-internals.h) = 463be30643595776a9dcb2c93efb1cfed07b3b12
+SHA1 (patch-src_board_board.c) = a4ca50b94312ec6536dd61fd16cd705923c6402e
+SHA1 (patch-src_board_board.h) = fb7096efb0131bbeb23bdfc73bcc9192cae391e0
+SHA1 (patch-src_gui-gtk_gtk-control-center.c) = a25b63b0fbcf2d5c8133ff58d7ebc2dff7c8dbc5
+SHA1 (patch-src_gui-gtk_gtk-control-center.h) = f792f026b4793fee46e748bc6206ff309bc932d9
+SHA1 (patch-src_gui-gtk_quarry-text-buffer.c) = efbcdad5857cb61262d92ee6086f4c696601a0ce
+SHA1 (patch-src_gui-gtk_quarry-text-buffer.h) = 9ec5a88dfbd1fe24d324cbed907ff72de192d70c
+SHA1 (patch-src_gui-utils_time-control.c) = 2be7ce448f22ce88cbc25025943df3b306bd5e22
+SHA1 (patch-src_gui-utils_time-control.h) = 829a5a94f5d57c18373233918e2caafa128c657b
+SHA1 (patch-src_sgf_sgf-privates.h) = 08f5924924cdf1c4adbc3a23b8ad33af6ee17cf1
+SHA1 (patch-src_sgf_sgf-tree.c) = 32e8b26ed58be374a5ba9c83acb959fdc3dbe039
+SHA1 (patch-src_sgf_sgf-utils.c) = 1113d0183761d552597e0581808341e1de0ca10f
+SHA1 (patch-src_sgf_sgf.h) = 1ec4c961ddb14d7c34d12e50f18ba85a8793b5fb
+SHA1 (patch-src_utils_string-list.c) = 21c48aed6facdb0e9a6da43fbc223e816e76210a
+SHA1 (patch-src_utils_utils.h) = 93a887aa7973b3a86852b1727610c086cbc3b485
diff --git a/games/quarry/patches/patch-src_board_board-internals.h b/games/quarry/patches/patch-src_board_board-internals.h
new file mode 100644
index 00000000000..958e87009d1
--- /dev/null
+++ b/games/quarry/patches/patch-src_board_board-internals.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_board_board-internals.h,v 1.1 2012/11/16 00:50:39 joerg Exp $
+
+--- src/board/board-internals.h.orig 2012-11-15 15:11:27.000000000 +0000
++++ src/board/board-internals.h
+@@ -89,7 +89,7 @@ struct _BoardChangeStackEntry {
+ };
+
+
+-inline void board_undo_changes (Board *board, int num_undos);
++void board_undo_changes (Board *board, int num_undos);
+
+ int determine_position_delta (int delta_x, int delta_y);
+
diff --git a/games/quarry/patches/patch-src_board_board.c b/games/quarry/patches/patch-src_board_board.c
new file mode 100644
index 00000000000..c215ed83539
--- /dev/null
+++ b/games/quarry/patches/patch-src_board_board.c
@@ -0,0 +1,76 @@
+$NetBSD: patch-src_board_board.c,v 1.1 2012/11/16 00:50:39 joerg Exp $
+
+--- src/board/board.c.orig 2012-11-15 15:11:40.000000000 +0000
++++ src/board/board.c
+@@ -281,7 +281,7 @@ board_is_game_over (const Board *board,
+
+
+ /* Determine if a move is legal according to specified rules. */
+-inline int
++int
+ board_is_legal_move (const Board *board, BoardRuleSet rule_set, int color, ...)
+ {
+ va_list move;
+@@ -300,7 +300,7 @@ board_is_legal_move (const Board *board,
+
+
+ /* Play the specified move on the given board. */
+-inline void
++void
+ board_play_move (Board *board, int color, ...)
+ {
+ va_list move;
+@@ -388,7 +388,7 @@ board_apply_changes
+ * tracking unexpectedly changing move number (i.e. with MN[] SGF
+ * property that doesn't correspond a real move).
+ */
+-inline void
++void
+ board_add_dummy_move_entry (Board *board)
+ {
+ assert (board);
+@@ -409,7 +409,7 @@ board_add_dummy_move_entry (Board *board
+ * changes. If not moves or changes are in the stack yet, return
+ * zero.
+ */
+-inline int
++int
+ board_undo (Board *board, int num_undos)
+ {
+ int k;
+@@ -467,7 +467,7 @@ board_get_move_number (const Board *boar
+ }
+
+
+-inline void
++void
+ board_undo_changes (Board *board, int num_changes)
+ {
+ int k;
+@@ -553,7 +553,7 @@ determine_position_delta (int delta_x, i
+
+
+ /* Dump the contents of given board's grid to stderr. */
+-inline void
++void
+ board_dump (const Board *board)
+ {
+ assert (board);
+@@ -562,7 +562,7 @@ board_dump (const Board *board)
+ }
+
+
+-inline void
++void
+ board_validate (const Board *board)
+ {
+ assert (board);
+@@ -1059,7 +1059,7 @@ game_parse_move (Game game, int board_wi
+ * If the default setup is not empty, nonzero is returned and zero
+ * otherwise.
+ */
+-inline int
++int
+ game_get_default_setup (Game game, int width, int height,
+ BoardPositionList **black_stones,
+ BoardPositionList **white_stones)
diff --git a/games/quarry/patches/patch-src_board_board.h b/games/quarry/patches/patch-src_board_board.h
new file mode 100644
index 00000000000..92eb9f3418b
--- /dev/null
+++ b/games/quarry/patches/patch-src_board_board.h
@@ -0,0 +1,44 @@
+$NetBSD: patch-src_board_board.h,v 1.1 2012/11/16 00:50:39 joerg Exp $
+
+--- src/board/board.h.orig 2012-11-15 15:13:35.000000000 +0000
++++ src/board/board.h
+@@ -208,24 +208,24 @@ int board_adjust_color_to_play (const B
+ int board_is_game_over (const Board *board, BoardRuleSet rule_set,
+ int color_to_play);
+
+-inline int board_is_legal_move (const Board *board, BoardRuleSet rule_set,
++int board_is_legal_move (const Board *board, BoardRuleSet rule_set,
+ int color, ...);
+
+-inline void board_play_move (Board *board, int color, ...);
++void board_play_move (Board *board, int color, ...);
+ void board_apply_changes
+ (Board *board,
+ const BoardPositionList *const
+ change_lists[NUM_ON_GRID_VALUES]);
+-inline void board_add_dummy_move_entry (Board *board);
++void board_add_dummy_move_entry (Board *board);
+
+-inline int board_undo (Board *board, int num_moves);
++int board_undo (Board *board, int num_moves);
+
+ int board_get_move_number (const Board *board,
+ int num_moves_backward);
+
+
+-inline void board_dump (const Board *board);
+-inline void board_validate (const Board *board);
++void board_dump (const Board *board);
++void board_validate (const Board *board);
+
+
+ BoardPositionList * board_position_list_new (const int *positions,
+@@ -299,7 +299,7 @@ int game_parse_move (Game game, int boa
+ BoardAbstractMoveData *move_data);
+
+
+-inline int game_get_default_setup (Game game, int width, int height,
++int game_get_default_setup (Game game, int width, int height,
+ BoardPositionList **black_stones,
+ BoardPositionList **white_stones);
+
diff --git a/games/quarry/patches/patch-src_gui-gtk_gtk-control-center.c b/games/quarry/patches/patch-src_gui-gtk_gtk-control-center.c
new file mode 100644
index 00000000000..5c8db5c3100
--- /dev/null
+++ b/games/quarry/patches/patch-src_gui-gtk_gtk-control-center.c
@@ -0,0 +1,30 @@
+$NetBSD: patch-src_gui-gtk_gtk-control-center.c,v 1.1 2012/11/16 00:50:39 joerg Exp $
+
+--- src/gui-gtk/gtk-control-center.c.orig 2012-11-15 15:15:48.000000000 +0000
++++ src/gui-gtk/gtk-control-center.c
+@@ -159,7 +159,7 @@ gtk_control_center_present (void)
+
+
+
+-inline void
++void
+ gtk_control_center_window_created (GtkWindow *window)
+ {
+ windows = g_slist_prepend (windows, window);
+@@ -188,14 +188,14 @@ gtk_control_center_window_destroyed (con
+ }
+
+
+-inline void
++void
+ gtk_control_center_new_reason_to_live (void)
+ {
+ num_other_reasons_to_live++;
+ }
+
+
+-inline void
++void
+ gtk_control_center_lost_reason_to_live (void)
+ {
+ if (--num_other_reasons_to_live == 0 && windows == NULL)
diff --git a/games/quarry/patches/patch-src_gui-gtk_gtk-control-center.h b/games/quarry/patches/patch-src_gui-gtk_gtk-control-center.h
new file mode 100644
index 00000000000..4cb2c61f0a4
--- /dev/null
+++ b/games/quarry/patches/patch-src_gui-gtk_gtk-control-center.h
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_gui-gtk_gtk-control-center.h,v 1.1 2012/11/16 00:50:39 joerg Exp $
+
+--- src/gui-gtk/gtk-control-center.h.orig 2012-11-15 15:15:33.000000000 +0000
++++ src/gui-gtk/gtk-control-center.h
+@@ -31,11 +31,11 @@
+
+ void gtk_control_center_present (void);
+
+-inline void gtk_control_center_window_created (GtkWindow *window);
++void gtk_control_center_window_created (GtkWindow *window);
+ gint gtk_control_center_window_destroyed (const GtkWindow *window);
+
+-inline void gtk_control_center_new_reason_to_live (void);
+-inline void gtk_control_center_lost_reason_to_live (void);
++void gtk_control_center_new_reason_to_live (void);
++void gtk_control_center_lost_reason_to_live (void);
+
+ void gtk_control_center_quit (void);
+
diff --git a/games/quarry/patches/patch-src_gui-gtk_quarry-text-buffer.c b/games/quarry/patches/patch-src_gui-gtk_quarry-text-buffer.c
new file mode 100644
index 00000000000..efae30c3ba7
--- /dev/null
+++ b/games/quarry/patches/patch-src_gui-gtk_quarry-text-buffer.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_gui-gtk_quarry-text-buffer.c,v 1.1 2012/11/16 00:50:39 joerg Exp $
+
+--- src/gui-gtk/quarry-text-buffer.c.orig 2012-11-15 15:16:11.000000000 +0000
++++ src/gui-gtk/quarry-text-buffer.c
+@@ -983,7 +983,7 @@ quarry_text_buffer_undo_entry_delete (Qu
+ }
+
+
+-inline gboolean
++gboolean
+ quarry_text_buffer_undo_entry_is_empty
+ (const QuarryTextBufferUndoEntry *undo_entry)
+ {
diff --git a/games/quarry/patches/patch-src_gui-gtk_quarry-text-buffer.h b/games/quarry/patches/patch-src_gui-gtk_quarry-text-buffer.h
new file mode 100644
index 00000000000..621a52d0892
--- /dev/null
+++ b/games/quarry/patches/patch-src_gui-gtk_quarry-text-buffer.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_gui-gtk_quarry-text-buffer.h,v 1.1 2012/11/16 00:50:39 joerg Exp $
+
+--- src/gui-gtk/quarry-text-buffer.h.orig 2012-11-15 15:16:07.000000000 +0000
++++ src/gui-gtk/quarry-text-buffer.h
+@@ -117,7 +117,7 @@ QuarryTextBufferUndoEntry *
+ void quarry_text_buffer_undo_entry_delete
+ (QuarryTextBufferUndoEntry *undo_entry);
+
+-inline gboolean quarry_text_buffer_undo_entry_is_empty
++gboolean quarry_text_buffer_undo_entry_is_empty
+ (const QuarryTextBufferUndoEntry *undo_entry);
+
+
diff --git a/games/quarry/patches/patch-src_gui-utils_time-control.c b/games/quarry/patches/patch-src_gui-utils_time-control.c
new file mode 100644
index 00000000000..36f2ce6243b
--- /dev/null
+++ b/games/quarry/patches/patch-src_gui-utils_time-control.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_gui-utils_time-control.c,v 1.1 2012/11/16 00:50:39 joerg Exp $
+
+--- src/gui-utils/time-control.c.orig 2012-11-15 15:19:40.000000000 +0000
++++ src/gui-utils/time-control.c
+@@ -95,7 +95,7 @@ time_control_new_from_sgf_node (const Sg
+ /* Note that this function only duplicates the settings, not the
+ * state of its argument.
+ */
+-inline TimeControl *
++TimeControl *
+ time_control_duplicate (const TimeControl *time_control)
+ {
+ return time_control_new (time_control->main_time,
diff --git a/games/quarry/patches/patch-src_gui-utils_time-control.h b/games/quarry/patches/patch-src_gui-utils_time-control.h
new file mode 100644
index 00000000000..4fc7c92dcba
--- /dev/null
+++ b/games/quarry/patches/patch-src_gui-utils_time-control.h
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_gui-utils_time-control.h,v 1.1 2012/11/16 00:50:39 joerg Exp $
+
+--- src/gui-utils/time-control.h.orig 2012-11-15 15:19:38.000000000 +0000
++++ src/gui-utils/time-control.h
+@@ -55,8 +55,7 @@ struct _TimeControl {
+ TimeControl * time_control_new (int main_time,
+ int overtime_length, int moves_per_overtime);
+ TimeControl * time_control_new_from_sgf_node (const SgfNode *sgf_node);
+-inline TimeControl *
+- time_control_duplicate (const TimeControl *time_control);
++TimeControl * time_control_duplicate (const TimeControl *time_control);
+ void time_control_init (TimeControl *time_control,
+ int main_time,
+ int overtime_length,
diff --git a/games/quarry/patches/patch-src_sgf_sgf-privates.h b/games/quarry/patches/patch-src_sgf_sgf-privates.h
new file mode 100644
index 00000000000..8b15d54a056
--- /dev/null
+++ b/games/quarry/patches/patch-src_sgf_sgf-privates.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_sgf_sgf-privates.h,v 1.1 2012/11/16 00:50:39 joerg Exp $
+
+--- src/sgf/sgf-privates.h.orig 2012-11-15 15:23:14.000000000 +0000
++++ src/sgf/sgf-privates.h
+@@ -79,7 +79,7 @@ void sgf_property_free_value (SgfValueT
+ SgfValue *value);
+
+ /* Defined in `sgf-utils.c', but also used from `sgf-undo.c'. */
+-inline void sgf_utils_do_switch_to_given_node (SgfGameTree *tree,
++void sgf_utils_do_switch_to_given_node (SgfGameTree *tree,
+ SgfNode *node);
+ void sgf_utils_descend_nodes (SgfGameTree *tree, int num_nodes);
+ void sgf_utils_ascend_nodes (SgfGameTree *tree, int num_nodes);
diff --git a/games/quarry/patches/patch-src_sgf_sgf-tree.c b/games/quarry/patches/patch-src_sgf_sgf-tree.c
new file mode 100644
index 00000000000..e04f874cd15
--- /dev/null
+++ b/games/quarry/patches/patch-src_sgf_sgf-tree.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_sgf_sgf-tree.c,v 1.1 2012/11/16 00:50:40 joerg Exp $
+
+--- src/sgf/sgf-tree.c.orig 2012-11-15 15:21:23.000000000 +0000
++++ src/sgf/sgf-tree.c
+@@ -1271,7 +1271,7 @@ sgf_node_count_subtree_nodes (const SgfN
+ /* Dynamically allocate an SgfProperty structure and initialize its
+ * type and pointer to the next property with given values.
+ */
+-inline SgfProperty *
++SgfProperty *
+ sgf_property_new (SgfGameTree *tree, SgfType type, SgfProperty *next)
+ {
+ SgfProperty *property = memory_pool_alloc (&tree->property_pool);
+@@ -1288,7 +1288,7 @@ sgf_property_new (SgfGameTree *tree, Sgf
+ * types need to be freed. Values of other types are stored in the
+ * property structure itself.
+ */
+-inline void
++void
+ sgf_property_delete (SgfProperty *property, SgfGameTree *tree)
+ {
+ assert (property);
diff --git a/games/quarry/patches/patch-src_sgf_sgf-utils.c b/games/quarry/patches/patch-src_sgf_sgf-utils.c
new file mode 100644
index 00000000000..ee319ddfac5
--- /dev/null
+++ b/games/quarry/patches/patch-src_sgf_sgf-utils.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-src_sgf_sgf-utils.c,v 1.1 2012/11/16 00:50:40 joerg Exp $
+
+--- src/sgf/sgf-utils.c.orig 2012-11-15 15:22:55.000000000 +0000
++++ src/sgf/sgf-utils.c
+@@ -63,7 +63,7 @@ static int strings_are_equal (const void
+ const void *second_string);
+
+
+-inline void
++void
+ sgf_utils_play_node_move (const SgfNode *node, Board *board)
+ {
+ assert (node);
+@@ -1717,7 +1717,7 @@ do_enter_tree (SgfGameTree *tree, SgfNod
+ }
+
+
+-inline void
++void
+ sgf_utils_do_switch_to_given_node (SgfGameTree *tree, SgfNode *node)
+ {
+ SgfNode *path_scan;
diff --git a/games/quarry/patches/patch-src_sgf_sgf.h b/games/quarry/patches/patch-src_sgf_sgf.h
new file mode 100644
index 00000000000..c604bba9657
--- /dev/null
+++ b/games/quarry/patches/patch-src_sgf_sgf.h
@@ -0,0 +1,26 @@
+$NetBSD: patch-src_sgf_sgf.h,v 1.1 2012/11/16 00:50:40 joerg Exp $
+
+--- src/sgf/sgf.h.orig 2012-11-15 15:20:43.000000000 +0000
++++ src/sgf/sgf.h
+@@ -640,10 +640,9 @@ SgfNode * sgf_node_traverse_backward (c
+ int sgf_node_count_subtree_nodes (const SgfNode *node);
+
+
+-inline SgfProperty *
+- sgf_property_new (SgfGameTree *tree, SgfType type,
++SgfProperty * sgf_property_new (SgfGameTree *tree, SgfType type,
+ SgfProperty *next);
+-inline void sgf_property_delete (SgfProperty *property,
++void sgf_property_delete (SgfProperty *property,
+ SgfGameTree *tree);
+ void sgf_property_delete_at_link (SgfProperty **link,
+ SgfGameTree *tree);
+@@ -813,7 +812,7 @@ typedef enum {
+ } SgfPasteResult;
+
+
+-inline void sgf_utils_play_node_move (const SgfNode *node, Board *board);
++void sgf_utils_play_node_move (const SgfNode *node, Board *board);
+ void sgf_utils_format_node_move (const SgfGameTree *tree,
+ const SgfNode *node,
+ StringBuffer *buffer,
diff --git a/games/quarry/patches/patch-src_utils_string-list.c b/games/quarry/patches/patch-src_utils_string-list.c
new file mode 100644
index 00000000000..8fd15fa63ba
--- /dev/null
+++ b/games/quarry/patches/patch-src_utils_string-list.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_utils_string-list.c,v 1.1 2012/11/16 00:50:40 joerg Exp $
+
+--- src/utils/string-list.c.orig 2012-11-15 15:09:31.000000000 +0000
++++ src/utils/string-list.c
+@@ -689,7 +689,7 @@ association_list_item_dispose (Associati
+ }
+
+
+-inline char *
++char *
+ association_list_find_association (AssociationList *list, const char *key)
+ {
+ AssociationListItem *item = association_list_find (list, key);
diff --git a/games/quarry/patches/patch-src_utils_utils.h b/games/quarry/patches/patch-src_utils_utils.h
new file mode 100644
index 00000000000..570de31c38a
--- /dev/null
+++ b/games/quarry/patches/patch-src_utils_utils.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_utils_utils.h,v 1.1 2012/11/16 00:50:40 joerg Exp $
+
+--- src/utils/utils.h.orig 2012-11-15 15:09:27.000000000 +0000
++++ src/utils/utils.h
+@@ -448,7 +448,7 @@ void association_list_item_dispose (Ass
+ (notch)))
+
+
+-inline char * association_list_find_association (AssociationList *list,
++char * association_list_find_association (AssociationList *list,
+ const char *key);
+
+