Index: generic/nsfProfile.c =================================================================== diff -u -r7495af656ca04a32826ecb0b6e207f886eaaa7f8 -r6b1a83846ee9bd80b7ce10d88cc427bdb5585819 --- generic/nsfProfile.c (.../nsfProfile.c) (revision 7495af656ca04a32826ecb0b6e207f886eaaa7f8) +++ generic/nsfProfile.c (.../nsfProfile.c) (revision 6b1a83846ee9bd80b7ce10d88cc427bdb5585819) @@ -1,11 +1,11 @@ -/* +/* * 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-2012 Gustaf Neumann * + * Copyright (C) 2010-2013 Gustaf Neumann + * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation @@ -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;