~ubuntu-branches/ubuntu/precise/ncbi-tools6/precise

« back to all changes in this revision

Viewing changes to access/objent2.c

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-03-27 12:00:15 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050327120015-embhesp32nj73p9r
Tags: 6.1.20041020-3
* Fix FTBFS under GCC 4.0 caused by inconsistent use of "static" on
  functions.  (Closes: #295110.)
* Add a watch file, now that we can.  (Upstream's layout needs version=3.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
/**************************************************
33
33
*    Generated object loaders for Module NCBI-Entrez2
34
 
*    Generated using ASNCODE Revision: 6.13 at Nov 26, 2001  8:44 AM
 
34
*    Generated using ASNCODE Revision: 6.13 at Jan 28, 2002 12:12 PM
35
35
*    Manual addition to swap bytes in id list if IS_LITTLE_ENDIAN
36
36
*
37
37
**************************************************/
996
996
{
997
997
   Entrez2RequestPtr ptr = MemNew((size_t) sizeof(Entrez2Request));
998
998
 
 
999
   ptr -> use_history = 0;
999
1000
   return ptr;
1000
1001
 
1001
1002
}
1096
1097
      ptr -> cookie = av.ptrvalue;
1097
1098
      atp = AsnReadId(aip,amp, atp);
1098
1099
   }
 
1100
   if (atp == ENTREZ2_REQUEST_use_history) {
 
1101
      if ( AsnReadVal(aip, atp, &av) <= 0) {
 
1102
         goto erret;
 
1103
      }
 
1104
      ptr -> use_history = av.boolvalue;
 
1105
      atp = AsnReadId(aip,amp, atp);
 
1106
   }
1099
1107
 
1100
1108
   if (AsnReadVal(aip, atp, &av) <= 0) {
1101
1109
      goto erret;
1162
1170
      av.ptrvalue = ptr -> cookie;
1163
1171
      retval = AsnWrite(aip, ENTREZ2_REQUEST_cookie,  &av);
1164
1172
   }
 
1173
   av.boolvalue = ptr -> use_history;
 
1174
   if (ptr -> use_history) { /* temporary until server has new spec */
 
1175
     retval = AsnWrite(aip, ENTREZ2_REQUEST_use_history,  &av);
 
1176
   }
1165
1177
   if (! AsnCloseStruct(aip, atp, (Pointer)ptr)) {
1166
1178
      goto erret;
1167
1179
   }