Commits

Shlomi Fish  committed 0d0c816

Support for the new Inline::C.

Don't know why it broke (again) but it needed CCFLAGS .= " -std=gnu99".

  • Participants
  • Parent commits 6fc899b

Comments (0)

Files changed (4)

File fc-solve/source/delta_states.c

 }
 
 static GCC_INLINE void fc_solve_delta_stater_decode_into_state_proto(
-        fc_solve_delta_stater_t * delta_stater,
         enum fcs_dbm_variant_type_t local_variant,
+        fc_solve_delta_stater_t * delta_stater,
         const fcs_uchar_t * const enc_state,
         fcs_state_keyval_pair_t * ret
         IND_BUF_T_PARAM(indirect_stacks_buffer)

File fc-solve/source/t/t/dbm-calc-derived-states.t

 
 package DerivedState;
 
+use Config;
+
 use Inline (
     C => <<"EOF",
 #include "dbm_calc_derived_iface.h"
     CLEAN_AFTER_BUILD => 0,
     INC => "-I" . $ENV{FCS_PATH} . " -I" . $ENV{FCS_SRC_PATH},
     LIBS => "-L" . $ENV{FCS_PATH} . " -lfcs_dbm_calc_derived_test",
+    CCFLAGS => "$Config{ccflags} -std=gnu99",
     # LDDLFLAGS => "$Config{lddlflags} -L$FindBin::Bin -lfcs_delta_states_test",
     # CCFLAGS => "-L$FindBin::Bin -lfcs_delta_states_test",
     # MYEXTLIB => "$FindBin::Bin/libfcs_delta_states_test.so",

File fc-solve/source/t/t/fcc-brfs-scan.t

 
 package FccStartPoint;
 
+use Config;
+
 use Inline (
     C => <<"EOF",
 #include "fcc_brfs_test.h"
     # LDDLFLAGS => "$Config{lddlflags} -L$FindBin::Bin -lfcs_delta_states_test",
     # CCFLAGS => "-L$FindBin::Bin -lfcs_delta_states_test",
     # MYEXTLIB => "$FindBin::Bin/libfcs_delta_states_test.so",
+    CCFLAGS => "$Config{ccflags} -std=gnu99",
 );
 
 package FccIsNew;
 
+use Config;
+
 use Inline (
     C => <<"EOF",
 #include "fcc_brfs_test.h"
     # LDDLFLAGS => "$Config{lddlflags} -L$FindBin::Bin -lfcs_delta_states_test",
     # CCFLAGS => "-L$FindBin::Bin -lfcs_delta_states_test",
     # MYEXTLIB => "$FindBin::Bin/libfcs_delta_states_test.so",
+    CCFLAGS => "$Config{ccflags} -std=gnu99",
 );
 
 sub is_fcc_new_named_args

File fc-solve/source/t/t/lib/Games/Solitaire/FC_Solve/QueueInC.pm

 use strict;
 use warnings;
 
+use Config;
+
 use Inline (
     C => <<'EOF',
 #define FCS_DBM_USE_OFFLOADING_QUEUE
     CLEAN_AFTER_BUILD => 0,
     INC => "-I" . $ENV{FCS_PATH},
     LIBS => "-L" . $ENV{FCS_PATH},
+    CCFLAGS => "$Config{ccflags} -std=gnu99"
 );
 
 sub new