meth->is_getter = is_getter; meth->is_setter = is_setter; meth->is_constructor = is_constructor; meth->is_hidden = is_hidden; meth->reserved = 0;
meth->flags = flags & XPT_MD_FLAGMASK;
XPT_FillMethodDescriptor(XPTMethodDescriptor *meth, PRBool is_getter,                         PRBool is_setter, PRBool is_varargs,                         PRBool is_constructor, PRBool is_hidden, char *name,                         uint8 num_args){    meth->is_getter = is_getter;    meth->is_setter = is_setter;    meth->is_constructor = is_constructor;    meth->is_hidden = is_hidden;    meth->reserved = 0;    meth->name = strdup(name);    if (!name)        return PR_FALSE;    meth->num_args = num_args;    meth->params = PR_CALLOC(num_args * sizeof(XPTParamDescriptor));    if (!meth->params)        goto free_name;    meth->result = PR_NEWZAP(XPTParamDescriptor);    if (!meth->result)        goto free_params;    return PR_TRUE; free_params:    PR_DELETE(meth->params); free_name:    PR_DELETE(meth->name);    return PR_FALSE;}