diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-05-19 13:10:41 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-05-19 13:10:41 +0000 |
commit | 4fec788fa5f6e7c9723e02e3d0b57068ce9785aa (patch) | |
tree | 2b4fd7f79ee29b231c77c9bc0bc67b4eed913bef /Src/compat.c | |
parent | ea0ddb0fc6073be3d7d289e59b083f564dbd761f (diff) | |
download | zsh-4fec788fa5f6e7c9723e02e3d0b57068ce9785aa.tar.gz zsh-4fec788fa5f6e7c9723e02e3d0b57068ce9785aa.tar.xz zsh-4fec788fa5f6e7c9723e02e3d0b57068ce9785aa.zip |
zsh-3.1.5-pws-19 dot-zsh-3.1.5-pws-19-199905271502
Diffstat (limited to 'Src/compat.c')
-rw-r--r-- | Src/compat.c | 18 |
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 */ |