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

     
    5353#ifndef lib_set_print_hook
    5454#define lib_set_print_hook lib_print_hook
    5555#endif
    56 }
    5756
    5857#else
    5958
    60 extern "C"
    61 {
    6259void _glp_lib_print_hook (int (*func)(void *info, char *buf), void *info);
    6360void _glp_lib_fault_hook (int (*func)(void *info, char *buf), void *info);
    64 }
    6561
    6662#endif
     63}
    6764
    6865#define NIntP 17
    6966#define NRealP 10
     
    260257
    261258  if (save_pb)
    262259    {
    263       if (lpx_write_cpxlp (lp, "outpb.lp") != 0)
     260      static char tmp[] = "outpb.lp";
     261      if (lpx_write_cpxlp (lp, tmp) != 0)
    264262        {
    265263          error ("__glpk__: unable to write problem");
    266264          longjmp (mark, -1);
     
    311309#ifdef GLPK_PRE_4_14
    312310      insist (method != method);
    313311#else
    314       glpk_fault_hook (0, "method != method");
     312      static char tmp[] = "method != method";
     313      glpk_fault_hook (0, tmp);
    315314#endif
    316315    }
    317316