Author: Armin Rigo <[email protected]>
Branch:
Changeset: r58998:dcbdd8287de3
Date: 2012-11-19 17:27 +0100
http://bitbucket.org/pypy/pypy/changeset/dcbdd8287de3/
Log: These must be declared "static". We don't want the names "buffer"
and "buflen" globally visible throughout our C source.
diff --git a/pypy/translator/c/src/ll_strtod.h
b/pypy/translator/c/src/ll_strtod.h
--- a/pypy/translator/c/src/ll_strtod.h
+++ b/pypy/translator/c/src/ll_strtod.h
@@ -79,8 +79,8 @@
return x;
}
-char buffer[120]; /* this should be enough, from PyString_Format code */
-int buflen = 120;
+static char buffer[120]; /* this should be enough, from PyString_Format code */
+static const int buflen = 120;
#ifdef _MSC_VER
#define snprintf _snprintf
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit