static char doc_a2b_uu[] = "(ascii) -> bin. Decode a line of uuencoded data";
static PyObject *
-binascii_a2b_uu(self, args)
- PyObject *self;
- PyObject *args;
+binascii_a2b_uu(PyObject *self, PyObject *args)
{
unsigned char *ascii_data, *bin_data;
int leftbits = 0;
static char doc_b2a_uu[] = "(bin) -> ascii. Uuencode line of data";
static PyObject *
-binascii_b2a_uu(self, args)
- PyObject *self;
- PyObject *args;
+binascii_b2a_uu(PyObject *self, PyObject *args)
{
unsigned char *ascii_data, *bin_data;
int leftbits = 0;
static int
-binascii_find_valid(s, slen, num)
- char *s;
- int slen;
- int num;
+binascii_find_valid(unsigned char *s, int slen, int num)
{
/* Finds & returns the (num+1)th
** valid character for base64, or -1 if none.
static char doc_a2b_base64[] = "(ascii) -> bin. Decode a line of base64 data";
static PyObject *
-binascii_a2b_base64(self, args)
- PyObject *self;
- PyObject *args;
+binascii_a2b_base64(PyObject *self, PyObject *args)
{
unsigned char *ascii_data, *bin_data;
int leftbits = 0;
static char doc_b2a_base64[] = "(bin) -> ascii. Base64-code line of data";
static PyObject *
-binascii_b2a_base64(self, args)
- PyObject *self;
- PyObject *args;
+binascii_b2a_base64(PyObject *self, PyObject *args)
{
unsigned char *ascii_data, *bin_data;
int leftbits = 0;
static char doc_a2b_hqx[] = "ascii -> bin, done. Decode .hqx coding";
static PyObject *
-binascii_a2b_hqx(self, args)
- PyObject *self;
- PyObject *args;
+binascii_a2b_hqx(PyObject *self, PyObject *args)
{
unsigned char *ascii_data, *bin_data;
int leftbits = 0;
static char doc_rlecode_hqx[] = "Binhex RLE-code binary data";
static PyObject *
-binascii_rlecode_hqx(self, args)
- PyObject *self;
-PyObject *args;
+binascii_rlecode_hqx(PyObject *self, PyObject *args)
{
unsigned char *in_data, *out_data;
PyObject *rv;
static char doc_b2a_hqx[] = "Encode .hqx data";
static PyObject *
-binascii_b2a_hqx(self, args)
- PyObject *self;
- PyObject *args;
+binascii_b2a_hqx(PyObject *self, PyObject *args)
{
unsigned char *ascii_data, *bin_data;
int leftbits = 0;
static char doc_rledecode_hqx[] = "Decode hexbin RLE-coded string";
static PyObject *
-binascii_rledecode_hqx(self, args)
- PyObject *self;
- PyObject *args;
+binascii_rledecode_hqx(PyObject *self, PyObject *args)
{
unsigned char *in_data, *out_data;
unsigned char in_byte, in_repeat;
"(data, oldcrc) -> newcrc. Compute hqx CRC incrementally";
static PyObject *
-binascii_crc_hqx(self, args)
- PyObject *self;
-PyObject *args;
+binascii_crc_hqx(PyObject *self, PyObject *args)
{
unsigned char *bin_data;
unsigned int crc;
};
static PyObject *
-binascii_crc32(self, args)
- PyObject *self;
- PyObject *args;
+binascii_crc32(PyObject *self, PyObject *args)
{ /* By Jim Ahlstrom; All rights transferred to CNRI */
unsigned char *bin_data;
unsigned long crc = 0UL; /* initial value of CRC */
/* Module crypt */
-static PyObject *crypt_crypt(self, args)
- PyObject *self, *args;
+static PyObject *crypt_crypt(PyObject *self, PyObject *args)
{
char *word, *salt;
extern char * crypt();
/* Exported function to send one line to readline's init file parser */
static PyObject *
-parse_and_bind(self, args)
- PyObject *self;
- PyObject *args;
+parse_and_bind(PyObject *self, PyObject *args)
{
char *s, *copy;
if (!PyArg_ParseTuple(args, "s:parse_and_bind", &s))
/* Exported function to parse a readline init file */
static PyObject *
-read_init_file(self, args)
- PyObject *self;
- PyObject *args;
+read_init_file(PyObject *self, PyObject *args)
{
char *s = NULL;
if (!PyArg_ParseTuple(args, "|z:read_init_file", &s))
/* Exported function to load a readline history file */
static PyObject *
-read_history_file(self, args)
- PyObject *self;
- PyObject *args;
+read_history_file(PyObject *self, PyObject *args)
{
char *s = NULL;
if (!PyArg_ParseTuple(args, "|z:read_history_file", &s))
/* Exported function to save a readline history file */
static PyObject *
-write_history_file(self, args)
- PyObject *self;
- PyObject *args;
+write_history_file(PyObject *self, PyObject *args)
{
char *s = NULL;
if (!PyArg_ParseTuple(args, "|z:write_history_file", &s))
/* get the beginning index for the scope of the tab-completion */
static PyObject *
-get_begidx(self, args)
- PyObject *self;
- PyObject *args;
+get_begidx(PyObject *self, PyObject *args)
{
if(!PyArg_NoArgs(args)) {
return NULL;
/* get the ending index for the scope of the tab-completion */
static PyObject *
-get_endidx(self, args)
- PyObject *self;
- PyObject *args;
+get_endidx(PyObject *self, PyObject *args)
{
if(!PyArg_NoArgs(args)) {
return NULL;
/* set the tab-completion word-delimiters that readline uses */
static PyObject *
-set_completer_delims(self, args)
- PyObject *self;
- PyObject *args;
+set_completer_delims(PyObject *self, PyObject *args)
{
char *break_chars;
/* get the tab-completion word-delimiters that readline uses */
static PyObject *
-get_completer_delims(self, args)
- PyObject *self;
- PyObject *args;
+get_completer_delims(PyObject *self, PyObject *args)
{
if(!PyArg_NoArgs(args)) {
return NULL;
get the readline word delimiters for tab-completion";
static PyObject *
-set_completer(self, args)
- PyObject *self;
- PyObject *args;
+set_completer(PyObject *self, PyObject *args)
{
PyObject *function = Py_None;
if (!PyArg_ParseTuple(args, "|O:set_completer", &function))
/* Exported function to read the current line buffer */
static PyObject *
-get_line_buffer(self, args)
- PyObject *self;
- PyObject *args;
+get_line_buffer(PyObject *self, PyObject *args)
{
if (!PyArg_NoArgs(args))
return NULL;
/* Exported function to insert text into the line buffer */
static PyObject *
-insert_text(self, args)
- PyObject *self;
- PyObject *args;
+insert_text(PyObject *self, PyObject *args)
{
char *s;
if (!PyArg_ParseTuple(args, "s:insert_text", &s))
/* C function to call the Python completer. */
static char *
-on_completion(text, state)
- char *text;
- int state;
+on_completion(char *text, int state)
{
char *result = NULL;
if (completer != NULL) {
* before calling the normal completer */
char **
-flex_complete(text, start, end)
- char *text;
- int start;
- int end;
+flex_complete(char *text, int start, int end)
{
Py_XDECREF(begidx);
Py_XDECREF(endidx);
/* ARGSUSED */
static RETSIGTYPE
-onintr(sig)
- int sig;
+onintr(int sig)
{
longjmp(jbuf, 1);
}
/* Wrapper around GNU readline that handles signals differently. */
static char *
-call_readline(prompt)
- char *prompt;
+call_readline(char *prompt)
{
size_t n;
char *p, *q;
;
static compobject *
-newcompobject(type)
- PyTypeObject *type;
+newcompobject(PyTypeObject *type)
{
compobject *self;
self = PyObject_New(compobject, type);
;
static PyObject *
-PyZlib_compress(self, args)
- PyObject *self;
- PyObject *args;
+PyZlib_compress(PyObject *self, PyObject *args)
{
PyObject *ReturnVal;
Byte *input, *output;
;
static PyObject *
-PyZlib_decompress(self, args)
- PyObject *self;
- PyObject *args;
+PyZlib_decompress(PyObject *self, PyObject *args)
{
PyObject *result_str;
Byte *input;
}
static PyObject *
-PyZlib_compressobj(selfptr, args)
- PyObject *selfptr;
- PyObject *args;
+PyZlib_compressobj(PyObject *selfptr, PyObject *args)
{
compobject *self;
int level=Z_DEFAULT_COMPRESSION, method=DEFLATED;
}
static PyObject *
-PyZlib_decompressobj(selfptr, args)
- PyObject *selfptr;
- PyObject *args;
+PyZlib_decompressobj(PyObject *selfptr, PyObject *args)
{
int wbits=DEF_WBITS, err;
compobject *self;
}
static void
-Comp_dealloc(self)
- compobject *self;
+Comp_dealloc(compobject *self)
{
if (self->is_initialised)
deflateEnd(&self->zst);
}
static void
-Decomp_dealloc(self)
- compobject *self;
+Decomp_dealloc(compobject *self)
{
inflateEnd(&self->zst);
Py_XDECREF(self->unused_data);
static PyObject *
-PyZlib_objcompress(self, args)
- compobject *self;
- PyObject *args;
+PyZlib_objcompress(compobject *self, PyObject *args)
{
int err = Z_OK, inplen;
int length = DEFAULTALLOC;
;
static PyObject *
-PyZlib_objdecompress(self, args)
- compobject *self;
- PyObject *args;
+PyZlib_objdecompress(compobject *self, PyObject *args)
{
int length, err, inplen;
PyObject *RetVal;
;
static PyObject *
-PyZlib_flush(self, args)
- compobject *self;
- PyObject *args;
+PyZlib_flush(compobject *self, PyObject *args)
{
int length=DEFAULTALLOC, err = Z_OK;
PyObject *RetVal;
;
static PyObject *
-PyZlib_unflush(self, args)
- compobject *self;
- PyObject *args;
+PyZlib_unflush(compobject *self, PyObject *args)
{
int length=0, err;
PyObject *RetVal;
};
static PyObject *
-Comp_getattr(self, name)
- compobject *self;
- char *name;
+Comp_getattr(compobject *self, char *name)
{
return Py_FindMethod(comp_methods, (PyObject *)self, name);
}
static PyObject *
-Decomp_getattr(self, name)
- compobject *self;
- char *name;
+Decomp_getattr(compobject *self, char *name)
{
if (strcmp(name, "unused_data") == 0)
{
;
static PyObject *
-PyZlib_adler32(self, args)
- PyObject *self, *args;
+PyZlib_adler32(PyObject *self, PyObject *args)
{
uLong adler32val=adler32(0L, Z_NULL, 0);
Byte *buf;
;
static PyObject *
-PyZlib_crc32(self, args)
- PyObject *self, *args;
+PyZlib_crc32(PyObject *self, PyObject *args)
{
uLong crc32val=crc32(0L, Z_NULL, 0);
Byte *buf;
/* Convenience routine to export an integer value.
For simplicity, errors (which are unlikely anyway) are ignored. */
static void
-insint(d, name, value)
- PyObject *d;
- char *name;
- int value;
+insint(PyObject *d, char *name, int value)
{
PyObject *v = PyInt_FromLong((long) value);
if (v == NULL) {