Artifacts Associated With Ticket 1184069
Ticket change [f0060bf354] (rid 109103) by dkf on 2005-04-15 23:14:26:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
It would be really nice (especially for error generation) if we could have a function that let us write strings into the interpreter result as a replacement for the old trick of: sprintf(interp->result, "pattern") Notes on implementation: Need to use vsnprintf internally to work out the required size of buffer before allocating it and feeding it through vsprintf (the trick done in glib is not portable enough without this).
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dkf"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "New API function: Tcl_PrintfResult"
- type initialized to: "RFE"
Ticket change [73424019cb] (rid 105015) by jenglish on 2005-05-04 04:54:49:
- icomment:
Logged In: YES user_id=68433 vsnprintf() is new in C99, it's not part of C89. Since C99 still isn't widely supported (and the core hasn't even been fully update to C89 yet), we should tread carefully when approaching C9X-isms.
- login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"
- icomment:
Ticket change [73dc469eda] (rid 105105) by dkf on 2005-05-04 06:07:11:
- icomment:
Logged In: YES user_id=79902 Yuck. The problem is that only (v)snprintf() returns the number of characters that would have been written instead of the number of characters actually written. Without it, sizing the buffer for vsprintf() is tricky/impossible.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [81297eb243] (rid 116992) by dgp on 2005-11-01 23:54:39:
- icomment:
Logged In: YES user_id=80530 See TclObjPrintf() and TclFormatToErrorInfo() on the HEAD.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [b600da8692] (rid 125348) by msofer on 2005-11-26 17:41:04:
- assignee changed to: "dkf"
Ticket change [4e51c6fa16] (rid 127208) by dkf on 2006-08-09 17:24:52:
- assignee changed to: "dgp"
Ticket change [7311b5507b] (rid 104981) by dgp on 2006-08-09 20:53:27:
- icomment:
Logged In: YES user_id=80530 See TIP 270. In terms of the routines proposed there: objPtr = Tcl_NewObj(); Tcl_ObjPrintf(NULL, objPtr, format, arg, arg); Tcl_SetObjResult(interp, objPtr);
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [121ec6ad6b] (rid 95259) by dgp on 2006-11-03 02:40:55:
- icomment:
Logged In: YES user_id=80530 After some revisions to TIP 270, this request is satisfied in terms of the proposed routines by: Tcl_SetObjResult(interp, Tcl_ObjPrintf(format, arg, arg)); - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [c1c6fc93e7] (rid 111377) by dgp on 2006-11-14 23:33:49:
- closedate changed to: "2006-11-14T16:33:49"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 TIP 270 accepted for 8.5a6.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "dgp"