Commit 9453a26b authored by Adriaan de Groot's avatar Adriaan de Groot 💬
Browse files

Make names unique, for --enable-final

svn path=/trunk/kdegraphics/kpdf/; revision=347727
parent 1c7d989b
......@@ -36,7 +36,7 @@ struct CMapVectorEntry {
//------------------------------------------------------------------------
static int getCharFromFile(void *data) {
static int CMap_getCharFromFile(void *data) {
return fgetc((FILE *)data);
}
......@@ -68,7 +68,7 @@ CMap *CMap::parse(CMapCache *cache, GString *collectionA,
cmap = new CMap(collectionA->copy(), cMapNameA->copy());
pst = new PSTokenizer(&getCharFromFile, f);
pst = new PSTokenizer(&CMap_getCharFromFile, f);
pst->getToken(tok1, sizeof(tok1), &n1);
while (pst->getToken(tok2, sizeof(tok2), &n2)) {
if (!strcmp(tok2, "usecmap")) {
......
......@@ -48,7 +48,7 @@ static int getCharFromString(void *data) {
return c;
}
static int getCharFromFile(void *data) {
static int CharCodeToUnicode_getCharFromFile(void *data) {
return fgetc((FILE *)data);
}
......@@ -222,7 +222,7 @@ void CharCodeToUnicode::parseCMap1(int (*getCharFunc)(void *), void *data,
if (tok1[0] == '/') {
name = new GString(tok1 + 1);
if ((f = globalParams->findToUnicodeFile(name))) {
parseCMap1(&getCharFromFile, f, nBits);
parseCMap1(&CharCodeToUnicode_getCharFromFile, f, nBits);
fclose(f);
} else {
error(-1, "Couldn't find ToUnicode CMap file for '%s'",
......
......@@ -23,7 +23,7 @@
// A '1' in this array means the character is white space. A '1' or
// '2' means the character ends a name or command.
static char specialChars[256] = {
static char Lexer_specialChars[256] = {
1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, // 0x
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1, 0, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, // 2x
......@@ -129,7 +129,7 @@ Object *Lexer::getObj(Object *obj) {
comment = gFalse;
} else if (c == '%') {
comment = gTrue;
} else if (specialChars[c] != 1) {
} else if (Lexer_specialChars[c] != 1) {
break;
}
}
......@@ -300,7 +300,7 @@ Object *Lexer::getObj(Object *obj) {
case '/':
p = tokBuf;
n = 0;
while ((c = lookChar()) != EOF && !specialChars[c]) {
while ((c = lookChar()) != EOF && !Lexer_specialChars[c]) {
getChar();
if (c == '#') {
c2 = lookChar();
......@@ -369,7 +369,7 @@ Object *Lexer::getObj(Object *obj) {
} else if (c == EOF) {
error(getPos(), "Unterminated hex string");
break;
} else if (specialChars[c] != 1) {
} else if (Lexer_specialChars[c] != 1) {
c2 = c2 << 4;
if (c >= '0' && c <= '9')
c2 += c - '0';
......@@ -432,7 +432,7 @@ Object *Lexer::getObj(Object *obj) {
p = tokBuf;
*p++ = c;
n = 1;
while ((c = lookChar()) != EOF && !specialChars[c]) {
while ((c = lookChar()) != EOF && !Lexer_specialChars[c]) {
getChar();
if (++n == tokBufSize) {
error(getPos(), "Command token too long");
......
......@@ -20,7 +20,7 @@
// A '1' in this array means the character is white space. A '1' or
// '2' means the character ends a name or command.
static char specialChars[256] = {
static char PSTokenizer_specialChars[256] = {
1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, // 0x
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1, 0, 0, 0, 0, 2, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, // 2x
......@@ -69,7 +69,7 @@ GBool PSTokenizer::getToken(char *buf, int size, int *length) {
}
} else if (c == '%') {
comment = gTrue;
} else if (specialChars[c] != 1) {
} else if (PSTokenizer_specialChars[c] != 1) {
break;
}
}
......@@ -103,7 +103,7 @@ GBool PSTokenizer::getToken(char *buf, int size, int *length) {
}
}
} else if (c != '[' && c != ']') {
while ((c = lookChar()) != EOF && !specialChars[c]) {
while ((c = lookChar()) != EOF && !PSTokenizer_specialChars[c]) {
getChar();
if (i < size - 1) {
buf[i++] = c;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment