~ubuntu-branches/ubuntu/edgy/ncbi-tools6/edgy

« back to all changes in this revision

Viewing changes to biostruc/objmmdb1.c

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2006-07-19 23:28:07 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060719232807-et3cdmcjgmnyleyx
Tags: 6.1.20060507-3ubuntu1
Re-merge with Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
2726
2726
      }
2727
2727
      atp = AsnReadId(aip,amp, atp);
2728
2728
   }
 
2729
   if (atp == MOLECULE_GRAPH_sid) {
 
2730
      if ( AsnReadVal(aip, atp, &av) <= 0) {
 
2731
         goto erret;
 
2732
      }
 
2733
      ptr -> sid = av.intvalue;
 
2734
      atp = AsnReadId(aip,amp, atp);
 
2735
   }
2729
2736
 
2730
2737
   if (AsnReadVal(aip, atp, &av) <= 0) {
2731
2738
      goto erret;
2787
2794
   }
2788
2795
   AsnGenericUserSeqOfAsnWrite(ptr -> residue_sequence, (AsnWriteFunc) ResidueAsnWrite, aip, MOLECULE_GRAPH_residue_sequence, MOLECULE_GRAPH_residue_sequence_E);
2789
2796
   AsnGenericUserSeqOfAsnWrite(ptr -> inter_residue_bonds, (AsnWriteFunc) InterResidueBondAsnWrite, aip, MOLECULE_GRAPH_inter_residue_bonds, MOLECULE_GRAPH_inter_residue_bonds_E);
 
2797
   if (ptr -> sid > 0) {
 
2798
        av.intvalue = ptr -> sid;
 
2799
        retval = AsnWrite(aip, MOLECULE_GRAPH_sid,  &av);
 
2800
   }
2790
2801
   if (! AsnCloseStruct(aip, atp, (Pointer)ptr)) {
2791
2802
      goto erret;
2792
2803
   }