summaryrefslogtreecommitdiffstats
path: root/Doc/ext/embedding.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-09-06 16:17:24 (GMT)
committerFred Drake <fdrake@acm.org>2001-09-06 16:17:24 (GMT)
commitadaca02f9e549eb6edde6229b662eef2ab5849b5 (patch)
treee488aaa018b58f9a7ad62705d3ba382211c793eb /Doc/ext/embedding.tex
parentfe3f6969f54cfd3df24f54572a809e0deb47064f (diff)
downloadcpython-adaca02f9e549eb6edde6229b662eef2ab5849b5.zip
cpython-adaca02f9e549eb6edde6229b662eef2ab5849b5.tar.gz
cpython-adaca02f9e549eb6edde6229b662eef2ab5849b5.tar.bz2
Use the standard argument convention for main(), and conform to the
Python/C style guide.
Diffstat (limited to 'Doc/ext/embedding.tex')
-rw-r--r--Doc/ext/embedding.tex3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/ext/embedding.tex b/Doc/ext/embedding.tex
index 3afdd48..90663dc 100644
--- a/Doc/ext/embedding.tex
+++ b/Doc/ext/embedding.tex
@@ -58,7 +58,8 @@ on a file.
\begin{verbatim}
#include <Python.h>
-int main()
+int
+main(int argc, char *argv[])
{
Py_Initialize();
PyRun_SimpleString("from time import time,ctime\n"