Trf_SetObjOption(3)
π Trf_SetObjOption β Library Functions Manual, bestie π
okay so we're doing Trf_SetObjOption(3) today and honestly? it's giving glue code that actually matters. this is the interface to the procedures that define the value of an option. no cap. π
β¨ SYNOPSIS β¨
#include <transform.h>
int Trf_SetObjOption
(
Trf_Options options,
Tcl_Interp *interp,
const char *optname,
const Tcl_Obj *optvalue,
ClientData clientData
);
πΈ PARAMETERS πΈ
Trf_Options optionsβ the container we're dropping the value into. her little home. πTcl_Interp *interpβ the interpreter for error messages, and yesNULLis possible, so don't be weird about it.const char *optnameβ name of the option to define. the vibe check happens here.const Tcl_Obj *optvalueβ the value to set into the container. the main character, fr.ClientData clientDataβ arbitrary information, as defined inTrf_TypeDefinition.clientData. it's giving "you already know what this is".
π DESCRIPTION π
so like. this procedure takes the specified optionname β and yes it rejects illegal ones, we do not tolerate chaos in this house π« β and places the given optionvalue into the container. that's the whole gig.
all the necessary conversions from a Tcl_Obj to the required type? should be done here. right in this function. not somewhere else. here. π
the return value is a standard tcl error code, periodt.
in case of failure and interp not NULL, an error message should be left in the result area of the specified interpreter. so like, don't just fail silently, leave a note bestie π
heads up: this procedure makes sense for tcl version 8 and above only. if you're on something older, this is not your moment. π
π SEE ALSO π
Trf_Init(3), Trf_SafeInit(3), Trf_IsInitialized(3), Trf_CreateOptions(3), Trf_DeleteOptions(3), Trf_CheckOptions(3), Trf_SetOption(3), Trf_QueryOptions(3), Trf_SeekQueryOptions(3), Trf_WriteProc(3), Trf_CreateCtrlBlock(3), Trf_DeleteCtrlBlock(3), Trf_TransformCharacter(3), Trf_TransformBuffer(3), Trf_FlushTransformation(3), Trf_ClearCtrlBlock(3), Trf_QueryMaxRead(3), Trf_Register(3), Trf_ConverterOptions(3), Trf_MDStart(3), Trf_MDUpdate(3), Trf_MDUpdateBuf(3), Trf_MDFinal(3), Trf_MDCheck(3), Trf_RegisterMessageDigest(3), Trf_LoadLibrary(3), Trf_XorBuffer(3), Trf_ShiftRegister(3), Trf_FlipRegisterShort(3), Trf_FlipRegisterLong(3), Trf_InitStubs(3)
that's the whole friend group right there, go say hi π«Ά
this page came from c2man transform.h, dated 27 August 2002 β yeah, she's an elder icon but she still slays β¨ mwah, go write some options bestie π
π¦ where this page comes from
- debian bookworm: tcl-trf-doc 2.1.4-dfsg3-2.1
- debian trixie: tcl-trf-doc 2.1.4-dfsg3-8
- ubuntu jammy: tcl-trf-doc 2.1.4-dfsg3-2.1build1
- ubuntu noble: tcl-trf-doc 2.1.4-dfsg3-3
- ubuntu questing: tcl-trf-doc 2.1.4-dfsg3-8
- ubuntu resolute: tcl-trf-doc 2.1.4-dfsg3-8build1
- ubuntu stonking: tcl-trf-doc 2.1.4-dfsg3-9build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms