summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-07-05 18:15:41 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-07-05 18:15:41 (GMT)
commit54bafc704cf48ffee9929b86352c127bfc9c024d (patch)
tree7ee4e1ed918eafe78497e6a04d4a32ed2c90a911 /generic/tclInt.h
parent1f35b60c45319b66403716359b926d67f7d9b328 (diff)
downloadtcl-54bafc704cf48ffee9929b86352c127bfc9c024d.zip
tcl-54bafc704cf48ffee9929b86352c127bfc9c024d.tar.gz
tcl-54bafc704cf48ffee9929b86352c127bfc9c024d.tar.bz2
* generic/tclUtil.c: Converted TclFormatInt() into a macro.
* generic/tclInt.decls: [RFE 1194015] * generic/tclInt.h: * generic/tclIntDecls.h: make genstubs * generic/tclStubInit.c:
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index 4219d86..7137443 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -12,7 +12,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.240 2005/06/24 20:07:21 kennykb Exp $
+ * RCS: @(#) $Id: tclInt.h,v 1.241 2005/07/05 18:15:56 dgp Exp $
*/
#ifndef _TCLINT
@@ -2826,6 +2826,18 @@ MODULE_SCOPE void TclBNInitBignumFromLong( mp_int* bignum, long initVal );
/*
*----------------------------------------------------------------
+ * 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 _ANSI_ARGS_((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