… | |
… | |
347 | */ |
347 | */ |
348 | struct mapset_search * |
348 | struct mapset_search * |
349 | mapset_search_new(struct mapset *ms, struct item *item, struct attr *search_attr, int partial) |
349 | mapset_search_new(struct mapset *ms, struct item *item, struct attr *search_attr, int partial) |
350 | { |
350 | { |
351 | struct mapset_search *this; |
351 | struct mapset_search *this; |
352 | dbg(1,"enter(%p,%p,%p,%d)\n", ms, item, search_attr, partial); |
352 | //dbg(0,"enter(%p,%p,%p,%d)\n", ms, item, search_attr, partial); |
353 | this=g_new0(struct mapset_search,1); |
353 | this=g_new0(struct mapset_search,1); |
354 | if(this != NULL && ms!=NULL ) |
354 | if(this != NULL && ms!=NULL ) |
355 | { |
355 | { |
356 | this->map=ms->maps; |
356 | this->map=ms->maps; |
357 | this->item=item; |
357 | this->item=item; |