Kouhei Sutou
kous****@users*****
2006年 12月 7日 (木) 13:17:30 JST
Index: tomoe/ext/ruby/tomoe-rb-dict.c diff -u tomoe/ext/ruby/tomoe-rb-dict.c:1.15 tomoe/ext/ruby/tomoe-rb-dict.c:1.16 --- tomoe/ext/ruby/tomoe-rb-dict.c:1.15 Wed Dec 6 15:28:36 2006 +++ tomoe/ext/ruby/tomoe-rb-dict.c Thu Dec 7 13:17:30 2006 @@ -47,6 +47,18 @@ NULL); } else if (strcmp(name, "unihan") == 0) { dict = tomoe_dict_new(name, NULL); + } else if (strcmp(name, "svn") == 0) { + VALUE filename, editable, repository, working_copy; + filename = rb_hash_aref(props, CSTR2RVAL("filename")); + editable = rb_hash_aref(props, CSTR2RVAL("editable")); + repository = rb_hash_aref(props, CSTR2RVAL("repository")); + working_copy = rb_hash_aref(props, CSTR2RVAL("working_copy")); + dict = tomoe_dict_new(name, + "filename", RVAL2CSTR(filename), + "editable", RVAL2CBOOL(editable), + "repository", RVAL2CSTR(repository), + "working_copy", RVAL2CSTR(working_copy), + NULL); } else { rb_raise(rb_eArgError, "unknown dictionary type: %s", name); dict = NULL;