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

« back to all changes in this revision

Viewing changes to asnlib/asncode.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:
29
29
*
30
30
* Version Creation Date: 7/8/93
31
31
*
32
 
* $Revision: 6.13 $
 
32
* $Revision: 6.15 $
33
33
*
34
34
* File Description:
35
35
*   Automatically generate C code from ASN.1 specifications
47
47
* -------  ----------  -----------------------------------------------------
48
48
*
49
49
* $Log: asncode.c,v $
 
50
* Revision 6.15  2004/07/08 15:24:05  kans
 
51
* needed a couple additional TESTNIL wrappers
 
52
*
 
53
* Revision 6.14  2002/03/07 21:36:27  beloslyu
 
54
* typo fixed
 
55
*
50
56
* Revision 6.13  2001/11/05 20:25:34  madden
51
57
* Fix (by Karl Sirotkin) for underscores (e.g., struct_BlastDefLine to struct_Blast_def_line)
52
58
*
135
141
 
136
142
static Boolean AsnCodeIsEnumType PROTO ((AsnTypePtr atp));
137
143
 
138
 
static char     RCS_Rev [] = "$Revision: 6.13 $";
 
144
static char     RCS_Rev [] = "$Revision: 6.15 $";
139
145
 
140
146
/*******************
141
147
 * Interator structure
525
531
   Int2            debugarg, loadfilesarg, dirarg, outnamearg, bufarg, seearg,
526
532
                   includearg, maxdefarg, bittwiddlearg;
527
533
   Boolean         has_trouble = FALSE;
528
 
   AsnCodeInfoPtr  acip = MemNew (size of (AsnCodeInfor));
 
534
   AsnCodeInfoPtr  acip = MemNew (sizeof(AsnCodeInfo));
529
535
 
530
536
   if (!GetArgs ("AsnCode 1", NUMARGS, asnargs))
531
537
      return 1;
2189
2195
         } else {
2190
2196
            ErrPost (CTX_NCBIASN1, 101,
2191
2197
                     "userobj CHECK LIST Unresolved imported type at %s.%s",
2192
 
                     iter->atp->name, this_type->name);
 
2198
                     TESTNIL (iter->atp->name), TESTNIL (this_type->name));
2193
2199
            use_type = (AsnTypePtr) NULL;
2194
2200
         }
2195
2201
      } else {