~ubuntu-branches/debian/experimental/ncbi-tools6/experimental

« back to all changes in this revision

Viewing changes to network/id2arch/id2.c

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2008-07-14 19:43:15 UTC
  • mfrom: (2.1.12 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080714194315-ed44u9ek7txva2rz
Tags: 6.1.20080302-3
tools/readdb.c: enable madvise()-based code on all glibc (hence all
Debian) systems, not just Linux.  (Closes: #490437.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1958
1958
      }
1959
1959
      atp = AsnReadId(aip,amp, atp);
1960
1960
   }
 
1961
   if (atp == GET_CHUNKS_split_version) {
 
1962
      if ( AsnReadVal(aip, atp, &av) <= 0) {
 
1963
         goto erret;
 
1964
      }
 
1965
      ptr -> split_version = av.intvalue;
 
1966
      atp = AsnReadId(aip,amp, atp);
 
1967
   }
1961
1968
 
1962
1969
   if (AsnReadVal(aip, atp, &av) <= 0) {
1963
1970
      goto erret;
2015
2022
      }
2016
2023
   }
2017
2024
   retval = AsnGenericBaseSeqOfAsnWrite(ptr -> chunks ,ASNCODE_INTVAL_SLOT, aip, ID2S_REQUEST_GET_CHUNKS_chunks, REQUEST_GET_CHUNKS_chunks_E);
 
2025
   av.intvalue = ptr -> split_version;
 
2026
   retval = AsnWrite(aip, GET_CHUNKS_split_version,  &av);
2018
2027
   if (! AsnCloseStruct(aip, atp, (Pointer)ptr)) {
2019
2028
      goto erret;
2020
2029
   }
3701
3710
      ptr -> end_of_reply = av.boolvalue;
3702
3711
      atp = AsnReadId(aip,amp, atp);
3703
3712
   }
 
3713
   if (atp == REPLY_GET_BLOB_ID_blob_state) {
 
3714
      if ( AsnReadVal(aip, atp, &av) <= 0) {
 
3715
         goto erret;
 
3716
      }
 
3717
      ptr -> blob_state = av.intvalue;
 
3718
      atp = AsnReadId(aip,amp, atp);
 
3719
   }
3704
3720
 
3705
3721
   if (AsnReadVal(aip, atp, &av) <= 0) {
3706
3722
      goto erret;
3767
3783
   AsnGenericUserSeqOfAsnWrite(ptr -> annot_info, (AsnWriteFunc) ID2SSeqAnnotInfoAsnWrite, aip, REPLY_GET_BLOB_ID_annot_info, REPLY_GET_BLOB_ID_annot_info_E);
3768
3784
   av.boolvalue = ptr -> end_of_reply;
3769
3785
   retval = AsnWrite(aip, REPLY_GET_BLOB_ID_end_of_reply,  &av);
 
3786
   av.intvalue = ptr -> blob_state;
 
3787
   retval = AsnWrite(aip, REPLY_GET_BLOB_ID_blob_state,  &av);
3770
3788
   if (! AsnCloseStruct(aip, atp, (Pointer)ptr)) {
3771
3789
      goto erret;
3772
3790
   }