~noskcaj/ubuntu/trusty/libextractor/merge

« back to all changes in this revision

Viewing changes to src/plugins/pdf/Stream.cc

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-11-17 20:27:32 UTC
  • mfrom: (1.10.4 upstream) (5.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091117202732-ipm2h3gks5bdw2vx
Tags: 0.5.23+dfsg-3
* Building against libltdl7.
* Updating to standards version 3.8.3.
* Adding maintainer homepage field to control.
* Marking maintainer homepage field to be also included in binary
  packages and changelog.
* Adding README.source.
* Simplifying autotools handling in rules.
* Updating README.source.
* Moving maintainer homepage field from control to copyright.
* Dropping la files.
* Simplyfing debhelper install files.
* Bumping versioned build-depends on debhelper.
* Adding depends to dpkg install info.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
  return buf;
86
86
}
87
87
 
88
 
GString *Stream::getPSFilter(int psLevel, char *indent) {
 
88
GString *Stream::getPSFilter(int psLevel, const char *indent) {
89
89
  return new GString();
90
90
}
91
91
 
930
930
  return buf;
931
931
}
932
932
 
933
 
GString *ASCIIHexStream::getPSFilter(int psLevel, char *indent) {
 
933
GString *ASCIIHexStream::getPSFilter(int psLevel, const char *indent) {
934
934
  GString *s;
935
935
 
936
936
  if (psLevel < 2) {
1011
1011
  return b[index];
1012
1012
}
1013
1013
 
1014
 
GString *ASCII85Stream::getPSFilter(int psLevel, char *indent) {
 
1014
GString *ASCII85Stream::getPSFilter(int psLevel, const char *indent) {
1015
1015
  GString *s;
1016
1016
 
1017
1017
  if (psLevel < 2) {
1197
1197
  return code;
1198
1198
}
1199
1199
 
1200
 
GString *LZWStream::getPSFilter(int psLevel, char *indent) {
 
1200
GString *LZWStream::getPSFilter(int psLevel, const char *indent) {
1201
1201
  GString *s;
1202
1202
 
1203
1203
  if (psLevel < 2 || pred) {
1234
1234
  eof = gFalse;
1235
1235
}
1236
1236
 
1237
 
GString *RunLengthStream::getPSFilter(int psLevel, char *indent) {
 
1237
GString *RunLengthStream::getPSFilter(int psLevel, const char *indent) {
1238
1238
  GString *s;
1239
1239
 
1240
1240
  if (psLevel < 2) {
2212
2212
  code = 0; // make gcc happy
2213
2213
  if (endOfBlock) {
2214
2214
    code = lookBits(7);
 
2215
    if (code < 0)
 
2216
      return EOF;
2215
2217
    p = &twoDimTab1[code];
2216
2218
    if (p->bits > 0) {
2217
2219
      eatBits(p->bits);
2220
2222
  } else {
2221
2223
    for (n = 1; n <= 7; ++n) {
2222
2224
      code = lookBits(n);
 
2225
      if (code < 0)
 
2226
        return EOF;
2223
2227
      if (n < 7) {
2224
2228
        code <<= 7 - n;
2225
2229
      }
2388
2392
 
2389
2393
#endif
2390
2394
 
2391
 
GString *CCITTFaxStream::getPSFilter(int psLevel, char *indent) {
 
2395
GString *CCITTFaxStream::getPSFilter(int psLevel, const char *indent) {
2392
2396
  GString *s;
2393
2397
  char s1[50];
2394
2398
 
3829
3833
  return (c1 << 8) + c2;
3830
3834
}
3831
3835
 
3832
 
GString *DCTStream::getPSFilter(int psLevel, char *indent) {
 
3836
GString *DCTStream::getPSFilter(int psLevel, const char *indent) {
3833
3837
  GString *s;
3834
3838
 
3835
3839
  if (psLevel < 2) {
4026
4030
  return c;
4027
4031
}
4028
4032
 
4029
 
GString *FlateStream::getPSFilter(int psLevel, char *indent) {
 
4033
GString *FlateStream::getPSFilter(int psLevel, const char *indent) {
4030
4034
  GString *s;
4031
4035
 
4032
4036
  if (psLevel < 3 || pred) {
4455
4459
}
4456
4460
 
4457
4461
GBool ASCIIHexEncoder::fillBuf() {
4458
 
  static char *hex = "0123456789abcdef";
 
4462
  static const char *hex = "0123456789abcdef";
4459
4463
  int c;
4460
4464
 
4461
4465
  if (eof) {