[Refdb-cvs] CVS: refdb/src refdba.c,1.43,1.44 refdbc.c,1.68,1.69 refdbib.c,1.40,1.41
Status: Beta
Brought to you by:
mhoenicka
|
From: Markus H. <mho...@us...> - 2004-02-11 23:51:51
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv696 Modified Files: refdba.c refdbc.c refdbib.c Log Message: new send_xml_data(), send_ris_data() argument list Index: refdba.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdba.c,v retrieving revision 1.43 retrieving revision 1.44 diff -u -U2 -r1.43 -r1.44 --- refdba.c 31 Jan 2004 14:50:22 -0000 1.43 +++ refdba.c 11 Feb 2004 23:47:23 -0000 1.44 @@ -1801,5 +1801,5 @@ /* runs phases 1 through 5 of transfer protocol */ - n_xml_result = send_xml_data(infp, pagerfp, stderr, n_sockfd); + n_xml_result = send_xml_data(infp, pagerfp, stderr, n_sockfd, &byte_written); fclose(infp); Index: refdbc.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbc.c,v retrieving revision 1.68 retrieving revision 1.69 diff -u -U2 -r1.68 -r1.69 --- refdbc.c 11 Feb 2004 22:19:11 -0000 1.68 +++ refdbc.c 11 Feb 2004 23:47:23 -0000 1.69 @@ -3226,8 +3226,8 @@ /* runs phases 1 through 4 of communication protocol */ if (!strcmp(my_reftype, "ris")) { - n_send_result = send_ris_data(infp, pagerfp, errstream, n_sockfd, &ris_set_buffer, &n_setlength, &n_setcount, default_ris, n_cgi); + n_send_result = send_ris_data(infp, pagerfp, errstream, n_sockfd, &ris_set_buffer, &n_setlength, &n_setcount, default_ris, n_cgi, &byte_written); } else { - n_send_result = send_xml_data(infp, pagerfp, errstream, n_sockfd); + n_send_result = send_xml_data(infp, pagerfp, errstream, n_sockfd, &byte_written); } @@ -3309,5 +3309,5 @@ } else { - fwrite(inbuffer, sizeof(char), strlen(inbuffer), pagerfp); + byte_written += fwrite(inbuffer, sizeof(char), strlen(inbuffer), pagerfp); if (!n_cgi && !strcmp(my_reftype, "ris")) { sprintf(inbuffer, "%d dataset(s) sent.\n", n_setcount); @@ -3897,5 +3897,5 @@ /* runs phases 1 through 4 of communication protocol */ - n_send_result = send_xml_data(infp, pagerfp, errstream, n_sockfd); + n_send_result = send_xml_data(infp, pagerfp, errstream, n_sockfd, &byte_written); if (n_send_result) { @@ -3971,5 +3971,5 @@ } else { - fwrite(inbuffer, sizeof(char), strlen(inbuffer), pagerfp); + byte_written += fwrite(inbuffer, sizeof(char), strlen(inbuffer), pagerfp); } Index: refdbib.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbib.c,v retrieving revision 1.40 retrieving revision 1.41 diff -u -U2 -r1.40 -r1.41 --- refdbib.c 31 Jan 2004 14:50:22 -0000 1.40 +++ refdbib.c 11 Feb 2004 23:47:23 -0000 1.41 @@ -81,5 +81,5 @@ {"refdblib", ""}, {"startnumber", ""}, - {"encoding", ""}, + {"toencoding", ""}, {"", ""} }; @@ -783,5 +783,5 @@ /* run phases 1 through 4 of client/server protocol */ - n_result = send_xml_data(fp_infile, pagerfp, stderr, n_sockfd); + n_result = send_xml_data(fp_infile, pagerfp, stderr, n_sockfd, &byte_written); if (n_result) { |