Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 635596
Collapse All | Expand All

(-)djview4-4.9/src/qdjview.cpp (+8 lines)
Lines 4643-4655 Link Here
4643
static QString
4643
static QString
4644
miniexp_to_string(miniexp_t expr, int width=40, bool octal=false)
4644
miniexp_to_string(miniexp_t expr, int width=40, bool octal=false)
4645
{
4645
{
4646
#if DDJVUAPI_VERSION > 21
4647
  static int one = miniexp_io_print7bits;
4648
#else
4646
  static int one = 1;
4649
  static int one = 1;
4650
#endif
4647
  QByteArray buffer;
4651
  QByteArray buffer;
4648
  miniexp_io_t io;
4652
  miniexp_io_t io;
4649
  miniexp_io_init(&io);
4653
  miniexp_io_init(&io);
4650
  io.fputs = qstring_puts;
4654
  io.fputs = qstring_puts;
4651
  io.data[1] = (void*)&buffer;
4655
  io.data[1] = (void*)&buffer;
4656
#if DDJVUAPI_VERSION >21
4657
  io.p_flags = (octal ? &one : 0);
4658
#else
4652
  io.p_print7bits = (octal ? &one : 0);
4659
  io.p_print7bits = (octal ? &one : 0);
4660
#endif
4653
  miniexp_pprint_r(&io, expr, width);
4661
  miniexp_pprint_r(&io, expr, width);
4654
  return QString::fromUtf8(buffer.data());
4662
  return QString::fromUtf8(buffer.data());
4655
}
4663
}

Return to bug 635596