Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/Lexer.h
diff options
context:
space:
mode:
authorMartin Kretzschmar <mkretzschmar@src.gnome.org>2002-09-18 22:20:42 (GMT)
committer Martin Kretzschmar <mkretzschmar@src.gnome.org>2002-09-18 22:20:42 (GMT)
commit2a393c134fe3fe8eb85bf818cb7ad6ae4396322a (patch)
treeeba8b0dcaba42d799ed8313faee15fb74a5a0cd2 /pdf/xpdf/Lexer.h
parent7aac8dc8533347e21311b15186e0af82f1b22fd6 (diff)
Synched with Xpdf 1.01
Diffstat (limited to 'pdf/xpdf/Lexer.h')
-rw-r--r--pdf/xpdf/Lexer.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/pdf/xpdf/Lexer.h b/pdf/xpdf/Lexer.h
index 70144b8..8a01ab2 100644
--- a/pdf/xpdf/Lexer.h
+++ b/pdf/xpdf/Lexer.h
@@ -2,7 +2,7 @@
//
// Lexer.h
//
-// Copyright 1996 Derek B. Noonburg
+// Copyright 1996-2002 Glyph & Cog, LLC
//
//========================================================================
@@ -16,6 +16,8 @@
#include "Object.h"
#include "Stream.h"
+class XRef;
+
#define tokBufSize 128 // size of token buffer
//------------------------------------------------------------------------
@@ -27,11 +29,11 @@ public:
// Construct a lexer for a single stream. Deletes the stream when
// lexer is deleted.
- Lexer(Stream *str);
+ Lexer(XRef *xref, Stream *str);
// Construct a lexer for a stream or array of streams (assumes obj
// is either a stream or array of streams).
- Lexer(Object *obj);
+ Lexer(XRef *xref, Object *obj);
// Destructor.
~Lexer();
@@ -49,13 +51,14 @@ public:
Stream *getStream()
{ return curStr.isNone() ? (Stream *)NULL : curStr.getStream(); }
- // Get current position in file.
+ // Get current position in file. This is only used for error
+ // messages, so it returns an int instead of a Guint.
int getPos()
- { return curStr.isNone() ? -1 : curStr.streamGetPos(); }
+ { return curStr.isNone() ? -1 : (int)curStr.streamGetPos(); }
// Set position in file.
- void setPos(int pos)
- { if (!curStr.isNone()) curStr.streamSetPos(pos); }
+ void setPos(Guint pos, int dir = 0)
+ { if (!curStr.isNone()) curStr.streamSetPos(pos, dir); }
private: