git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c17af3
)
new routine: dumpEntries()
author
kramm
<kramm>
Thu, 1 Nov 2001 00:50:20 +0000
(
00:50
+0000)
committer
kramm
<kramm>
Thu, 1 Nov 2001 00:50:20 +0000
(
00:50
+0000)
pdf2swf/xpdf/Dict.cc
patch
|
blob
|
history
pdf2swf/xpdf/Dict.h
patch
|
blob
|
history
diff --git
a/pdf2swf/xpdf/Dict.cc
b/pdf2swf/xpdf/Dict.cc
index
c9f4fec
..
94ca386
100644
(file)
--- a/
pdf2swf/xpdf/Dict.cc
+++ b/
pdf2swf/xpdf/Dict.cc
@@
-86,3
+86,20
@@
Object *Dict::getVal(int i, Object *obj) {
Object *Dict::getValNF(int i, Object *obj) {
return entries[i].val.copy(obj);
}
+
+void Dict::dumpEntries()
+{
+ int t;
+ for(t=0;t<size;t++)
+ {
+ printf("key: %s\n", entries[t].key);
+ fflush(stdout);
+ {
+ printf(" value:\n");
+ entries[t].val.print();
+ }
+ fflush(stdout);
+ printf("---\n");
+ fflush(stdout);
+ }
+}
diff --git
a/pdf2swf/xpdf/Dict.h
b/pdf2swf/xpdf/Dict.h
index
cfc64d3
..
e392645
100644
(file)
--- a/
pdf2swf/xpdf/Dict.h
+++ b/
pdf2swf/xpdf/Dict.h
@@
-64,6
+64,10
@@
private:
int ref; // reference count
DictEntry *find(char *key);
+
+public:
+ void dumpEntries();
+
};
#endif