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

« back to all changes in this revision

Viewing changes to asnlib/asnenbin.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: 3/4/91
31
31
*
32
 
* $Revision: 6.4 $
 
32
* $Revision: 6.6 $
33
33
*
34
34
* File Description:
35
35
*   Special binary (BER) encoder for ASN.1
42
42
* 04-20-93 Schuler     LIBCALL calling convention
43
43
*
44
44
* $Log: asnenbin.c,v $
 
45
* Revision 6.6  2003/11/07 20:57:02  beloslyu
 
46
* fix the c++ style comments to a C ones
 
47
*
 
48
* Revision 6.5  2003/08/01 16:55:24  gouriano
 
49
* workaround MSVC++.NET optimization bug
 
50
*
45
51
* Revision 6.4  2000/12/12 15:56:11  ostell
46
52
* added support BigInt
47
53
*
357
363
        {
358
364
                for (i = 0; i < 3; i++)
359
365
                        octets[i] = octets[i+1];
360
 
                octets[3] = 0;
 
366
/* dirty workaround of an optimization bug of MSVC++.NET compiler */
 
367
#if defined(_MSC_VER) 
 
368
#  if _MSC_VER < 1300
 
369
                octets[3] = 0;
 
370
#  endif
 
371
#else
 
372
                octets[3] = 0;
 
373
#endif
361
374
        }
362
375
 
363
376
        AsnEnBinBytes(octets, (Uint4)len, aip);
414
427
        {
415
428
                for (i = 0; i < 7; i++)
416
429
                        octets[i] = octets[i+1];
417
 
                octets[7] = 0;
 
430
/* dirty workaround of an optimization bug of MSVC++.NET compiler */
 
431
#if defined(_MSC_VER) 
 
432
#  if _MSC_VER < 1300
 
433
                octets[7] = 0;
 
434
#  endif
 
435
#else
 
436
                octets[7] = 0;
 
437
#endif
418
438
        }
419
439
 
420
440
        AsnEnBinBytes(octets, (Uint4)len, aip);