diff options
| author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-07 20:57:08 (GMT) |
|---|---|---|
| committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-07 20:57:08 (GMT) |
| commit | 031d307b32df1730b365093fd86beef232e283a6 (patch) | |
| tree | 01529af3ee161f7c70fd8f14ba581054bd52155c /generic/tclCkalloc.c | |
| parent | 74297e0bdefa921c28c207e172a89aab28389b9c (diff) | |
| download | tcl-031d307b32df1730b365093fd86beef232e283a6.zip tcl-031d307b32df1730b365093fd86beef232e283a6.tar.gz tcl-031d307b32df1730b365093fd86beef232e283a6.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.c | 12 |
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; } |
