summaryrefslogtreecommitdiffstats
path: root/generic/tclCkalloc.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-08-07 20:57:08 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-08-07 20:57:08 (GMT)
commit0fe2d45ae44323638f143bf320c77a5cb6df2a01 (patch)
tree01529af3ee161f7c70fd8f14ba581054bd52155c /generic/tclCkalloc.c
parent00acd83312b7bcc144212b7bd1a47436719b0d2c (diff)
downloadtcl-0fe2d45ae44323638f143bf320c77a5cb6df2a01.zip
tcl-0fe2d45ae44323638f143bf320c77a5cb6df2a01.tar.gz
tcl-0fe2d45ae44323638f143bf320c77a5cb6df2a01.tar.bz2
Minor changes to improve style (C89 declarations, consistent indentation,
clarification of #endifs, reduction of unnecessary casts, use of array syntax for reading array elements, etc.)
Diffstat (limited to 'generic/tclCkalloc.c')
-rw-r--r--generic/tclCkalloc.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/generic/tclCkalloc.c b/generic/tclCkalloc.c
index 6443975..ab977cb 100644
--- a/generic/tclCkalloc.c
+++ b/generic/tclCkalloc.c
@@ -170,11 +170,15 @@ TclInitDbCkalloc(void)
*/
int
-TclDumpMemoryInfo(ClientData clientData, int flags)
+TclDumpMemoryInfo(
+ ClientData clientData,
+ int flags)
{
char buf[1024];
- if (clientData == NULL) { return 0; }
+ if (clientData == NULL) {
+ return 0;
+ }
sprintf(buf,
"total mallocs %10d\n"
"total frees %10d\n"
@@ -1255,7 +1259,9 @@ Tcl_ValidateAllMemory(
}
int
-TclDumpMemoryInfo(ClientData clientData, int flags)
+TclDumpMemoryInfo(
+ ClientData clientData,
+ int flags)
{
return 1;
}