mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 18:23:21 +00:00
[GENDIB]
- Generate ansi style indentation - Fix signed/unsigned MSVC warnings in generated code svn path=/trunk/; revision=55998
This commit is contained in:
parent
10dabf2876
commit
e3e2689cbf
1 changed files with 8 additions and 14 deletions
|
@ -177,14 +177,11 @@ Output(FILE *Out, const char *Fmt, ...)
|
||||||
unsigned n;
|
unsigned n;
|
||||||
va_list Args;
|
va_list Args;
|
||||||
|
|
||||||
if (NULL != strchr(Fmt, '{') && 0 != Indent)
|
if (strchr(Fmt, '}'))
|
||||||
{
|
{
|
||||||
Indent += 2;
|
Indent -= 4;
|
||||||
}
|
|
||||||
else if (NULL != strchr(Fmt, '}'))
|
|
||||||
{
|
|
||||||
Indent -= 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AtBOL)
|
if (AtBOL)
|
||||||
{
|
{
|
||||||
for (n = 0; n < Indent; n++)
|
for (n = 0; n < Indent; n++)
|
||||||
|
@ -198,14 +195,11 @@ Output(FILE *Out, const char *Fmt, ...)
|
||||||
vfprintf(Out, Fmt, Args);
|
vfprintf(Out, Fmt, Args);
|
||||||
va_end(Args);
|
va_end(Args);
|
||||||
|
|
||||||
if (NULL != strchr(Fmt, '{'))
|
if (strchr(Fmt, '{'))
|
||||||
{
|
{
|
||||||
Indent += 2;
|
Indent += 4;
|
||||||
}
|
|
||||||
else if (NULL != strchr(Fmt, '}') && 0 != Indent)
|
|
||||||
{
|
|
||||||
Indent -= 2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AtBOL = '\n' == Fmt[strlen(Fmt) - 1];
|
AtBOL = '\n' == Fmt[strlen(Fmt) - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -460,7 +454,7 @@ CreateCounts(FILE *Out, unsigned Bpp)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Output(Out, "LeftCount = (ULONG_PTR) DestBase & 0x03;\n");
|
Output(Out, "LeftCount = (ULONG_PTR) DestBase & 0x03;\n");
|
||||||
Output(Out, "if (BltInfo->DestRect.right - BltInfo->DestRect.left < "
|
Output(Out, "if ((ULONG)(BltInfo->DestRect.right - BltInfo->DestRect.left) < "
|
||||||
"LeftCount)\n");
|
"LeftCount)\n");
|
||||||
Output(Out, "{\n");
|
Output(Out, "{\n");
|
||||||
Output(Out, "LeftCount = BltInfo->DestRect.right - "
|
Output(Out, "LeftCount = BltInfo->DestRect.right - "
|
||||||
|
@ -800,7 +794,7 @@ CreatePrimitive(FILE *Out, unsigned Bpp, PROPINFO RopInfo)
|
||||||
Output(Out, "ULONG i;\n");
|
Output(Out, "ULONG i;\n");
|
||||||
if (RopInfo->UsesPattern)
|
if (RopInfo->UsesPattern)
|
||||||
{
|
{
|
||||||
Output(Out, "ULONG PatternX =0, PatternY = 0, BasePatternX = 0;\n");
|
Output(Out, "LONG PatternX =0, PatternY = 0, BasePatternX = 0;\n");
|
||||||
}
|
}
|
||||||
First = 1;
|
First = 1;
|
||||||
if (RopInfo->UsesSource)
|
if (RopInfo->UsesSource)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue