Changeset fe560d3daea742f165333f1efa195deec5d9971c
- Timestamp:
- 04/24/08 21:00:56 (9 months ago)
- Author:
- dave <dave@…>
- Parents:
- af195088ac05210716bf17da06c341a7d5469e58
- Children:
- 950230a7439939cd389e7ab03bf78d6fe7860560
- git-committer:
- dave <dave@06fd6eb0-0002-0410-a719-e5602cce40bc> / 2008-04-24T11:00:56Z+0000
- Message:
-
Fixed rake install task. Can now install latest Ferret gem
rake install was broken because I removed the old ruby/TODO list. It now
links to the TODO list in the base directory.
git-svn-id: svn+ssh://davebalmain.com/home/dave/repos/ferret/trunk@1038 06fd6eb0-0002-0410-a719-e5602cce40bc
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r3d5c1b
|
rfe560d
|
|
| 336 | 336 | FieldInfos *fis = ALLOC(FieldInfos); |
| 337 | 337 | fi_check_params(store, index, term_vector); |
| 338 | | fis->field_dict = h_new_str((free_ft)NULL, (free_ft)&fi_deref); |
| | 338 | fis->field_dict = h_new_ptr((free_ft)&fi_deref); |
| 339 | 339 | fis->size = 0; |
| 340 | 340 | fis->capa = FIELD_INFOS_INIT_CAPA; |
| … |
… |
|
| 365 | 365 | FieldInfo *fis_get_field(FieldInfos *fis, const char *name) |
| 366 | 366 | { |
| 367 | | return (FieldInfo *)h_get(fis->field_dict, name); |
| | 367 | return (FieldInfo *)h_get(fis->field_dict, I(name)); |
| 368 | 368 | } |
| 369 | 369 | |
| 370 | 370 | int fis_get_field_num(FieldInfos *fis, const char *name) |
| 371 | 371 | { |
| 372 | | FieldInfo *fi = (FieldInfo *)h_get(fis->field_dict, name); |
| | 372 | FieldInfo *fi = (FieldInfo *)h_get(fis->field_dict, I(name)); |
| 373 | 373 | if (fi) { |
| 374 | 374 | return fi->number; |
| … |
… |
|
| 381 | 381 | FieldInfo *fis_get_or_add_field(FieldInfos *fis, const char *name) |
| 382 | 382 | { |
| 383 | | FieldInfo *fi = (FieldInfo *)h_get(fis->field_dict, name); |
| | 383 | FieldInfo *fi = (FieldInfo *)h_get(fis->field_dict, I(name)); |
| 384 | 384 | if (!fi) { |
| 385 | 385 | fi = (FieldInfo*)fi_new(name, fis->store, fis->index, fis->term_vector); |
| … |
… |
|
| 4541 | 4541 | const char *field) |
| 4542 | 4542 | { |
| 4543 | | FieldInfo *fi = (FieldInfo *)h_get(ir->fis->field_dict, field); |
| | 4543 | FieldInfo *fi = (FieldInfo *)h_get(ir->fis->field_dict, I(field)); |
| 4544 | 4544 | FieldsReader *fr; |
| 4545 | 4545 | |