]> granicus.if.org Git - python/commitdiff
Use the standard argument convention for main(), and conform to the
authorFred Drake <fdrake@acm.org>
Thu, 6 Sep 2001 16:17:24 +0000 (16:17 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 6 Sep 2001 16:17:24 +0000 (16:17 +0000)
Python/C style guide.

Doc/ext/embedding.tex

index 3afdd48269b1c67a70cd82d315c9a95e453dac69..90663dc346011125d35cd537017b52c1e9f406f9 100644 (file)
@@ -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"