|
Revision 389, 1.1 kB
(checked in by heitor.barbieri, 3 weeks ago)
|
|
essage first commit
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | if (*docydb || parmtext) if (parmcollapse) { |
|---|
| 4 | LISTA *l; |
|---|
| 5 | char *batchp=awtdatabuff; |
|---|
| 6 | |
|---|
| 7 | if (parmdebug) printf("64X|%s\n",docydb); |
|---|
| 8 | |
|---|
| 9 | awtdatabuff[0]='\0'; |
|---|
| 10 | for (yocc=0, l=listhdr; l; l=l->next) { |
|---|
| 11 | if (!l->mfn) break; |
|---|
| 12 | yocc++; |
|---|
| 13 | |
|---|
| 14 | if (parmdebug) printf("64Z|%"_LD_"^s%f^m%"_LD_"^h%"_LD_"\n",l->mfn,l->sim,l->xxx,l->hit); |
|---|
| 15 | |
|---|
| 16 | //reply.. |
|---|
| 17 | if (replyhere) { |
|---|
| 18 | w2reply (cmd, awtfp, coll, yocc, l, joinjd, showv3, showid, reply, batchp ); |
|---|
| 19 | reply+=strlen(reply); |
|---|
| 20 | batchp+=strlen(batchp); |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | sprintf(batchp,"<6 0>%"_LD_"^s%f^m%"_LD_"^h%"_LD_"</6>",l->mfn,l->sim,l->xxx,l->hit); |
|---|
| 24 | batchp+=strlen(batchp); |
|---|
| 25 | } |
|---|
| 26 | if (awtdatabuff[0]) { |
|---|
| 27 | if (fldupdat(outirec,awtdatabuff)) fatal("wtrig2/similardb/collapse/fldupdat"); |
|---|
| 28 | if (*docydb) recupdat(outcrec,outirec); |
|---|
| 29 | } |
|---|
| 30 | } |
|---|
| 31 | |
|---|
| 32 | if (replyhere) { |
|---|
| 33 | sprintf(reply,"</similarlist>\n"); |
|---|
| 34 | reply+=strlen(reply); |
|---|
| 35 | } |
|---|