Add "varargs" attribute.

This commit is contained in:
Guido van Rossum 1991-12-16 13:07:24 +00:00
parent 3ddee714d1
commit c06022966f
3 changed files with 26 additions and 9 deletions

View file

@ -45,7 +45,7 @@ initmodule(name, methods)
for (ml = methods; ml->ml_name != NULL; ml++) {
sprintf(namebuf, "%s.%s", name, ml->ml_name);
v = newmethodobject(strdup(namebuf), ml->ml_meth,
(object *)NULL);
(object *)NULL, ml->ml_varargs);
/* XXX The strdup'ed memory is never freed */
if (v == NULL || dictinsert(d, ml->ml_name, v) != 0) {
fprintf(stderr, "initializing module: %s\n", name);