|
NCBI Home IEB Home C Toolkit docs C++ Toolkit source browser C Toolkit source browser (2) |
NCBI C Toolkit Cross ReferenceC/corelib/corepriv.h |
source navigation diff markup identifier search freetext search file search |
1 /* corepriv.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: ncbi.h
27 *
28 * Author: Gish, Kans, Ostell, Schuler
29 *
30 * Version Creation Date: 02/23/94
31 *
32 * $Revision: 6.0 $
33 *
34 * File Description: Privated definitions used internally by CoreLib
35 *
36 * Modifications:
37 * --------------------------------------------------------------------------
38 * Date Name Description of modification
39 * ------- ---------- -----------------------------------------------------
40 * 06-29-94 Schuler Moved some macros here from other files
41 *
42 * $Log: corepriv.h,v $
43 * Revision 6.0 1997/08/25 18:15:03 madden
44 * Revision changed to 6.0
45 *
46 * Revision 5.5 1997/07/22 19:11:15 vakatov
47 * Separated Main() from GetArg[svc]() functions; [WIN_MSWIN] converged
48 * console and GUI libraries; [for WIN32-DLL] encapsulated global variables
49 *
50 * Revision 5.4 1997/06/26 16:06:13 vakatov
51 * [MSWIN,DLL] Made "targ[vc]" be not DLL-exportable in "ncbi.lib/dll"
52 *
53 * Revision 5.3 1996/12/03 21:48:33 vakatov
54 * Adopted for 32-bit MS-Windows DLLs
55 *
56 * Revision 5.2 1996/11/25 19:02:59 vakatov
57 * 'corelibMutex' mutex to synchronize corelib's functions in the
58 * multithtread applications.
59 *
60 * Revision 5.1 1996/07/16 19:55:35 vakatov
61 * Added ReleaseAppErrInfo() and ReleaseAppMsgInfo() prototypes
62 *
63 * Revision 5.0 1996/05/28 13:18:57 ostell
64 * Set to revision 5.0
65 *
66 * Revision 4.0 1995/07/26 13:46:50 ostell
67 * force revision to 4.0
68 *
69 * Revision 2.3 1995/05/15 18:45:58 ostell
70 * added Log line
71 *
72 *
73 * ==========================================================================
74 */
75
76 #ifndef __COREPRIV_H__
77 #define __COREPRIV_H__
78
79 extern char *g_corelib;
80
81 #ifndef THIS_MODULE
82 #define THIS_MODULE g_corelib
83 #endif
84
85 #include <ncbi.h>
86 #include <ncbithr.h>
87 #include <ncbiwin.h>
88
89 #ifdef VAR_ARGS
90 #include <varargs.h>
91 #define VSPRINTF(buff,fmt) \
92 { \
93 va_list args; \
94 va_start(args); \
95 vsprintf(buff,fmt,args); \
96 va_end(args); \
97 }
98
99 #else
100 #include <stdarg.h>
101 #define VSPRINTF(buff,fmt) \
102 { \
103 va_list args; \
104 va_start(args,fmt); \
105 vsprintf(buff,fmt,args); \
106 va_end(args); \
107 }
108 #endif
109
110 extern void ReleaseAppErrInfo PROTO( ( void ) );
111 extern void ReleaseAppMsgInfo PROTO( ( void ) );
112
113 extern TNlmMutex corelibMutex;
114
115 #ifdef WIN_DUMB
116 #ifndef WIN32
117 #define Nlm_HasConsole 1
118 #else
119 /* Win32 application may have or not have a console */
120 extern int Nlm_x_HasConsole PROTO((void));
121 #define Nlm_HasConsole Nlm_x_HasConsole()
122 #endif
123 #else
124 #define Nlm_HasConsole 0
125 #endif
126
127 #endif
128
129 /* EOF */
130 |
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more information. |