Ticket #11987: __glpk__.cc.diff
File __glpk__.cc.diff, 985 bytes (added by treichl@…, 17 years ago) |
---|
-
octave-2.9.10/src/DLD-FUNCTIONS/__glpk__.cc
53 53 #ifndef lib_set_print_hook 54 54 #define lib_set_print_hook lib_print_hook 55 55 #endif 56 }57 56 58 57 #else 59 58 60 extern "C"61 {62 59 void _glp_lib_print_hook (int (*func)(void *info, char *buf), void *info); 63 60 void _glp_lib_fault_hook (int (*func)(void *info, char *buf), void *info); 64 }65 61 66 62 #endif 63 } 67 64 68 65 #define NIntP 17 69 66 #define NRealP 10 … … 260 257 261 258 if (save_pb) 262 259 { 263 if (lpx_write_cpxlp (lp, "outpb.lp") != 0) 260 static char tmp[] = "outpb.lp"; 261 if (lpx_write_cpxlp (lp, tmp) != 0) 264 262 { 265 263 error ("__glpk__: unable to write problem"); 266 264 longjmp (mark, -1); … … 311 309 #ifdef GLPK_PRE_4_14 312 310 insist (method != method); 313 311 #else 314 glpk_fault_hook (0, "method != method"); 312 static char tmp[] = "method != method"; 313 glpk_fault_hook (0, tmp); 315 314 #endif 316 315 } 317 316