Browse Source

Added a constructor to ParserTargetInfo and initialize everything to zero.

pull/553/head
triton 10 years ago
parent
commit
9c2237ae01
  1. 47
      src/CppParser/Target.cpp
  2. 2
      src/CppParser/Target.h

47
src/CppParser/Target.cpp

@ -0,0 +1,47 @@ @@ -0,0 +1,47 @@
/************************************************************************
*
* CppSharp
* Licensed under the simplified BSD license. All rights reserved.
*
************************************************************************/
#pragma once
#include "Target.h"
namespace CppSharp { namespace CppParser {
ParserTargetInfo::ParserTargetInfo() :
BoolAlign(0),
BoolWidth(0),
CharAlign(0),
CharWidth(0),
Char16Align(0),
Char16Width(0),
Char32Align(0),
Char32Width(0),
HalfAlign(0),
HalfWidth(0),
FloatAlign(0),
FloatWidth(0),
DoubleAlign(0),
DoubleWidth(0),
ShortAlign(0),
ShortWidth(0),
IntAlign(0),
IntWidth(0),
IntMaxTWidth(0),
LongAlign(0),
LongWidth(0),
LongDoubleAlign(0),
LongDoubleWidth(0),
LongLongAlign(0),
LongLongWidth(0),
PointerAlign(0),
PointerWidth(0),
WCharAlign(0),
WCharWidth(0)
{
}
} }

2
src/CppParser/Target.h

@ -28,6 +28,8 @@ enum class ParserIntType @@ -28,6 +28,8 @@ enum class ParserIntType
struct CS_API ParserTargetInfo
{
ParserTargetInfo();
STRING(ABI);
ParserIntType Char16Type;

Loading…
Cancel
Save