[Python-checkins] CVS: python/dist/src/Doc/api api.tex,1.56.2.17,1.56.2.18
Fred L. Drake
fdrake@weyr.cnri.reston.va.us
Tue, 14 Mar 2000 17:19:58 -0500 (EST)
Update of /projects/cvsroot/python/dist/src/Doc/api
In directory weyr:/home/fdrake/projects/python/Doc-152p2/api
Modified Files:
Tag: release152p1-patches
api.tex
Log Message:
Tons and tons of mostly really small changes based on a really close
reading of the document. More to come.
Index: api.tex
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/api/api.tex,v
retrieving revision 1.56.2.17
retrieving revision 1.56.2.18
diff -C2 -r1.56.2.17 -r1.56.2.18
*** api.tex 2000/03/06 17:04:08 1.56.2.17
--- api.tex 2000/03/14 22:19:54 1.56.2.18
***************
*** 21,25 ****
\noindent
! This manual documents the API used by C (or \Cpp{}) programmers who
want to write extension modules or embed Python. It is a companion to
\emph{Extending and Embedding the Python Interpreter}, which describes
--- 21,25 ----
\noindent
! This manual documents the API used by C and \Cpp{} programmers who
want to write extension modules or embed Python. It is a companion to
[...1154 lines suppressed...]
res = PyString_FromString(buf);
PyMem_DEL(buf); /* allocated with PyMem_NEW */
return res;
- }
\end{verbatim}
--- 3394,3406 ----
\begin{verbatim}
PyObject *res;
char *buf = PyMem_NEW(char, BUFSIZ); /* for I/O */
+
if (buf == NULL)
return PyErr_NoMemory();
! /* ...Do some I/O operation involving buf... */
res = PyString_FromString(buf);
PyMem_DEL(buf); /* allocated with PyMem_NEW */
return res;
\end{verbatim}