#define G(r,i,a,b,c,d) \
a += b + m[sigma[2*i+0]]; d ^= a; d = rotr32(d, 16); c += d; b ^= c; b = rotr32(b, 12); \
a += b + m[sigma[2*i+1]]; d ^= a; d = rotr32(d, 8); c += d; b ^= c; b = rotr32(b, 7); \
#define R(r) \
G(r,0,v[ 0],v[ 4],v[ 8],v[12]); \
G(r,1,v[ 1],v[ 5],v[ 9],v[13]); \
G(r,2,v[ 2],v[ 6],v[10],v[14]); \
G(r,3,v[ 3],v[ 7],v[11],v[15]); \
G(r,4,v[ 0],v[ 5],v[10],v[15]); \
G(r,5,v[ 1],v[ 6],v[11],v[12]); \
G(r,6,v[ 2],v[ 7],v[ 8],v[13]); \
G(r,7,v[ 3],v[ 4],v[ 9],v[14]); \
{
after:
#define G(r,i,a,b,c,d) \
a += b + m[sigma[2*i+0]]; d ^= a; d = rotr32(d, 16); c += d; b ^= c; b = rotr32(b, 12); \
a += b + m[sigma[2*i+1]]; d ^= a; d = rotr32(d, 8); c += d; b ^= c; b = rotr32(b, 7); \
#define R(r) \
G(r,0,v[ 0],v[ 4],v[ 8],v[12]); \
G(r,1,v[ 1],v[ 5],v[ 9],v[13]); \
G(r,2,v[ 2],v[ 6],v[10],v[14]); \
G(r,3,v[ 3],v[ 7],v[11],v[15]); \
G(r,4,v[ 0],v[ 5],v[10],v[15]); \
G(r,5,v[ 1],v[ 6],v[11],v[12]); \
G(r,6,v[ 2],v[ 7],v[ 8],v[13]); \
G(r,7,v[ 3],v[ 4],v[ 9],v[14]); \
{
fix for ver 3.4.16:
file: src\ASFormatter.cpp
find "if (currentLine.length() == 0)" in function
bool ASFormatter::getNextLine(bool emptyLineWasDeleted /*false*/)
if (currentLine.length() == 0)
{
isInContinuedPreProc = false;
currentLine = std::string(" "); // a null is inserted if this is not done
}
change to:
if (currentLine.length() == 0)
{
if (!isInComment && previousNonWSChar == '\\')
{
isInPreprocessor = true;
isInPreprocessorDefineDef = true;
return false;
}
isInContinuedPreProc = false;
currentLine = std::string(" "); // a null is inserted if this is not done
}
Hi, could you please give a bit more context here (options)? I am not able to replicate this.
Ignore my last message, it happens when defined within a block.
Should be fixed in 3.5
use the bat above formatting the following code will crash in 3.5
simple fix
change to
I have applied this to 3.5.1. In the original version I have not encountered any problems so it was not clear why the other status variables should be changed. In case you use Win32 astyle there is a compiled version here:
https://sourceforge.net/projects/astyle/files/astyle/beta/
I haven't studied the cause of this problem carefully. thanks to the author. This software is very useful.