Mercurial > cpython-lru_cache-weakref
annotate Include/compile.h @ 78069:a8aa77458e12 3.2
Add c_size_t and c_ssize_t to the ctypes summary table.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Thu, 12 Jul 2012 20:31:50 +0200 |
| parents | f61196453c78 |
| children | 775977c601cd |
| rev | line source |
|---|---|
|
66664
62b61abd02b8
Merge branches/pep-0384.
Martin v. Löwis <martin@v.loewis.de>
parents:
52641
diff
changeset
|
1 #ifndef Py_LIMITED_API |
|
13444
5709ddba423c
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
2 #ifndef Py_COMPILE_H |
|
5709ddba423c
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
3 #define Py_COMPILE_H |
|
36745
3ffc1e1d2f57
Move #include to outside "extern C {}", before Tim figures out it'll break
Thomas Wouters <thomas@python.org>
parents:
36740
diff
changeset
|
4 |
|
3ffc1e1d2f57
Move #include to outside "extern C {}", before Tim figures out it'll break
Thomas Wouters <thomas@python.org>
parents:
36740
diff
changeset
|
5 #include "code.h" |
|
3ffc1e1d2f57
Move #include to outside "extern C {}", before Tim figures out it'll break
Thomas Wouters <thomas@python.org>
parents:
36740
diff
changeset
|
6 |
|
13444
5709ddba423c
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
7 #ifdef __cplusplus |
|
5709ddba423c
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
8 extern "C" { |
|
5709ddba423c
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
9 #endif |
|
5709ddba423c
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
10 |
| 86 | 11 /* Public interface */ |
|
161
25a7fb44e297
Satisfy Standard C rules about struct scope.
Guido van Rossum <guido@python.org>
parents:
145
diff
changeset
|
12 struct _node; /* Declare the existence of this type */ |
|
26601
cc05c2c8660e
Constify filenames and scripts. Fixes #651362.
Martin v. Löwis <martin@v.loewis.de>
parents:
24752
diff
changeset
|
13 PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *); |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
14 |
|
16799
08d937107fe6
Improved __future__ parser; still more to do
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
16781
diff
changeset
|
15 /* Future feature support */ |
|
08d937107fe6
Improved __future__ parser; still more to do
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
16781
diff
changeset
|
16 |
|
08d937107fe6
Improved __future__ parser; still more to do
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
16781
diff
changeset
|
17 typedef struct { |
|
35742
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
31514
diff
changeset
|
18 int ff_features; /* flags set by future statements */ |
|
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
31514
diff
changeset
|
19 int ff_lineno; /* line number of last future statement */ |
|
16799
08d937107fe6
Improved __future__ parser; still more to do
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
16781
diff
changeset
|
20 } PyFutureFeatures; |
|
08d937107fe6
Improved __future__ parser; still more to do
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
16781
diff
changeset
|
21 |
|
08d937107fe6
Improved __future__ parser; still more to do
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
16781
diff
changeset
|
22 #define FUTURE_NESTED_SCOPES "nested_scopes" |
|
18609
59446d0f8341
Preliminary support for "from __future__ import generators" to enable
Guido van Rossum <guido@python.org>
parents:
18506
diff
changeset
|
23 #define FUTURE_GENERATORS "generators" |
|
19051
f20727cc3d0f
Implement PEP 238 in its (almost) full glory.
Guido van Rossum <guido@python.org>
parents:
18611
diff
changeset
|
24 #define FUTURE_DIVISION "division" |
|
37879
f731859e9b3b
Merge p3yk branch with the trunk up to revision 45595. This breaks a fair
Thomas Wouters <thomas@python.org>
parents:
36745
diff
changeset
|
25 #define FUTURE_ABSOLUTE_IMPORT "absolute_import" |
|
36726
bbf16fd024df
from __future__ import with_statement addon for 'with', mostly written by
Thomas Wouters <thomas@python.org>
parents:
36712
diff
changeset
|
26 #define FUTURE_WITH_STATEMENT "with_statement" |
|
45965
91ac8049e709
Add __future__ import for print_function. It's a no-op in 3.0, but it needs to not be a syntax error.
Eric Smith <eric@trueblade.com>
parents:
37879
diff
changeset
|
27 #define FUTURE_PRINT_FUNCTION "print_function" |
|
46120
78504d604b44
Merged revisions 61952-61953 via svnmerge from
Christian Heimes <christian@cheimes.de>
parents:
45965
diff
changeset
|
28 #define FUTURE_UNICODE_LITERALS "unicode_literals" |
|
52641
0530aadff696
The BDFL has retired! Long live the FLUFL (Friendly Language Uncle For Life)!
Brett Cannon <bcannon@gmail.com>
parents:
49633
diff
changeset
|
29 #define FUTURE_BARRY_AS_BDFL "barry_as_FLUFL" |
|
19051
f20727cc3d0f
Implement PEP 238 in its (almost) full glory.
Guido van Rossum <guido@python.org>
parents:
18611
diff
changeset
|
30 |
|
35742
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
31514
diff
changeset
|
31 struct _mod; /* Declare the existence of this type */ |
|
66685
713c6b6ca5ce
Add an "optimize" parameter to compile() to control the optimization level, and provide an interface to it in py_compile, compileall and PyZipFile.
Georg Brandl <georg@python.org>
parents:
66664
diff
changeset
|
32 #define PyAST_Compile(mod, s, f, ar) PyAST_CompileEx(mod, s, f, -1, ar) |
|
67151
66d8446a019b
Issue #9738: Document encodings of AST, compiler, parser and PyRun functions
Victor Stinner <victor.stinner@haypocalc.com>
parents:
66685
diff
changeset
|
33 PyAPI_FUNC(PyCodeObject *) PyAST_CompileEx( |
|
67152
f61196453c78
Issue #9738: Ooops, fix typos in my previous commit (r87506)
Victor Stinner <victor.stinner@haypocalc.com>
parents:
67151
diff
changeset
|
34 struct _mod *mod, |
|
67151
66d8446a019b
Issue #9738: Document encodings of AST, compiler, parser and PyRun functions
Victor Stinner <victor.stinner@haypocalc.com>
parents:
66685
diff
changeset
|
35 const char *filename, /* decoded from the filesystem encoding */ |
|
66d8446a019b
Issue #9738: Document encodings of AST, compiler, parser and PyRun functions
Victor Stinner <victor.stinner@haypocalc.com>
parents:
66685
diff
changeset
|
36 PyCompilerFlags *flags, |
|
66d8446a019b
Issue #9738: Document encodings of AST, compiler, parser and PyRun functions
Victor Stinner <victor.stinner@haypocalc.com>
parents:
66685
diff
changeset
|
37 int optimize, |
|
66d8446a019b
Issue #9738: Document encodings of AST, compiler, parser and PyRun functions
Victor Stinner <victor.stinner@haypocalc.com>
parents:
66685
diff
changeset
|
38 PyArena *arena); |
|
35783
b1a0e1a2b28f
use PyAPI_FUNC instead of DL_IMPORT. are we going to deprecate the old non-Py PREFIXED macros, etc?
Neal Norwitz <nnorwitz@gmail.com>
parents:
35766
diff
changeset
|
39 PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *); |
|
35742
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
31514
diff
changeset
|
40 |
|
1c4d192f1568
Merge ast-branch to head
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
31514
diff
changeset
|
41 |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
42 #ifdef __cplusplus |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
43 } |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
44 #endif |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1257
diff
changeset
|
45 #endif /* !Py_COMPILE_H */ |
|
66664
62b61abd02b8
Merge branches/pep-0384.
Martin v. Löwis <martin@v.loewis.de>
parents:
52641
diff
changeset
|
46 #endif /* !Py_LIMITED_API */ |
