Overview
| Artifact ID: | 724487369bd893473c3e6cf0c3852dd82ffb637985ce00a6850d26070f2a07b4 |
|---|---|
| Ticket: | 8fb059e8ec2344cbc4a3b537ae752b13f310920b
macro for sentinels |
| User & Date: | jan.nijtmans on 2024-04-25 09:55:03 |
Changes
- icomment:
Actually, it was changed from (void *)NULL to (char *)NULL. The reason for this is just readability: It is used in functions like Tcl_SetErrorCode(), Tcl_AppendResult(), and Tcl_AppendStringsToObj(), which expect strings in all its elements. Using (char *)NULL makes it immediately clear that the last sentinel argument is a string too. Using TCL_SENTINEL would hide that information, I don't think we want that. In functions like mp_init_multi() sentinels are used as well, but there the arguments are not strings. Therefore (void *)NULL is kept there: It could have been changed to (mp_int *)NULL, but that looks more ugly. Just my 2c
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"