[Python-checkins] python/dist/src/Doc/ext extending.tex,1.21,1.22

mhammond@users.sourceforge.net mhammond@users.sourceforge.net
2002年7月18日 23:55:44 -0700


Update of /cvsroot/python/python/dist/src/Doc/ext
In directory usw-pr-cvs1:/tmp/cvs-serv15103/Doc/ext
Modified Files:
	extending.tex 
Log Message:
Land Patch [ 566100 ] Rationalize DL_IMPORT and DL_EXPORT.
Index: extending.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ext/extending.tex,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** extending.tex	22 Jun 2002 01:42:00 -0000	1.21
--- extending.tex	19 Jul 2002 06:55:41 -0000	1.22
***************
*** 213,217 ****
 
 \begin{verbatim}
! void
 initspam(void)
 {
--- 213,217 ----
 
 \begin{verbatim}
! PyMODINIT_FUNC
 initspam(void)
 {
***************
*** 241,244 ****
--- 241,245 ----
 could cause a core dump or other unintended side effects.
 
+ We discuss the use of PyMODINIT_FUNC later in this sample.
 
 \section{Back to the Example
***************
*** 340,344 ****
 
 \begin{verbatim}
! void
 initspam(void)
 {
--- 341,345 ----
 
 \begin{verbatim}
! PyMODINIT_FUNC
 initspam(void)
 {
***************
*** 347,351 ****
 \end{verbatim}
 
! Note that for \Cpp, this method must be declared \code{extern "C"}.
 
 When the Python program imports module \module{spam} for the first
--- 348,354 ----
 \end{verbatim}
 
! Note that PyMODINIT_FUNC declares the function as \code{void} return type, 
! declares any special linkage declarations required by the platform, and for 
! \Cpp declares the function as \code{extern "C"}.
 
 When the Python program imports module \module{spam} for the first
***************
*** 1264,1268 ****
 
 \begin{verbatim}
! void
 initspam(void)
 {
--- 1267,1271 ----
 
 \begin{verbatim}
! PyMODINIT_FUNC
 initspam(void)
 {
***************
*** 1353,1357 ****
 
 \begin{verbatim}
! void
 initclient(void)
 {
--- 1356,1360 ----
 
 \begin{verbatim}
! PyMODINIT_FUNC
 initclient(void)
 {

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