From 5c23ea33724e67a6389d63b62a595a54dd330ba4 Mon Sep 17 00:00:00 2001 From: K Lauer Date: Sat, 3 Jun 2017 13:06:46 -0700 Subject: [PATCH] FIX: node.surface works as-is with recent swig versions --- MeCab.i | 8 -------- 1 file changed, 8 deletions(-) diff --git a/MeCab.i b/MeCab.i index 6edf547..d720e63 100644 --- a/MeCab.i +++ b/MeCab.i @@ -13,8 +13,6 @@ #endif %} -%newobject surface; - %exception { try { $action } catch (char *e) { SWIG_exception (SWIG_RuntimeError, e); } @@ -144,12 +142,6 @@ void delete_MeCab_Lattice (MeCab::Lattice *t) { t = 0; } -char* mecab_node_t_surface_get(mecab_node_t *n) { - char *s = new char [n->length + 1]; - memcpy (s, n->surface, n->length); - s[n->length] = '\0'; - return s; -} %} %include "mecab.h"