annotate Modules/ccpython.cc @ 17581:c1937faabb23 2.1

Added support for optional explanation parameter to the \versionadded macro. Refactored do_cmd_versionadded() and do_cmd_versionchanged() to do most of the work in a helper function, with the do_cmd_*() wrappers just supplying a portion of the replacement text.
author Fred Drake <fdrake@acm.org>
date Wed, 18 Apr 2001 17:29:14 +0000
parents 57aa277d7a00
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11585
57aa277d7a00 Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff changeset
1 /* Minimal main program -- everything is loaded from the library */
57aa277d7a00 Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff changeset
2
57aa277d7a00 Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff changeset
3 #include "Python.h"
57aa277d7a00 Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff changeset
4
57aa277d7a00 Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff changeset
5 extern "C"
57aa277d7a00 Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff changeset
6 DL_EXPORT(int) Py_Main( int argc, char *argv[] );
57aa277d7a00 Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff changeset
7
57aa277d7a00 Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff changeset
8 int main( int argc, char *argv[] )
57aa277d7a00 Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff changeset
9 {
57aa277d7a00 Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff changeset
10 return Py_Main(argc, argv);
57aa277d7a00 Patch and new file by Geoff Furnish for C++ compilation.
Guido van Rossum <guido@python.org>
parents:
diff changeset
11 }