NCBI C Toolkit Cross Reference

C/corelib/ncbilcl.cra


  1 /*   ncbilcl.h
  2 * ===========================================================================
  3 *
  4 *                            PUBLIC DOMAIN NOTICE
  5 *               National Center for Biotechnology Information
  6 *
  7 *  This software/database is a "United States Government Work" under the
  8 *  terms of the United States Copyright Act.  It was written as part of
  9 *  the author's official duties as a United States Government employee and
 10 *  thus cannot be copyrighted.  This software/database is freely available
 11 *  to the public for use. The National Library of Medicine and the U.S.
 12 *  Government have not placed any restriction on its use or reproduction.
 13 *
 14 *  Although all reasonable efforts have been taken to ensure the accuracy
 15 *  and reliability of the software and data, the NLM and the U.S.
 16 *  Government do not and cannot warrant the performance or results that
 17 *  may be obtained by using this software or data. The NLM and the U.S.
 18 *  Government disclaim all warranties, express or implied, including
 19 *  warranties of performance, merchantability or fitness for any particular
 20 *  purpose.
 21 *
 22 *  Please cite the author in any work or product based on this material.
 23 *
 24 * ===========================================================================
 25 *
 26 * File Name:  ncbilcl.h
 27 *
 28 * Author:  Gish, Kans, Ostell, Schuler
 29 *
 30 * Version Creation Date:   9/19/91
 31 *
 32 *
 33 * File Description:
 34 *       system dependent header
 35 *       Cray UNICOS version 7.0
 36 *
 37 * Modifications:
 38 * --------------------------------------------------------------------------
 39 * Date     Name        Description of modification
 40 * -------  ----------  -----------------------------------------------------
 41 *
 42 * $Log: ncbilcl.cra,v $
 43 * Revision 6.1  1999/03/17 15:37:22  vakatov
 44 * Set the default(<ncbistd.h>) "Nlm_Int4" to "int" rather tnan "long";
 45 * the same for "Nlm_Uint4";  modifyed the concerned "ncbilcl.*" files
 46 * accordingly.
 47 *
 48 * Revision 6.0  1997/08/25 18:15:53  madden
 49 * Revision changed to 6.0
 50 *
 51 * Revision 5.0  1996/05/28 13:18:57  ostell
 52 * Set to revision 5.0
 53 *
 54 Revision 4.0  1995/07/26  13:46:50  ostell
 55 force revision to 4.0
 56 
 57 Revision 2.6  1995/05/15  18:45:58  ostell
 58 added Log line
 59 
 60 *
 61 *
 62 * ==========================================================================
 63 */
 64 #ifndef _NCBILCL_
 65 #define _NCBILCL_
 66 
 67 /* PLATFORM DEFINITION FOR Cray Y-MP UNDER Cray UNICOS */
 68 
 69 #define COMP_CRAY
 70 #define OS_UNIX
 71 #define OS_UNIX_UNICOS
 72 #define PROC_YMP
 73 #define WIN_DUMB
 74 
 75 /*----------------------------------------------------------------------*/
 76 /*      Desired or available feature list                               */
 77 /*----------------------------------------------------------------------*/
 78 
 79 /*----------------------------------------------------------------------*/
 80 /*      #includes                                                       */
 81 /*----------------------------------------------------------------------*/
 82 #include <sys/types.h>
 83 #include <limits.h>
 84 #include <sys/stat.h>
 85 #include <stddef.h>
 86 #include <stdio.h>
 87 #include <ctype.h>
 88 #include <string.h>
 89 #include <malloc.h>
 90 #include <memory.h>
 91 #include <stdlib.h>
 92 #include <math.h>
 93 #include <errno.h>
 94 #include <float.h>
 95 
 96 /*----------------------------------------------------------------------*/
 97 /*      Missing ANSI-isms                                               */
 98 /*----------------------------------------------------------------------*/
 99 #define const   /* "const" keyword not accepted */
100 #define noalias /* "noalias" keyword not accepted */
101 #define volatile        /* "volatile" keyword not accepted */
102 #ifndef FILENAME_MAX
103 #define FILENAME_MAX 1024
104 #endif
105 
106 /*----------------------------------------------------------------------*/
107 /*      Aliased Logicals, Datatypes                                     */
108 /*----------------------------------------------------------------------*/
109 typedef long    Nlm_Int8, *Nlm_Int8Ptr;
110 typedef unsigned long   Nlm_Uint8, *Nlm_Uint8Ptr;
111 
112 #define Int8            Nlm_Int8
113 #define Int8Ptr         Nlm_Int8Ptr
114 #define Uint8           Nlm_Uint8
115 #define Uint8Ptr        Nlm_Uint8Ptr
116 
117 /*----------------------------------------------------------------------*/
118 /*      Misc Macros                                                     */
119 /*----------------------------------------------------------------------*/
120 #define PROTO(x)        x       /* Function prototypes faked in */
121 #define VPROTO(x)       x       /* Prototype for variable arg list */
122 #define DIRDELIMCHR     '/'
123 #define DIRDELIMSTR     "/"
124 #define CWDSTR  "."
125 
126 #define KBYTE   (1024)
127 #define MBYTE   (1048576)
128 
129 #define IS_BIG_ENDIAN
130 #define TEMPNAM_AVAIL
131 
132 /*----------------------------------------------------------------------*/
133 /*      For importing MS_DOS code                                       */
134 /*----------------------------------------------------------------------*/
135 #define near
136 #define far
137 #define huge
138 #define cdecl
139 #define pascal
140 #define _pascal
141 #define _near
142 #define _far
143 #define _huge
144 #define _cdecl
145 
146 /*----------------------------------------------------------------------*/
147 /*      Macros for Floating Point                                       */
148 /*----------------------------------------------------------------------*/
149 #define EXP2(x) exp2(x)
150 #define LOG2(x) log2(x)
151 #define EXP10(x) exp10(x)
152 #define LOG10(x) log10(x)
153 
154 /*----------------------------------------------------------------------*/
155 /*      Macros Defining Limits                                          */
156 /*----------------------------------------------------------------------*/
157 #define INT8_MIN        LONG_MIN
158 #define INT8_MAX        LONG_MAX
159 #define UINT8_MAX       ULONG_MAX
160 
161 #define MAXALLOC        0x40000000 /* Largest permissible memory request */
162 
163 #endif

source navigation ]   [ diff markup ]   [ identifier search ]   [ freetext search ]   [ file search ]  

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.