Source

fc-solve / fc-solve / source / fc_pro_iface_pos.h

Diff from to

File fc-solve/source/fc_pro_iface_pos.h

     fcs_extended_move_t * moves;
 } fcs_moves_processed_t;
 
-extern fcs_moves_processed_t * fc_solve_moves_processed_gen(
+extern void fc_solve_moves_processed_gen(
+    fcs_moves_processed_t * const moves_gen,
     const fcs_state_keyval_pair_t * const orig,
     const int num_freecells,
     const fcs_moves_sequence_t * const moves_seq
 }
 
 extern int fc_solve_moves_processed_get_next_move(fcs_moves_processed_t * moves, fcs_extended_move_t * move);
-extern void fc_solve_moves_processed_free(fcs_moves_processed_t * moves);
+
+static GCC_INLINE void fc_solve_moves_processed_free(fcs_moves_processed_t * moves)
+{
+    free(moves->moves);
+    moves->moves = NULL;
+}
 
 #ifdef __cplusplus
 }