annotate Modules/config.c.in @ 79675:c0a2294de787 2.7

Issue #16199: Backport 2to3 typo fix from 3.2.
author Chris Jerdonek <chris.jerdonek@gmail.com>
date Thu, 11 Oct 2012 16:15:46 -0700
parents 6e71eca6278c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1443
diff changeset
1 /* -*- C -*- ***********************************************
13255
916fb024ce94 Change copyright notice.
Guido van Rossum <guido@python.org>
parents: 5376
diff changeset
2 Copyright (c) 2000, BeOpen.com.
916fb024ce94 Change copyright notice.
Guido van Rossum <guido@python.org>
parents: 5376
diff changeset
3 Copyright (c) 1995-2000, Corporation for National Research Initiatives.
916fb024ce94 Change copyright notice.
Guido van Rossum <guido@python.org>
parents: 5376
diff changeset
4 Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
916fb024ce94 Change copyright notice.
Guido van Rossum <guido@python.org>
parents: 5376
diff changeset
5 All rights reserved.
4503
65d2d8e67da3 New permission notice, includes CNRI.
Guido van Rossum <guido@python.org>
parents: 3599
diff changeset
6
13255
916fb024ce94 Change copyright notice.
Guido van Rossum <guido@python.org>
parents: 5376
diff changeset
7 See the file "Misc/COPYRIGHT" for information on usage and
916fb024ce94 Change copyright notice.
Guido van Rossum <guido@python.org>
parents: 5376
diff changeset
8 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
145
853b736a6a9e Added copyright notice.
Guido van Rossum <guido@python.org>
parents: 140
diff changeset
9 ******************************************************************/
853b736a6a9e Added copyright notice.
Guido van Rossum <guido@python.org>
parents: 140
diff changeset
10
2895
81b41324d26e split config.c in 1000 parts; new main; new unfinished objective-C module
Guido van Rossum <guido@python.org>
parents: 2806
diff changeset
11 /* Module configuration */
2616
a92dded4a7c4 move decl of realmain() out of #ifdef
Guido van Rossum <guido@python.org>
parents: 2530
diff changeset
12
2895
81b41324d26e split config.c in 1000 parts; new main; new unfinished objective-C module
Guido van Rossum <guido@python.org>
parents: 2806
diff changeset
13 /* !!! !!! !!! This file is edited by the makesetup script !!! !!! !!! */
2328
3edec8211a36 tack compiler name/version to version string if known
Guido van Rossum <guido@python.org>
parents: 2122
diff changeset
14
2895
81b41324d26e split config.c in 1000 parts; new main; new unfinished objective-C module
Guido van Rossum <guido@python.org>
parents: 2806
diff changeset
15 /* This file contains the table of built-in modules.
81b41324d26e split config.c in 1000 parts; new main; new unfinished objective-C module
Guido van Rossum <guido@python.org>
parents: 2806
diff changeset
16 See init_builtin() in import.c. */
1198
2937897a7d8b * Added Fixcprt.py: script to fix copyright message.
Guido van Rossum <guido@python.org>
parents: 1191
diff changeset
17
2895
81b41324d26e split config.c in 1000 parts; new main; new unfinished objective-C module
Guido van Rossum <guido@python.org>
parents: 2806
diff changeset
18 #include "Python.h"
2806
d76a714d1cea added getpalatform()
Guido van Rossum <guido@python.org>
parents: 2616
diff changeset
19
37660
f45bc241e200 whoops. missed one in an auto-generated file. another extern "C" {} for C++ compiler compatibility
Anthony Baxter <anthonybaxter@gmail.com>
parents: 36669
diff changeset
20 #ifdef __cplusplus
f45bc241e200 whoops. missed one in an auto-generated file. another extern "C" {} for C++ compiler compatibility
Anthony Baxter <anthonybaxter@gmail.com>
parents: 36669
diff changeset
21 extern "C" {
f45bc241e200 whoops. missed one in an auto-generated file. another extern "C" {} for C++ compiler compatibility
Anthony Baxter <anthonybaxter@gmail.com>
parents: 36669
diff changeset
22 #endif
f45bc241e200 whoops. missed one in an auto-generated file. another extern "C" {} for C++ compiler compatibility
Anthony Baxter <anthonybaxter@gmail.com>
parents: 36669
diff changeset
23
270
aded208adf6c Expoer "marshal" module.
Guido van Rossum <guido@python.org>
parents: 204
diff changeset
24
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1443
diff changeset
25 /* -- ADDMODULE MARKER 1 -- */
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1443
diff changeset
26
13669
e94c05351d43 Fix prototypes generated by makesetup, so they include '(void)' rather than
Thomas Wouters <thomas@python.org>
parents: 13573
diff changeset
27 extern void PyMarshal_Init(void);
e94c05351d43 Fix prototypes generated by makesetup, so they include '(void)' rather than
Thomas Wouters <thomas@python.org>
parents: 13573
diff changeset
28 extern void initimp(void);
19586
c59f06f38a46 gcmodule is now enabled here
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents: 18933
diff changeset
29 extern void initgc(void);
36669
9504f7ac3669 Create _ast module.
Martin v. Löwis <martin@v.loewis.de>
parents: 24121
diff changeset
30 extern void init_ast(void);
46414
840064802952 Re-implement the 'warnings' module in C. This allows for usage of the
Brett Cannon <bcannon@gmail.com>
parents: 46360
diff changeset
31 extern void _PyWarnings_Init(void);
140
3b8023b0bb48 Turned the list of init calls into a table (see import.c).
Guido van Rossum <guido@python.org>
parents: 115
diff changeset
32
5376
9980faeeb7a5 Renamed inittab.
Guido van Rossum <guido@python.org>
parents: 4503
diff changeset
33 struct _inittab _PyImport_Inittab[] = {
140
3b8023b0bb48 Turned the list of init calls into a table (see import.c).
Guido van Rossum <guido@python.org>
parents: 115
diff changeset
34
1072
767ef7370d33 New shell script Addmodule.sh makes it easier to add a new optional
Guido van Rossum <guido@python.org>
parents: 1061
diff changeset
35 /* -- ADDMODULE MARKER 2 -- */
767ef7370d33 New shell script Addmodule.sh makes it easier to add a new optional
Guido van Rossum <guido@python.org>
parents: 1061
diff changeset
36
61983
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
37 /* This module lives in marshal.c */
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
38 {"marshal", PyMarshal_Init},
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1443
diff changeset
39
61983
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
40 /* This lives in import.c */
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
41 {"imp", initimp},
2055
cf31eab6ab5a Another bulky set of minor changes.
Guido van Rossum <guido@python.org>
parents: 1931
diff changeset
42
61983
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
43 /* This lives in Python/Python-ast.c */
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
44 {"_ast", init_ast},
36669
9504f7ac3669 Create _ast module.
Martin v. Löwis <martin@v.loewis.de>
parents: 24121
diff changeset
45
61983
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
46 /* These entries are here for sys.builtin_module_names */
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
47 {"__main__", NULL},
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
48 {"__builtin__", NULL},
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
49 {"sys", NULL},
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
50 {"exceptions", NULL},
1746
1940892d2fe3 Merge alpha100 branch back to main trunk
Guido van Rossum <guido@python.org>
parents: 1443
diff changeset
51
61983
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
52 /* This lives in gcmodule.c */
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
53 {"gc", initgc},
19586
c59f06f38a46 gcmodule is now enabled here
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents: 18933
diff changeset
54
61983
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
55 /* This lives in _warnings.c */
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
56 {"_warnings", _PyWarnings_Init},
46414
840064802952 Re-implement the 'warnings' module in C. This allows for usage of the
Brett Cannon <bcannon@gmail.com>
parents: 46360
diff changeset
57
61983
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
58 /* Sentinel */
6e71eca6278c Untabify Modules/config.c.in.
Mark Dickinson <dickinsm@gmail.com>
parents: 49229
diff changeset
59 {0, 0}
140
3b8023b0bb48 Turned the list of init calls into a table (see import.c).
Guido van Rossum <guido@python.org>
parents: 115
diff changeset
60 };
37660
f45bc241e200 whoops. missed one in an auto-generated file. another extern "C" {} for C++ compiler compatibility
Anthony Baxter <anthonybaxter@gmail.com>
parents: 36669
diff changeset
61
f45bc241e200 whoops. missed one in an auto-generated file. another extern "C" {} for C++ compiler compatibility
Anthony Baxter <anthonybaxter@gmail.com>
parents: 36669
diff changeset
62
f45bc241e200 whoops. missed one in an auto-generated file. another extern "C" {} for C++ compiler compatibility
Anthony Baxter <anthonybaxter@gmail.com>
parents: 36669
diff changeset
63 #ifdef __cplusplus
f45bc241e200 whoops. missed one in an auto-generated file. another extern "C" {} for C++ compiler compatibility
Anthony Baxter <anthonybaxter@gmail.com>
parents: 36669
diff changeset
64 }
f45bc241e200 whoops. missed one in an auto-generated file. another extern "C" {} for C++ compiler compatibility
Anthony Baxter <anthonybaxter@gmail.com>
parents: 36669
diff changeset
65 #endif