summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-02-17 18:18:00 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-02-17 18:18:00 (GMT)
commit08ea61ad45928e26da9ef2dade7776e61dbfbff2 (patch)
treee327494d4f93e18a49559ea7c85d819335119f8e /Python/import.c
parente241ce830ab49be5af21b5cc08660866efc48f2e (diff)
downloadcpython-08ea61ad45928e26da9ef2dade7776e61dbfbff2.zip
cpython-08ea61ad45928e26da9ef2dade7776e61dbfbff2.tar.gz
cpython-08ea61ad45928e26da9ef2dade7776e61dbfbff2.tar.bz2
Remove PyArg_ParseTuple() for methods which take no args,
use METH_NOARGS instead
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c36
1 files changed, 13 insertions, 23 deletions
diff --git a/Python/import.c b/Python/import.c
index 07fff18..2038cfd 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -286,10 +286,8 @@ unlock_import(void)
#endif
static PyObject *
-imp_lock_held(PyObject *self, PyObject *args)
+imp_lock_held(PyObject *self, PyObject *noargs)
{
- if (!PyArg_ParseTuple(args, ":lock_held"))
- return NULL;
#ifdef WITH_THREAD
return PyBool_FromLong(import_lock_thread != -1);
#else
@@ -298,10 +296,8 @@ imp_lock_held(PyObject *self, PyObject *args)
}
static PyObject *
-imp_acquire_lock(PyObject *self, PyObject *args)
+imp_acquire_lock(PyObject *self, PyObject *noargs)
{
- if (!PyArg_ParseTuple(args, ":acquire_lock"))
- return NULL;
#ifdef WITH_THREAD
lock_import();
#endif
@@ -310,10 +306,8 @@ imp_acquire_lock(PyObject *self, PyObject *args)
}
static PyObject *
-imp_release_lock(PyObject *self, PyObject *args)
+imp_release_lock(PyObject *self, PyObject *noargs)
{
- if (!PyArg_ParseTuple(args, ":release_lock"))
- return NULL;
#ifdef WITH_THREAD
if (unlock_import() < 0) {
PyErr_SetString(PyExc_RuntimeError,
@@ -2428,12 +2422,10 @@ PyImport_Import(PyObject *module_name)
*/
static PyObject *
-imp_get_magic(PyObject *self, PyObject *args)
+imp_get_magic(PyObject *self, PyObject *noargs)
{
char buf[4];
- if (!PyArg_ParseTuple(args, ":get_magic"))
- return NULL;
buf[0] = (char) ((pyc_magic >> 0) & 0xff);
buf[1] = (char) ((pyc_magic >> 8) & 0xff);
buf[2] = (char) ((pyc_magic >> 16) & 0xff);
@@ -2443,13 +2435,11 @@ imp_get_magic(PyObject *self, PyObject *args)
}
static PyObject *
-imp_get_suffixes(PyObject *self, PyObject *args)
+imp_get_suffixes(PyObject *self, PyObject *noargs)
{
PyObject *list;
struct filedescr *fdp;
- if (!PyArg_ParseTuple(args, ":get_suffixes"))
- return NULL;
list = PyList_New(0);
if (list == NULL)
return NULL;
@@ -2791,14 +2781,14 @@ Release the interpreter's import lock.\n\
On platforms without threads, this function does nothing.");
static PyMethodDef imp_methods[] = {
- {"find_module", imp_find_module, METH_VARARGS, doc_find_module},
- {"get_magic", imp_get_magic, METH_VARARGS, doc_get_magic},
- {"get_suffixes", imp_get_suffixes, METH_VARARGS, doc_get_suffixes},
- {"load_module", imp_load_module, METH_VARARGS, doc_load_module},
- {"new_module", imp_new_module, METH_VARARGS, doc_new_module},
- {"lock_held", imp_lock_held, METH_VARARGS, doc_lock_held},
- {"acquire_lock", imp_acquire_lock, METH_VARARGS, doc_acquire_lock},
- {"release_lock", imp_release_lock, METH_VARARGS, doc_release_lock},
+ {"find_module", imp_find_module, METH_VARARGS, doc_find_module},
+ {"get_magic", imp_get_magic, METH_NOARGS, doc_get_magic},
+ {"get_suffixes", imp_get_suffixes, METH_NOARGS, doc_get_suffixes},
+ {"load_module", imp_load_module, METH_VARARGS, doc_load_module},
+ {"new_module", imp_new_module, METH_VARARGS, doc_new_module},
+ {"lock_held", imp_lock_held, METH_NOARGS, doc_lock_held},
+ {"acquire_lock", imp_acquire_lock, METH_NOARGS, doc_acquire_lock},
+ {"release_lock", imp_release_lock, METH_NOARGS, doc_release_lock},
/* The rest are obsolete */
{"get_frozen_object", imp_get_frozen_object, METH_VARARGS},
{"init_builtin", imp_init_builtin, METH_VARARGS},
_fradin_code_cleanup'>contrib_patrick_fradin_code_cleanup Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/compat/zlib/zlib.map
blob: 54fa5538a53a39316cd1b565ea5c1e1980587b34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
ZLIB_1.2.0 {
  global:
    compressBound;
    deflateBound;
    inflateBack;
    inflateBackEnd;
    inflateBackInit_;
    inflateCopy;
  local:
    deflate_copyright;
    inflate_copyright;
    inflate_fast;
    inflate_table;
    zcalloc;
    zcfree;
    z_errmsg;
    gz_error;
    gz_intmax;
    _*;
};

ZLIB_1.2.0.2 {
    gzclearerr;
    gzungetc;
    zlibCompileFlags;
} ZLIB_1.2.0;

ZLIB_1.2.0.8 {
    deflatePrime;
} ZLIB_1.2.0.2;

ZLIB_1.2.2 {
    adler32_combine;
    crc32_combine;
    deflateSetHeader;
    inflateGetHeader;
} ZLIB_1.2.0.8;

ZLIB_1.2.2.3 {
    deflateTune;
    gzdirect;
} ZLIB_1.2.2;

ZLIB_1.2.2.4 {
    inflatePrime;
} ZLIB_1.2.2.3;

ZLIB_1.2.3.3 {
    adler32_combine64;
    crc32_combine64;
    gzopen64;
    gzseek64;
    gztell64;
    inflateUndermine;
} ZLIB_1.2.2.4;

ZLIB_1.2.3.4 {
    inflateReset2;
    inflateMark;
} ZLIB_1.2.3.3;

ZLIB_1.2.3.5 {
    gzbuffer;
    gzoffset;
    gzoffset64;
    gzclose_r;
    gzclose_w;
} ZLIB_1.2.3.4;

ZLIB_1.2.5.1 {
    deflatePending;
} ZLIB_1.2.3.5;

ZLIB_1.2.5.2 {
    deflateResetKeep;
    gzflags;
    gzgetc_;
    inflateResetKeep;
} ZLIB_1.2.5.1;