Changeset 3915 for lang/perl/Senna/trunk/senna-index.c
- Timestamp:
- 01/01/08 02:44:08 (5 years ago)
- Files:
-
- 1 modified
-
lang/perl/Senna/trunk/senna-index.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Senna/trunk/senna-index.c
r3911 r3915 118 118 } 119 119 120 SV * 120 void 121 121 SennaPerl_Index_DESTROY(obj) 122 122 SV *obj; 123 123 { 124 return SennaPerl_Index_close(obj); 124 SennaPerl_Index *index; 125 index = XS_STATE(SennaPerl_Index *, obj); 126 127 SennaPerl_Index_close(obj); 128 Safefree(index); 125 129 } 126 130 … … 197 201 string = SvPV(query, string_len); 198 202 199 PerlIO_printf(PerlIO_stderr(), "string is %s, length %d\n", string, string_len);200 201 203 rc = sen_index_select(index->index, string, string_len, records, op, optarg); 204 if (rc != sen_success) { 205 sen_records_close(records); 206 croak("sen_index_select() failed"); 207 } 202 208 203 209 return SennaPerl_Records_new("Senna::Records", records);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)