about summary refs log tree commit diff
path: root/Src/compat.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-05-19 13:10:41 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-05-19 13:10:41 +0000
commit4fec788fa5f6e7c9723e02e3d0b57068ce9785aa (patch)
tree2b4fd7f79ee29b231c77c9bc0bc67b4eed913bef /Src/compat.c
parentea0ddb0fc6073be3d7d289e59b083f564dbd761f (diff)
downloadzsh-4fec788fa5f6e7c9723e02e3d0b57068ce9785aa.tar.gz
zsh-4fec788fa5f6e7c9723e02e3d0b57068ce9785aa.tar.xz
zsh-4fec788fa5f6e7c9723e02e3d0b57068ce9785aa.zip
Diffstat (limited to 'Src/compat.c')
-rw-r--r--Src/compat.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/Src/compat.c b/Src/compat.c
index 53ab6b7a3..7af984799 100644
--- a/Src/compat.c
+++ b/Src/compat.c
@@ -304,3 +304,21 @@ zchdir(char *dir)
     return currdir == -2 ? -1 : -2;
 #endif
 }
+
+/*
+ * How to print out a 64 bit integer.  This isn't needed (1) if longs
+ * are 64 bit, since ordinary %ld will work (2) if we couldn't find a
+ * 64 bit type anyway.
+ */
+/**/
+#ifdef ZSH_64_BIT_TYPE
+/**/
+char *
+output64(zlong val)
+{
+    static char llbuf[DIGBUFSIZE];
+    convbase(llbuf, val, 0);
+    return llbuf;
+}
+/**/
+#endif /* ZSH_64_BIT_TYPE */