Skip to content

Commit

Permalink
FIX: node.surface works as-is with recent swig versions
Browse files Browse the repository at this point in the history
  • Loading branch information
klauer committed Jun 3, 2017
1 parent 5ec634a commit 5c23ea3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions MeCab.i
Expand Up @@ -13,8 +13,6 @@
#endif
%}

%newobject surface;

%exception {
try { $action }
catch (char *e) { SWIG_exception (SWIG_RuntimeError, e); }
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit 5c23ea3

Please sign in to comment.