Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r76753:4f4ec424db3b
Date: 2015-04-09 14:02 +0200
http://bitbucket.org/pypy/pypy/changeset/4f4ec424db3b/
Log: enable this to be called from somewhere else too
diff --git a/rpython/translator/c/src/debug_print.c
b/rpython/translator/c/src/debug_print.c
--- a/rpython/translator/c/src/debug_print.c
+++ b/rpython/translator/c/src/debug_print.c
@@ -26,9 +26,8 @@
static char *debug_filename = NULL;
static char *debug_filename_with_fork = NULL;
-static void pypy_debug_open(void)
+static void _pypy_debug_open(char *filename)
{
- char *filename = getenv("PYPYLOG");
if (filename && filename[0])
{
char *colon = strchr(filename, ':');
@@ -77,6 +76,11 @@
debug_ready = 1;
}
+static void pypy_debug_open(void)
+{
+ _pypy_debug_open(getenv("PYPYLOG"));
+}
+
long pypy_debug_offset(void)
{
if (!debug_ready)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit