diff Python/ceval.c @ 1179:9ae65ee09735 legacy-trunk

Various changes. * Makefile: svmodule.c.proto and svgen.py are gone, svmodule.c came in their stead. Also, pass -DUSE_DL flag to thread.c and give the user a possibility to add the -DDEBUG to just thread.c. * ceval.c: init_save_thread() can be called more than once now. * svgen.py, svmodule.c.proto, svmodule.c: Removed prototype file and replaced it by the generated file. * thread.c: Added some more checks; added call to DL library when it is also used to tell it where the shared arena is so that DL can use some other area. * threadmodule.c: Call init_save_thread from another place. Also, added new function getlocklock() which does to lock objects what getfilefile does to file objects.
author Sjoerd Mullender <sjoerd@acm.org>
date Wed, 06 Jan 1993 13:36:38 +0000
parents 6461dac9a9f2
children 950cd37fcddc
line wrap: on
line diff
--- a/Python/ceval.c	Mon Jan 04 09:16:51 1993 +0000
+++ b/Python/ceval.c	Wed Jan 06 13:36:38 1993 +0000
@@ -98,7 +98,7 @@
 init_save_thread()
 {
 	if (interpreter_lock)
-		fatal("2nd call to init_save_thread");
+		return;
 	interpreter_lock = allocate_lock();
 	acquire_lock(interpreter_lock, 1);
 }