Index: generic/nsfProfile.c =================================================================== diff -u -r880487204ff2da18d2d25ebd727b9b4bbda86c8e -r6b1a83846ee9bd80b7ce10d88cc427bdb5585819 --- generic/nsfProfile.c (.../nsfProfile.c) (revision 880487204ff2da18d2d25ebd727b9b4bbda86c8e) +++ generic/nsfProfile.c (.../nsfProfile.c) (revision 6b1a83846ee9bd80b7ce10d88cc427bdb5585819) @@ -1,9 +1,9 @@ -/* +/* * nsfProfile.c -- - * - * Profiling information printout for Next Scripting Framework. + * + * Profiling information printout for Next Scripting Framework. * For profiling infos NSF_PROFILE must be configured. - * + * * Copyright (C) 2010-2013 Gustaf Neumann * * Permission is hereby granted, free of charge, to any person obtaining a @@ -126,7 +126,7 @@ if (cscPtrTop) { NsfClass *cl = cscPtrTop->cl; NsfObject *obj = cscPtrTop->self; - + Tcl_DStringAppend(&methodKey, " ", 1); Tcl_DStringAppend(&methodKey, cl ? ObjStr(cl->object.cmdName) : ObjStr(obj->cmdName), -1); Tcl_DStringAppend(&methodKey, " ", 1); @@ -197,7 +197,7 @@ Tcl_HashEntry *hPtr; assert(table); - for (hPtr = Tcl_FirstHashEntry(table, &hSrch); hPtr; + for (hPtr = Tcl_FirstHashEntry(table, &hSrch); hPtr; hPtr = Tcl_NextHashEntry(&hSrch)) { NsfProfileData *value = (NsfProfileData *) Tcl_GetHashValue(hPtr); ckfree((char *) value); @@ -228,7 +228,7 @@ NsfProfileClearTable(&profilePtr->objectData); NsfProfileClearTable(&profilePtr->methodData); NsfProfileClearTable(&profilePtr->procData); - + gettimeofday(&trt, NULL); profilePtr->startSec = trt.tv_sec; profilePtr->startUSec = trt.tv_usec; @@ -257,7 +257,7 @@ Tcl_HashEntry *hPtr; assert(table); - for (hPtr = Tcl_FirstHashEntry(table, &hSrch); hPtr; + for (hPtr = Tcl_FirstHashEntry(table, &hSrch); hPtr; hPtr = Tcl_NextHashEntry(&hSrch)) { NsfProfileData *value = (NsfProfileData *) Tcl_GetHashValue(hPtr); char *key = Tcl_GetHashKey(table, hPtr); @@ -323,7 +323,7 @@ * *---------------------------------------------------------------------- */ -void +void NsfProfileInit(Tcl_Interp *interp) { NsfProfile *profilePtr = &RUNTIME_STATE(interp)->profile; struct timeval trt; @@ -353,7 +353,7 @@ * *---------------------------------------------------------------------- */ -void +void NsfProfileFree(Tcl_Interp *interp) { NsfProfile *profilePtr = &RUNTIME_STATE(interp)->profile;