annotate Include/sysmodule.h @ 65221:faa4e22aaba7 2.7

Blocked revisions 85322,85326 via svnmerge ........ r85322 | r.david.murray | 2010-10-08 11:55:28 -0400 (Fri, 08 Oct 2010) | 8 lines #4661: add bytes parsing and generation to email (email version bump to 5.1.0) The work on this is not 100% complete, but everything is present to allow real-world testing of the code. The only remaining major todo item is to (hopefully!) enhance the handling of non-ASCII bytes in headers converted to unicode by RFC2047 encoding them rather than replacing them with '?'s. ........ r85326 | r.david.murray | 2010-10-08 17:37:39 -0400 (Fri, 08 Oct 2010) | 2 lines What's new entry for email 5.1. ........
author R. David Murray <rdmurray@bitdance.com>
date Tue, 12 Oct 2010 14:16:46 +0000
parents c2917ac5d526
children 6074530b526f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
145
853b736a6a9e Added copyright notice.
Guido van Rossum <guido@python.org>
parents: 86
diff changeset
1
6
fc6fcd7df4f7 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
2 /* System module interface */
fc6fcd7df4f7 Initial revision
Guido van Rossum <guido@python.org>
parents:
diff changeset
3
13445
091ca6b9348f ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
4 #ifndef Py_SYSMODULE_H
091ca6b9348f ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
5 #define Py_SYSMODULE_H
091ca6b9348f ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
6 #ifdef __cplusplus
091ca6b9348f ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
7 extern "C" {
091ca6b9348f ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
8 #endif
091ca6b9348f ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents: 13256
diff changeset
9
24752
c1eb668525e1 Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents: 20626
diff changeset
10 PyAPI_FUNC(PyObject *) PySys_GetObject(char *);
c1eb668525e1 Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents: 20626
diff changeset
11 PyAPI_FUNC(int) PySys_SetObject(char *, PyObject *);
c1eb668525e1 Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents: 20626
diff changeset
12 PyAPI_FUNC(FILE *) PySys_GetFile(char *, FILE *);
c1eb668525e1 Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents: 20626
diff changeset
13 PyAPI_FUNC(void) PySys_SetArgv(int, char **);
61788
c2917ac5d526 Issue #5753: A new C API function, :cfunc:`PySys_SetArgvEx`, allows
Antoine Pitrou <solipsis@pitrou.net>
parents: 46414
diff changeset
14 PyAPI_FUNC(void) PySys_SetArgvEx(int, char **, int);
24752
c1eb668525e1 Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents: 20626
diff changeset
15 PyAPI_FUNC(void) PySys_SetPath(char *);
709
7236e02c4563 Added definitions of sys_trace and sys_profile
Guido van Rossum <guido@python.org>
parents: 145
diff changeset
16
24752
c1eb668525e1 Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents: 20626
diff changeset
17 PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
25276
6c21e95a4881 Use Py_GCC_ATTRIBUTE instead of __attribute__. Compilers other than GCC
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents: 24752
diff changeset
18 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
24752
c1eb668525e1 Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents: 20626
diff changeset
19 PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
25276
6c21e95a4881 Use Py_GCC_ATTRIBUTE instead of __attribute__. Compilers other than GCC
Neil Schemenauer <nascheme@enme.ucalgary.ca>
parents: 24752
diff changeset
20 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
8313
Guido van Rossum <guido@python.org>
parents: 5919
diff changeset
21
24752
c1eb668525e1 Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents: 20626
diff changeset
22 PyAPI_DATA(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
c1eb668525e1 Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents: 20626
diff changeset
23 PyAPI_DATA(int) _PySys_CheckInterval;
1329
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1257
diff changeset
24
24752
c1eb668525e1 Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents: 20626
diff changeset
25 PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
c1eb668525e1 Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents: 20626
diff changeset
26 PyAPI_FUNC(void) PySys_AddWarnOption(char *);
46414
840064802952 Re-implement the 'warnings' module in C. This allows for usage of the
Brett Cannon <bcannon@gmail.com>
parents: 25276
diff changeset
27 PyAPI_FUNC(int) PySys_HasWarnOptions(void);
15594
1779f8574a83 Add declarations for PySys_ResetWarnOptions() and
Guido van Rossum <guido@python.org>
parents: 14375
diff changeset
28
1329
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1257
diff changeset
29 #ifdef __cplusplus
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1257
diff changeset
30 }
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1257
diff changeset
31 #endif
519c25039c6a * Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents: 1257
diff changeset
32 #endif /* !Py_SYSMODULE_H */