Browse Source

Re-generated the parser bindings.

pull/208/head
triton 11 years ago
parent
commit
f95d013651
  1. 8
      src/CppParser/Bindings/CLI/AST.cpp
  2. 2
      src/CppParser/Bindings/CLI/AST.h
  3. 1
      src/CppParser/Bindings/CLI/Sources.h
  4. 635
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs
  5. 84
      src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Sources.cs
  6. 39
      src/CppParser/Bindings/CSharp/i686-pc-win32/Sources.cs

8
src/CppParser/Bindings/CLI/AST.cpp

@ -2591,14 +2591,14 @@ CppSharp::Parser::AST::PreprocessedEntity::PreprocessedEntity() @@ -2591,14 +2591,14 @@ CppSharp::Parser::AST::PreprocessedEntity::PreprocessedEntity()
NativePtr = new ::CppSharp::CppParser::AST::PreprocessedEntity();
}
CppSharp::Parser::AST::MacroLocation CppSharp::Parser::AST::PreprocessedEntity::Location::get()
CppSharp::Parser::AST::MacroLocation CppSharp::Parser::AST::PreprocessedEntity::MacroLocation::get()
{
return (CppSharp::Parser::AST::MacroLocation)((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->Location;
return (CppSharp::Parser::AST::MacroLocation)((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->MacroLocation;
}
void CppSharp::Parser::AST::PreprocessedEntity::Location::set(CppSharp::Parser::AST::MacroLocation value)
void CppSharp::Parser::AST::PreprocessedEntity::MacroLocation::set(CppSharp::Parser::AST::MacroLocation value)
{
((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->Location = (::CppSharp::CppParser::AST::MacroLocation)value;
((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->MacroLocation = (::CppSharp::CppParser::AST::MacroLocation)value;
}
CppSharp::Parser::AST::MacroDefinition::MacroDefinition(::CppSharp::CppParser::AST::MacroDefinition* native)

2
src/CppParser/Bindings/CLI/AST.h

@ -1753,7 +1753,7 @@ namespace CppSharp @@ -1753,7 +1753,7 @@ namespace CppSharp
PreprocessedEntity(System::IntPtr native);
PreprocessedEntity();
property CppSharp::Parser::AST::MacroLocation Location
property CppSharp::Parser::AST::MacroLocation MacroLocation
{
CppSharp::Parser::AST::MacroLocation get();
void set(CppSharp::Parser::AST::MacroLocation);

1
src/CppParser/Bindings/CLI/Sources.h

@ -8,7 +8,6 @@ namespace CppSharp @@ -8,7 +8,6 @@ namespace CppSharp
namespace Parser
{
value struct SourceLocation;
value struct SourceManager;
}
}

635
src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/AST.cs

File diff suppressed because it is too large Load Diff

84
src/CppParser/Bindings/CSharp/i686-apple-darwin12.4.0/Sources.cs

@ -0,0 +1,84 @@ @@ -0,0 +1,84 @@
//----------------------------------------------------------------------------
// This is autogenerated code by CppSharp.
// Do not edit this file or all your changes will be lost after re-generation.
//----------------------------------------------------------------------------
using System;
using System.Runtime.InteropServices;
using System.Security;
namespace CppSharp
{
namespace Parser
{
public unsafe partial struct SourceLocation
{
[StructLayout(LayoutKind.Explicit, Size = 4)]
public struct Internal
{
[FieldOffset(0)]
public uint ID;
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser14SourceLocationC2Ev")]
internal static extern void ctor_0(global::System.IntPtr instance);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser14SourceLocationC2Ej")]
internal static extern void ctor_1(global::System.IntPtr instance, uint ID);
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="_ZN8CppSharp9CppParser14SourceLocationC2ERKS1_")]
internal static extern void cctor_2(global::System.IntPtr instance, global::System.IntPtr _0);
}
internal SourceLocation(SourceLocation.Internal* native)
: this(new global::System.IntPtr(native))
{
}
internal SourceLocation(SourceLocation.Internal native)
: this(&native)
{
}
public SourceLocation(global::System.IntPtr native, bool isInternalImpl = false) : this()
{
var __ptr = (Internal*)native.ToPointer();
ID = __ptr->ID;
}
internal Internal ToInternal()
{
var __native = new CppSharp.Parser.SourceLocation.Internal();
var __ptr = &__native;
__native.ID = ID;
return __native;
}
internal void FromInternal(Internal* native)
{
var __ptr = native;
ID = __ptr->ID;
}
public SourceLocation(uint ID)
: this()
{
var __fixedInstance = ToInternal();
Internal.ctor_1(new global::System.IntPtr(&__fixedInstance), ID);
FromInternal(&__fixedInstance);
}
public uint ID
{
get;
set
;
}
}
}
}

39
src/CppParser/Bindings/CSharp/i686-pc-win32/Sources.cs

@ -80,44 +80,5 @@ namespace CppSharp @@ -80,44 +80,5 @@ namespace CppSharp
;
}
}
public unsafe partial struct SourceManager
{
[StructLayout(LayoutKind.Explicit, Size = 1)]
public struct Internal
{
[SuppressUnmanagedCodeSecurity]
[DllImport("CppSharp.CppParser.dll", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.ThisCall,
EntryPoint="??0SourceManager@CppParser@CppSharp@@QAE@ABU012@@Z")]
internal static extern global::System.IntPtr cctor_1(global::System.IntPtr instance, global::System.IntPtr _0);
}
internal SourceManager(SourceManager.Internal* native)
: this(new global::System.IntPtr(native))
{
}
internal SourceManager(SourceManager.Internal native)
: this(&native)
{
}
public SourceManager(global::System.IntPtr native, bool isInternalImpl = false) : this()
{
var __ptr = (Internal*)native.ToPointer();
}
internal Internal ToInternal()
{
var __native = new CppSharp.Parser.SourceManager.Internal();
var __ptr = &__native;
return __native;
}
internal void FromInternal(Internal* native)
{
var __ptr = native;
}
}
}
}

Loading…
Cancel
Save