Commits

Shlomi Fish  committed 662922b

Refactoring.

  • Participants
  • Parent commits aaac771

Comments (0)

Files changed (2)

File fc-solve/source/alloc.h

 
 static GCC_INLINE fcs_collectible_state_t * fcs_state_ia_alloc_into_var(fcs_compact_allocator_t * allocator)
 {
-    {
-        register fcs_collectible_state_t * ret_helper;
-
-        ret_helper =
-            (fcs_collectible_state_t *)
-            fcs_compact_alloc_ptr(allocator,
-                sizeof(*ret_helper)
-            );
-
-        return ret_helper;
-    }
+    return (fcs_collectible_state_t *)
+        fcs_compact_alloc_ptr(
+            allocator, sizeof(fcs_collectible_state_t)
+        );
 }
 
 static GCC_INLINE void fc_solve_compact_allocator_recycle(fcs_compact_allocator_t * allocator)

File fc-solve/source/dbm_solver.c

     int trace_num;
     int i;
     fcs_state_keyval_pair_t state;
-    unsigned char move;
     char * state_as_str;
     char move_buffer[500];
     fcs_state_locs_struct_t locs;
 
     for (i = trace_num-1 ; i >= 0 ; i--)
     {
+        unsigned char move = 0;
         fc_solve_delta_stater_decode_into_state(
             delta,
             trace[i].s,