diff options
author | Fred Drake <fdrake@acm.org> | 2001-09-06 16:17:24 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-09-06 16:17:24 (GMT) |
commit | adaca02f9e549eb6edde6229b662eef2ab5849b5 (patch) | |
tree | e488aaa018b58f9a7ad62705d3ba382211c793eb /Doc | |
parent | fe3f6969f54cfd3df24f54572a809e0deb47064f (diff) | |
download | cpython-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')
-rw-r--r-- | Doc/ext/embedding.tex | 3 |
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" |