//
//========================================================================
-#ifdef __GNUC__
+#include <aconf.h>
+
+#ifdef USE_GCC_PRAGMAS
#pragma implementation
#endif
-#include <aconf.h>
-#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
resizeCode(*codePtr);
if (isReal) {
code[*codePtr].type = psReal;
- {
- char *theLocale = setlocale(LC_NUMERIC, "C");
- code[*codePtr].real = atof(tok->getCString());
- setlocale(LC_NUMERIC, theLocale);
- }
+ code[*codePtr].real = atof(tok->getCString());
} else {
code[*codePtr].type = psInt;
code[*codePtr].intg = atoi(tok->getCString());
if (!parseCode(str, codePtr)) {
return gFalse;
}
+ delete tok;
+ if (!(tok = getToken(str))) {
+ error(-1, "Unexpected end of PostScript function stream");
+ return gFalse;
+ }
} else {
elsePtr = -1;
}
- delete tok;
- if (!(tok = getToken(str))) {
- error(-1, "Unexpected end of PostScript function stream");
- return gFalse;
- }
if (!tok->cmp("if")) {
if (elsePtr >= 0) {
error(-1, "Got 'if' operator with two blocks in PostScript function");