Fix docs re 'orig' argument of FcPatternBuild and family

Now call it 'p' or 'pattern', since it's modified in place.
There is no copying.
This commit is contained in:
Behdad Esfahbod 2008-08-14 15:27:16 -04:00
parent bb65f58f63
commit 74e16ceeea
3 changed files with 11 additions and 11 deletions

View File

@ -279,20 +279,20 @@ in preference to FcPatternGet to provide compile-time typechecking.
@RET@ FcPattern *
@FUNC@ FcPatternBuild
@TYPE1@ FcPattern * @ARG1@ orig
@TYPE1@ FcPattern * @ARG1@ pattern
@TYPE2@ ...
@PROTOTYPE+@
@RET+@ FcPattern *
@FUNC+@ FcPatternVaBuild
@TYPE1+@ FcPattern * @ARG1+@ orig
@TYPE1+@ FcPattern * @ARG1+@ pattern
@TYPE2+@ va_list% @ARG2+@ va
@PROTOTYPE++@
@RET++@ void
@FUNC++@ FcPatternVapBuild
@TYPE1++@ FcPattern * @ARG1++@ result
@TYPE2++@ FcPattern * @ARG2++@ orig
@TYPE2++@ FcPattern * @ARG2++@ pattern
@TYPE3++@ va_list% @ARG3++@ va
@PURPOSE@ Create patterns from arguments

View File

@ -822,10 +822,10 @@ FcPublic FcResult
FcPatternGetLangSet (const FcPattern *p, const char *object, int n, FcLangSet **ls);
FcPublic FcPattern *
FcPatternVaBuild (FcPattern *orig, va_list va);
FcPatternVaBuild (FcPattern *p, va_list va);
FcPublic FcPattern *
FcPatternBuild (FcPattern *orig, ...) FC_ATTRIBUTE_SENTINEL(0);
FcPatternBuild (FcPattern *p, ...) FC_ATTRIBUTE_SENTINEL(0);
/* fcstr.c */

View File

@ -954,23 +954,23 @@ FcPatternReference (FcPattern *p)
}
FcPattern *
FcPatternVaBuild (FcPattern *orig, va_list va)
FcPatternVaBuild (FcPattern *p, va_list va)
{
FcPattern *ret;
FcPatternVapBuild (ret, orig, va);
FcPatternVapBuild (ret, p, va);
return ret;
}
FcPattern *
FcPatternBuild (FcPattern *orig, ...)
FcPatternBuild (FcPattern *p, ...)
{
va_list va;
va_start (va, orig);
FcPatternVapBuild (orig, orig, va);
va_start (va, p);
FcPatternVapBuild (p, p, va);
va_end (va);
return orig;
return p;
}
/*