Skip to content

Commit

Permalink
Regenerate SWIG bindings
Browse files Browse the repository at this point in the history
Update of auto-generated code only; no manual changes.

Reran "make" in directory mecab/swig, using current SWIG version 4.0.2.
  • Loading branch information
mjansche committed Aug 12, 2020
1 parent 75fc31b commit 0c24f73
Show file tree
Hide file tree
Showing 24 changed files with 3,577 additions and 4,273 deletions.
49 changes: 26 additions & 23 deletions mecab/csharp/DictionaryInfo.cs
Original file line number Diff line number Diff line change
@@ -1,43 +1,46 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 4.0.2
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------

namespace MeCab {

using System;
using System.Runtime.InteropServices;

public class DictionaryInfo : IDisposable {
private HandleRef swigCPtr;
public class DictionaryInfo : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;

internal DictionaryInfo(IntPtr cPtr, bool cMemoryOwn) {
internal DictionaryInfo(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}

internal static HandleRef getCPtr(DictionaryInfo obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DictionaryInfo obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}

~DictionaryInfo() {
Dispose();
Dispose(false);
}

public void Dispose() {
Dispose(true);
global::System.GC.SuppressFinalize(this);
}

public virtual void Dispose() {
protected virtual void Dispose(bool disposing) {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
MeCabPINVOKE.delete_DictionaryInfo(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}

Expand Down Expand Up @@ -99,8 +102,8 @@ public ushort version {

public DictionaryInfo next {
get {
IntPtr cPtr = MeCabPINVOKE.DictionaryInfo_next_get(swigCPtr);
DictionaryInfo ret = (cPtr == IntPtr.Zero) ? null : new DictionaryInfo(cPtr, false);
global::System.IntPtr cPtr = MeCabPINVOKE.DictionaryInfo_next_get(swigCPtr);
DictionaryInfo ret = (cPtr == global::System.IntPtr.Zero) ? null : new DictionaryInfo(cPtr, false);
if (MeCabPINVOKE.SWIGPendingException.Pending) throw MeCabPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
Expand Down
65 changes: 34 additions & 31 deletions mecab/csharp/Lattice.cs
Original file line number Diff line number Diff line change
@@ -1,43 +1,46 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 4.0.2
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------

namespace MeCab {

using System;
using System.Runtime.InteropServices;

public class Lattice : IDisposable {
private HandleRef swigCPtr;
public class Lattice : global::System.IDisposable {
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
protected bool swigCMemOwn;

internal Lattice(IntPtr cPtr, bool cMemoryOwn) {
internal Lattice(global::System.IntPtr cPtr, bool cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = new HandleRef(this, cPtr);
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
}

internal static HandleRef getCPtr(Lattice obj) {
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Lattice obj) {
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}

~Lattice() {
Dispose();
Dispose(false);
}

public void Dispose() {
Dispose(true);
global::System.GC.SuppressFinalize(this);
}

public virtual void Dispose() {
protected virtual void Dispose(bool disposing) {
lock(this) {
if (swigCPtr.Handle != IntPtr.Zero) {
if (swigCPtr.Handle != global::System.IntPtr.Zero) {
if (swigCMemOwn) {
swigCMemOwn = false;
MeCabPINVOKE.delete_Lattice(swigCPtr);
}
swigCPtr = new HandleRef(null, IntPtr.Zero);
swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
GC.SuppressFinalize(this);
}
}

Expand All @@ -53,29 +56,29 @@ public virtual bool is_available() {
}

public virtual Node bos_node() {
IntPtr cPtr = MeCabPINVOKE.Lattice_bos_node(swigCPtr);
Node ret = (cPtr == IntPtr.Zero) ? null : new Node(cPtr, false);
global::System.IntPtr cPtr = MeCabPINVOKE.Lattice_bos_node(swigCPtr);
Node ret = (cPtr == global::System.IntPtr.Zero) ? null : new Node(cPtr, false);
if (MeCabPINVOKE.SWIGPendingException.Pending) throw MeCabPINVOKE.SWIGPendingException.Retrieve();
return ret;
}

public virtual Node eos_node() {
IntPtr cPtr = MeCabPINVOKE.Lattice_eos_node(swigCPtr);
Node ret = (cPtr == IntPtr.Zero) ? null : new Node(cPtr, false);
global::System.IntPtr cPtr = MeCabPINVOKE.Lattice_eos_node(swigCPtr);
Node ret = (cPtr == global::System.IntPtr.Zero) ? null : new Node(cPtr, false);
if (MeCabPINVOKE.SWIGPendingException.Pending) throw MeCabPINVOKE.SWIGPendingException.Retrieve();
return ret;
}

public virtual Node end_nodes(uint pos) {
IntPtr cPtr = MeCabPINVOKE.Lattice_end_nodes(swigCPtr, pos);
Node ret = (cPtr == IntPtr.Zero) ? null : new Node(cPtr, false);
global::System.IntPtr cPtr = MeCabPINVOKE.Lattice_end_nodes(swigCPtr, pos);
Node ret = (cPtr == global::System.IntPtr.Zero) ? null : new Node(cPtr, false);
if (MeCabPINVOKE.SWIGPendingException.Pending) throw MeCabPINVOKE.SWIGPendingException.Retrieve();
return ret;
}

public virtual Node begin_nodes(uint pos) {
IntPtr cPtr = MeCabPINVOKE.Lattice_begin_nodes(swigCPtr, pos);
Node ret = (cPtr == IntPtr.Zero) ? null : new Node(cPtr, false);
global::System.IntPtr cPtr = MeCabPINVOKE.Lattice_begin_nodes(swigCPtr, pos);
Node ret = (cPtr == global::System.IntPtr.Zero) ? null : new Node(cPtr, false);
if (MeCabPINVOKE.SWIGPendingException.Pending) throw MeCabPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
Expand Down Expand Up @@ -148,8 +151,8 @@ public virtual void remove_request_type(int request_type) {
}

public virtual Node newNode() {
IntPtr cPtr = MeCabPINVOKE.Lattice_newNode(swigCPtr);
Node ret = (cPtr == IntPtr.Zero) ? null : new Node(cPtr, false);
global::System.IntPtr cPtr = MeCabPINVOKE.Lattice_newNode(swigCPtr);
Node ret = (cPtr == global::System.IntPtr.Zero) ? null : new Node(cPtr, false);
if (MeCabPINVOKE.SWIGPendingException.Pending) throw MeCabPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
Expand Down
19 changes: 9 additions & 10 deletions mecab/csharp/MeCab.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
//------------------------------------------------------------------------------
// <auto-generated />
//
// This file was automatically generated by SWIG (http://www.swig.org).
// Version 4.0.2
//
// Do not make changes to this file unless you know what you are doing--modify
// the SWIG interface file instead.
//------------------------------------------------------------------------------

namespace MeCab {

using System;
using System.Runtime.InteropServices;

public class MeCab {
public static readonly int MECAB_NOR_NODE = MeCabPINVOKE.MECAB_NOR_NODE_get();
public static readonly int MECAB_UNK_NODE = MeCabPINVOKE.MECAB_UNK_NODE_get();
Expand Down
Loading

0 comments on commit 0c24f73

Please sign in to comment.