diff options
author | Guido van Rossum <guido@python.org> | 1992-01-27 16:51:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-27 16:51:30 (GMT) |
commit | ef0a00ec0c8f2fb98616328fa7efdeaf160c0587 (patch) | |
tree | 33e7e2d9f77dec5388b05db03970a8aacd7b8c72 /Modules/fmmodule.c | |
parent | 550fbcc2aa8d77faab142177470390abe7e4728d (diff) | |
download | cpython-ef0a00ec0c8f2fb98616328fa7efdeaf160c0587.zip cpython-ef0a00ec0c8f2fb98616328fa7efdeaf160c0587.tar.gz cpython-ef0a00ec0c8f2fb98616328fa7efdeaf160c0587.tar.bz2 |
Use getargs() function.
Diffstat (limited to 'Modules/fmmodule.c')
-rw-r--r-- | Modules/fmmodule.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/fmmodule.c b/Modules/fmmodule.c index dae8290..d2ede92 100644 --- a/Modules/fmmodule.c +++ b/Modules/fmmodule.c @@ -166,10 +166,10 @@ fh_getstrwidth(self, args) fhobject *self; object *args; { - object *str; + char *str; if (!getstrarg(args, &str)) return NULL; - return newintobject(fmgetstrwidth(self->fh_fh, getstringvalue(str))); + return newintobject(fmgetstrwidth(self->fh_fh, str)); } static struct methodlist fh_methods[] = { @@ -234,20 +234,20 @@ static object * fm_findfont(self, args) object *self, *args; { - object *str; + char *str; if (!getstrarg(args, &str)) return NULL; - return newfhobject(fmfindfont(getstringvalue(str))); + return newfhobject(fmfindfont(str)); } static object * fm_prstr(self, args) object *self, *args; { - object *str; + char *str; if (!getstrarg(args, &str)) return NULL; - fmprstr(getstringvalue(str)); + fmprstr(str); INCREF(None); return None; } @@ -297,10 +297,10 @@ static object * fm_setpath(self, args) object *self, *args; { - object *str; + char *str; if (!getstrarg(args, &str)) return NULL; - fmsetpath(getstringvalue(str)); + fmsetpath(str); INCREF(None); return None; } |