The conflict to standard function pow() in Visual Studio 2010 is eliminated. Patch from Max Vasilyev 2:5057/77
This commit is contained in:
@@ -13,6 +13,8 @@ _____________________________________________________________________________
|
|||||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><E7A5AD>: "-" - <20><><EFBFBD>ࠢ<EFBFBD><E0A0A2><EFBFBD><EFBFBD><EFBFBD>, "+" - <20><><EFBFBD><EFBFBD><EFBFBD>, "!" - <20><><EFBFBD><EFBFBD><EFBFBD>⢥<EFBFBD><E2A2A5><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><E7A5AD>: "-" - <20><><EFBFBD>ࠢ<EFBFBD><E0A0A2><EFBFBD><EFBFBD><EFBFBD>, "+" - <20><><EFBFBD><EFBFBD><EFBFBD>, "!" - <20><><EFBFBD><EFBFBD><EFBFBD>⢥<EFBFBD><E2A2A5><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
|
||||||
_____________________________________________________________________________
|
_____________________________________________________________________________
|
||||||
|
|
||||||
|
- <20><><EFBFBD>࠭<EFBFBD><E0A0AD> <20><><EFBFBD>䫨<EFBFBD><E4ABA8> <20><> <20>⠭<EFBFBD><E2A0AD><EFBFBD>⭮<EFBFBD> <20>㭪樥<E3ADAA> pow() <20> Visual Studio 2010.
|
||||||
|
|
||||||
+ <20><><EFBFBD> <20><EFBFBD>ન <20><>䮣<EFBFBD><E4AEA3>䨨 <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD> <20>ᯮ<EFBFBD>짮<EFBFBD><ECA7AE><EFBFBD><EFBFBD> <20><><EFBFBD>쪮 <><E1ABAE>३.
|
+ <20><><EFBFBD> <20><EFBFBD>ન <20><>䮣<EFBFBD><E4AEA3>䨨 <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>६<EFBFBD><E0A5AC><EFBFBD><EFBFBD> <20>ᯮ<EFBFBD>짮<EFBFBD><ECA7AE><EFBFBD><EFBFBD> <20><><EFBFBD>쪮 <><E1ABAE>३.
|
||||||
<20> <20><>४⨢<E0A5AA> SCheckerDefLang <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E1ABA8> <20><><EFBFBD>쪮 <><E1ABAE>३ <20><>१
|
<20> <20><>४⨢<E0A5AA> SCheckerDefLang <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E1ABA8> <20><><EFBFBD>쪮 <><E1ABAE>३ <20><>१
|
||||||
<20><EFBFBD><E0AEA1>. (<28><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2:5025/121.)
|
<20><EFBFBD><E0AEA1>. (<28><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2:5025/121.)
|
||||||
|
@@ -13,6 +13,9 @@ ______________________________________________________________________
|
|||||||
Legend: "-" - bugfix, "+" - new feature, "!" - important modification.
|
Legend: "-" - bugfix, "+" - new feature, "!" - important modification.
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
|
- The conflict to standard function pow() in Visual Studio 2010 is
|
||||||
|
eliminated.
|
||||||
|
|
||||||
+ In the Spell Checking feature simultaneous may use a several
|
+ In the Spell Checking feature simultaneous may use a several
|
||||||
dictionnaries. The token SCheckerDefLang accepts a list of
|
dictionnaries. The token SCheckerDefLang accepts a list of
|
||||||
dictionaries delimited with space. Patch from Semen Panevin,
|
dictionaries delimited with space. Patch from Semen Panevin,
|
||||||
|
@@ -122,7 +122,7 @@ char* glmonth[12] = {
|
|||||||
static char buf[26];
|
static char buf[26];
|
||||||
static char format[] = "%?";
|
static char format[] = "%?";
|
||||||
|
|
||||||
static int pow[5] = { 1, 10, 100, 1000, 10000 };
|
static int gpow[5] = { 1, 10, 100, 1000, 10000 };
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
@@ -155,8 +155,8 @@ static void strfmt(char *str, const char *fmt, ...) {
|
|||||||
ival = va_arg(vp, int);
|
ival = va_arg(vp, int);
|
||||||
bool padding = true;
|
bool padding = true;
|
||||||
while(ilen) {
|
while(ilen) {
|
||||||
ival %= pow[ilen];
|
ival %= gpow[ilen];
|
||||||
int cval = ival / pow[ilen-1];
|
int cval = ival / gpow[ilen-1];
|
||||||
if(cval)
|
if(cval)
|
||||||
padding = false;
|
padding = false;
|
||||||
if(--ilen and padding)
|
if(--ilen and padding)
|
||||||
@@ -167,8 +167,8 @@ static void strfmt(char *str, const char *fmt, ...) {
|
|||||||
else {
|
else {
|
||||||
ival = va_arg(vp, int);
|
ival = va_arg(vp, int);
|
||||||
while(ilen) {
|
while(ilen) {
|
||||||
ival %= pow[ilen--];
|
ival %= gpow[ilen--];
|
||||||
*str++ = (char)('0' + ival / pow[ilen]);
|
*str++ = (char)('0' + ival / gpow[ilen]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user