Author: Richard Plangger <[email protected]>
Branch: new-jit-log
Changeset: r82585:e3c8440d6583
Date: 2016-02-27 09:46 +0100
http://bitbucket.org/pypy/pypy/changeset/e3c8440d6583/
Log: remove some errors in the c code of the jitlog file
diff --git a/rpython/rlib/rvmprof/src/jitlog_main.h
b/rpython/rlib/rvmprof/src/jitlog_main.h
--- a/rpython/rlib/rvmprof/src/jitlog_main.h
+++ b/rpython/rlib/rvmprof/src/jitlog_main.h
@@ -1,4 +1,8 @@
#include <string.h>
+#include <stdlib.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
static int jitlog_fd = -1;
static char * jitlog_prefix = NULL;
@@ -30,8 +34,8 @@
} else {
/* JITLOG=prefix:filename --- conditional logging */
int n = colon - filename;
- debug_prefix = malloc(n + 1);
- memcpy(debug_prefix, filename, n);
+ jitlog_prefix = malloc(n + 1);
+ memcpy(jitlog_prefix, filename, n);
debug_prefix[n] = '\0';
filename = colon + 1;
}
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit