annotate Modules/ccpython.cc @ 16798:258dcafe2d0b legacy-trunk

Gustavo Niemeyer <niemeyer@conectiva.com>: Fixed recno support (keys are integers rather than strings). Work around DB bug that cause stdin to be closed by rnopen() when the DB file needed to exist but did not (no longer segfaults). This closes SF tracker patch #403445. Also wrapped some long lines and added whitespace around operators -- FLD.
author Fred Drake <fdrake@acm.org>
date Tue, 27 Feb 2001 18:56:46 +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 }