static PyObject *NisError;
static PyObject *
-nis_error (err)
- int err;
+nis_error (int err)
{
PyErr_SetString(NisError, yperr_string(err));
return NULL;
};
static char *
-nis_mapname (map, pfix)
- char *map;
- int *pfix;
+nis_mapname (char *map, int *pfix)
{
int i;
};
static int
-nis_foreach (instatus, inkey, inkeylen, inval, invallen, indata)
- int instatus;
- char *inkey;
- int inkeylen;
- char *inval;
- int invallen;
- struct ypcallback_data *indata;
+nis_foreach (int instatus, char *inkey, int inkeylen, char *inval,
+ int invallen, struct ypcallback_data *indata)
{
if (instatus == YP_TRUE) {
PyObject *key;
}
static PyObject *
-nis_match (self, args)
- PyObject *self;
- PyObject *args;
+nis_match (PyObject *self, PyObject *args)
{
char *match;
char *domain;
}
static PyObject *
-nis_cat (self, args)
- PyObject *self;
- PyObject *args;
+nis_cat (PyObject *self, PyObject *args)
{
char *domain;
char *map;
static
bool_t
-nis_xdr_domainname(xdrs, objp)
- XDR *xdrs;
- domainname *objp;
+nis_xdr_domainname(XDR *xdrs, domainname *objp)
{
if (!xdr_string(xdrs, objp, YPMAXDOMAIN)) {
return (FALSE);
static
bool_t
-nis_xdr_mapname(xdrs, objp)
- XDR *xdrs;
- mapname *objp;
+nis_xdr_mapname(XDR *xdrs, mapname *objp)
{
if (!xdr_string(xdrs, objp, YPMAXMAP)) {
return (FALSE);
static
bool_t
-nis_xdr_ypmaplist(xdrs, objp)
- XDR *xdrs;
- nismaplist *objp;
+nis_xdr_ypmaplist(XDR *xdrs, nismaplist *objp)
{
if (!nis_xdr_mapname(xdrs, &objp->map)) {
return (FALSE);
static
bool_t
-nis_xdr_ypstat(xdrs, objp)
- XDR *xdrs;
- nisstat *objp;
+nis_xdr_ypstat(XDR *xdrs, nisstat *objp)
{
if (!xdr_enum(xdrs, (enum_t *)objp)) {
return (FALSE);
static
bool_t
-nis_xdr_ypresp_maplist(xdrs, objp)
- XDR *xdrs;
- nisresp_maplist *objp;
+nis_xdr_ypresp_maplist(XDR *xdrs, nisresp_maplist *objp)
{
if (!nis_xdr_ypstat(xdrs, &objp->stat)) {
return (FALSE);
static
nisresp_maplist *
-nisproc_maplist_2(argp, clnt)
- domainname *argp;
- CLIENT *clnt;
+nisproc_maplist_2(domainname *argp, CLIENT *clnt)
{
static nisresp_maplist res;
}
static PyObject *
-nis_maps (self, args)
- PyObject *self;
- PyObject *args;
+nis_maps (PyObject *self, PyObject *args)
{
nismaplist *maps;
PyObject *list;
#define STRING 9
static PcreObject *
-newPcreObject(arg)
- PyObject *arg;
+newPcreObject(PyObject *args)
{
PcreObject *self;
self = PyObject_New(PcreObject, &Pcre_Type);
/* Pcre methods */
static void
-PyPcre_dealloc(self)
- PcreObject *self;
+PyPcre_dealloc(PcreObject *self)
{
if (self->regex) (pcre_free)(self->regex);
if (self->regex_extra) (pcre_free)(self->regex_extra);
static PyObject *
-PyPcre_exec(self, args)
- PcreObject *self;
- PyObject *args;
+PyPcre_exec(PcreObject *self, PyObject *args)
{
char *string;
int stringlen, pos = 0, options=0, endpos = -1, i, count;
};
static PyObject *
-PyPcre_getattr(self, name)
- PcreObject *self;
- char *name;
+PyPcre_getattr(PcreObject *self, char *name)
{
return Py_FindMethod(Pcre_methods, (PyObject *)self, name);
}
/* --------------------------------------------------------------------- */
static PyObject *
-PyPcre_compile(self, args)
- PyObject *self; /* Not used */
- PyObject *args;
+PyPcre_compile(PyObject *self, PyObject *args)
{
PcreObject *rv;
PyObject *dictionary;
}
static PyObject *
-PyPcre_expand_escape(pattern, pattern_len, indexptr, typeptr)
- unsigned char *pattern;
- int pattern_len, *indexptr, *typeptr;
+PyPcre_expand_escape(unsigned char *pattern, int pattern_len,
+ int *indexptr, int *typeptr)
{
unsigned char c;
int index = *indexptr;
}
static PyObject *
-PyPcre_expand(self, args)
- PyObject *self;
- PyObject *args;
+PyPcre_expand(PyObject *self, PyObject *args)
{
PyObject *results, *match_obj;
PyObject *repl_obj, *newstring;
*/
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) {
static PyObject *
-mkpwent(p)
- struct passwd *p;
+mkpwent(struct passwd *p)
{
#ifdef __BEOS__
/* For faking the GECOS field. - [cjh] */
See pwd.__doc__ for more on password database entries.";
static PyObject *
-pwd_getpwuid(self, args)
- PyObject *self;
- PyObject *args;
+pwd_getpwuid(PyObject *self, PyObject *args)
{
int uid;
struct passwd *p;
See pwd.__doc__ for more on password database entries.";
static PyObject *
-pwd_getpwnam(self, args)
- PyObject *self;
- PyObject *args;
+pwd_getpwnam(PyObject *self, PyObject *args)
{
char *name;
struct passwd *p;
See pwd.__doc__ for more on password database entries.";
static PyObject *
-pwd_getpwall(self, args)
- PyObject *self;
- PyObject *args;
+pwd_getpwall(PyObject *self, PyObject *args)
{
PyObject *d;
struct passwd *p;