diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2024-03-19 14:56:45 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2024-03-19 14:56:45 (GMT) |
commit | 16b3adf662893e6db67e82fb1df01063e1315548 (patch) | |
tree | bcfa89065ecea0a374bed505c235b77cba3db0a3 /generic/tclIndexObj.c | |
parent | 7bf9d79d60378e206b741af48b8cf6c55451557e (diff) | |
download | tcl-16b3adf662893e6db67e82fb1df01063e1315548.zip tcl-16b3adf662893e6db67e82fb1df01063e1315548.tar.gz tcl-16b3adf662893e6db67e82fb1df01063e1315548.tar.bz2 |
Fix indentation/brace usage style issues
Diffstat (limited to 'generic/tclIndexObj.c')
-rw-r--r-- | generic/tclIndexObj.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c index e76cca3..438df72 100644 --- a/generic/tclIndexObj.c +++ b/generic/tclIndexObj.c @@ -203,28 +203,28 @@ Tcl_GetIndexFromObjStruct( if (offset < (Tcl_Size)sizeof(char *)) { if (interp) { - Tcl_SetObjResult(interp, - Tcl_ObjPrintf("Invalid %s value %" TCL_SIZE_MODIFIER "d.", - "struct offset", offset)); + Tcl_SetObjResult(interp, Tcl_ObjPrintf( + "Invalid %s value %" TCL_SIZE_MODIFIER "d.", + "struct offset", offset)); } - return TCL_ERROR; + return TCL_ERROR; } /* * See if there is a valid cached result from a previous lookup. */ if (objPtr && !(flags & TCL_INDEX_TEMP_TABLE)) { - irPtr = TclFetchInternalRep(objPtr, &tclIndexType); - if (irPtr) { - indexRep = (IndexRep *)irPtr->twoPtrValue.ptr1; - if ((indexRep->tablePtr == tablePtr) - && (indexRep->offset == offset) - && (indexRep->index != TCL_INDEX_NONE)) { - index = indexRep->index; - goto uncachedDone; + irPtr = TclFetchInternalRep(objPtr, &tclIndexType); + if (irPtr) { + indexRep = (IndexRep *)irPtr->twoPtrValue.ptr1; + if ((indexRep->tablePtr == tablePtr) + && (indexRep->offset == offset) + && (indexRep->index != TCL_INDEX_NONE)) { + index = indexRep->index; + goto uncachedDone; + } } } - } /* * Lookup the value of the object in the table. Accept unique |