[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kjsembed/kjsembed
From: David Faure <faure () kde ! org>
Date: 2009-03-25 23:54:02
Message-ID: 1238025242.976083.5209.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 944716 by dfaure:
remove custom itoa implementation; this was fishy, and if it was really for systems \
without itoa then this is what libkdefakes is for.
M +0 -29 kjseglobal.cpp
M +0 -3 kjseglobal.h
--- trunk/KDE/kdelibs/kjsembed/kjsembed/kjseglobal.cpp #944715:944716
@@ -40,35 +40,6 @@
static QTextStream *kjsembed_in = 0L;
static QTextStream *kjsembed_out = 0L;
-#if !defined(_WIN32) && !defined(_WIN64)
-char *itoa(int num, char *str, int /*radix*/)
-{
- int k;
- char c, flag, *ostr;
-
- if (num < 0) {
- num = -num;
- *str++ = '-';
- }
- k = 10000;
- ostr = str;
- flag = 0;
- while (k) {
- c = num / k;
- if (c || k == 1 || flag) {
- num %= k;
- c += '0';
- *str++ = c;
- flag = 1;
- }
- k /= 10;
- }
- *str = '\0';
- return ostr;
-}
-
-#endif
-
#if defined(_WIN32) || defined(_WIN64)
static QFile win32_stdin;
static QFile win32_stdout;
--- trunk/KDE/kdelibs/kjsembed/kjsembed/kjseglobal.h #944715:944716
@@ -41,10 +41,7 @@
KJSEMBED_EXPORT void RedirectIOToConsole();
-#ifdef HAVE_ITOA
-char *itoa(int num, char *str, int radix = 10);
#endif
-#endif
#include <QtCore/QTextStream>
namespace KJSEmbed {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic