[Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.192,2.193

Fred L. Drake fdrake@users.sourceforge.net
2001年7月17日 13:37:38 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv24768/Modules
Modified Files:
	posixmodule.c 
Log Message:
On Windows, tempnam() is spelled with a leading underscore.
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.192
retrieving revision 2.193
diff -C2 -r2.192 -r2.193
*** posixmodule.c	2001年07月11日 22:35:31	2.192
--- posixmodule.c	2001年07月17日 20:37:36	2.193
***************
*** 4212,4216 ****
--- 4212,4220 ----
 if (!PyArg_ParseTuple(args, "|zz:tempnam", &dir, &pfx))
 return NULL;
+ #ifdef MS_WIN32
+ name = _tempnam(dir, pfx);
+ #else
 name = tempnam(dir, pfx);
+ #endif
 if (name == NULL)
 return PyErr_NoMemory();

AltStyle によって変換されたページ (->オリジナル) /