[tinypy] r148 committed - Issue 45 in tinypy: build libtinypy.a error for embedding tinypy

1 view
Skip to first unread message

codesite...@google.com

unread,
Nov 11, 2009, 6:02:09 AM11/11/09
to tin...@googlegroups.com
Revision: 148
Author: ybc2084
Date: Wed Nov 11 03:01:44 2009
Log: Issue 45 in tinypy: build libtinypy.a error for embedding tinypy
http://code.google.com/p/tinypy/source/detail?r=148

Modified:
/trunk/tinypy/sandbox.c

=======================================
--- /trunk/tinypy/sandbox.c Wed Jan 28 19:38:31 2009
+++ /trunk/tinypy/sandbox.c Wed Nov 11 03:01:44 2009
@@ -28,6 +28,8 @@
tp_raise(,tp_string("(tp_time_update) SandboxError: time limit
exceeded"));
}
}
+
+#ifdef TP_SANDBOX

void *tp_malloc(TP, unsigned long bytes) {
unsigned long *ptr = (unsigned long *) calloc(bytes + sizeof(unsigned
long), 1);
@@ -72,6 +74,7 @@
}
}

+#endif

tp_obj tp_sandbox_(TP) {
tp_num time = TP_NUM();

Reply all
Reply to author
Forward
0 new messages