summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authorhobbs <hobbs>2010-11-30 18:17:26 (GMT)
committerhobbs <hobbs>2010-11-30 18:17:26 (GMT)
commit79fc377e16fe1fb9074418c7fa5a4e06b9da28f4 (patch)
tree2e74b64a52ceabd97aefaa960af88dffe3bc4c09 /generic/tclInt.h
parent7c9aebb4cdd638855ec47506b5dbe8d5b425c577 (diff)
downloadtcl-79fc377e16fe1fb9074418c7fa5a4e06b9da28f4.zip
tcl-79fc377e16fe1fb9074418c7fa5a4e06b9da28f4.tar.gz
tcl-79fc377e16fe1fb9074418c7fa5a4e06b9da28f4.tar.bz2
* generic/tclInt.decls, generic/tclInt.h, generic/tclIntDecls.h:
* generic/tclStubInit.c: TclFormatInt restored at slot 24 * generic/tclUtil.c (TclFormatInt): restore TclFormatInt func from 2005-07-05 macro-ization. Benchmarks indicate it is faster, as a key int->string routine (e.g. int-indexed arrays).
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 8c5d863..2d36154 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -15,7 +15,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclInt.h,v 1.487 2010/11/28 23:20:11 kennykb Exp $
+ * RCS: @(#) $Id: tclInt.h,v 1.488 2010/11/30 18:17:26 hobbs Exp $
*/
#ifndef _TCLINT
@@ -4221,18 +4221,6 @@ MODULE_SCOPE Tcl_PackageInitProc Procbodytest_SafeInit;
/*
*----------------------------------------------------------------
- * Macro used by the Tcl core to write the string rep of a long integer to a
- * character buffer. The ANSI C "prototype" for this macro is:
- *
- * MODULE_SCOPE int TclFormatInt(char *buf, long n);
- *----------------------------------------------------------------
- */
-
-#define TclFormatInt(buf, n) \
- sprintf((buf), "%ld", (long)(n))
-
-/*
- *----------------------------------------------------------------
* Macros used by the Tcl core to set a Tcl_Obj's numeric representation
* avoiding the corresponding function calls in time critical parts of the
* core. They should only be called on unshared objects. The ANSI C