|
NCBI Home IEB Home C Toolkit docs C++ Toolkit source browser C Toolkit source browser (2) |
NCBI C Toolkit Cross ReferenceC/asnlib/asnlex.h |
source navigation diff markup identifier search freetext search file search |
1 /* asnlex.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: asnlex.h 27 * 28 * Author: James Ostell 29 * 30 * Version Creation Date: 3/4/91 31 * 32 * $Revision: 6.1 $ 33 * 34 * File Description: 35 * Typedefs and prototypes used internally by asnlex.c 36 * 37 * Modifications: 38 * -------------------------------------------------------------------------- 39 * Date Name Description of modification 40 * ------- ---------- ----------------------------------------------------- 41 * 3/4/91 Kans Stricter typecasting for GNU C and C++ 42 * 3/4/91 Kans AsnLexReadBoolean returns Boolean 43 * 44 * $Log: asnlex.h,v $ 45 * Revision 6.1 2000/12/12 15:56:13 ostell 46 * added support BigInt 47 * 48 * Revision 6.0 1997/08/25 18:10:07 madden 49 * Revision changed to 6.0 50 * 51 * Revision 5.1 1996/12/03 21:43:48 vakatov 52 * Adopted for 32-bit MS-Windows DLLs 53 * 54 * Revision 5.0 1996/05/28 14:00:29 ostell 55 * Set to revision 5.0 56 * 57 * Revision 4.0 1995/07/26 13:47:38 ostell 58 * force revision to 4.0 59 * 60 * Revision 2.2 1995/05/15 18:38:28 ostell 61 * added Log line 62 * 63 * 64 * ========================================================================== 65 */ 66 67 #ifndef _ASNLEX_ 68 #define _ASNLEX_ 69 70 #undef NLM_EXTERN 71 #ifdef NLM_IMPORT 72 #define NLM_EXTERN NLM_IMPORT 73 #else 74 #define NLM_EXTERN extern 75 #endif 76 77 78 /* states in AsnLexTWord and AsnLexWord */ 79 #define IN_STRING_STATE 1 /* reading a text string */ 80 #define IN_BITHEX_STATE 2 /* reading a hex or binary string */ 81 82 83 /***************************************************************************** 84 * 85 * prototypes 86 * AsnTxtReadId 87 * AsnTxtReadVal prototyped in asngen.h 88 * 89 *****************************************************************************/ 90 NLM_EXTERN AsnTypePtr AsnLexFindType PROTO((AsnIoPtr aip, AsnModulePtr amp)); 91 NLM_EXTERN AsnTypePtr AsnLexFindElement PROTO((AsnIoPtr aip, AsnTypePtr atp)); 92 93 NLM_EXTERN Int4 AsnLexReadInteger PROTO((AsnIoPtr aip, AsnTypePtr atp)); 94 NLM_EXTERN Int8 AsnLexReadBigInt PROTO((AsnIoPtr aip, AsnTypePtr atp)); 95 NLM_EXTERN Boolean AsnLexReadBoolean PROTO((AsnIoPtr aip, AsnTypePtr atp)); 96 NLM_EXTERN Pointer AsnLexReadString PROTO((AsnIoPtr aip, AsnTypePtr atp)); 97 NLM_EXTERN Boolean AsnLexSkipString PROTO((AsnIoPtr aip, AsnTypePtr atp)); 98 NLM_EXTERN FloatHi AsnLexReadReal PROTO((AsnIoPtr aip, AsnTypePtr atp)); 99 NLM_EXTERN void AsnLexReadNull PROTO((AsnIoPtr aip, AsnTypePtr atp)); 100 NLM_EXTERN ByteStorePtr AsnLexReadOctets PROTO((AsnIoPtr aip, AsnTypePtr atp)); 101 NLM_EXTERN void AsnLexSkipOctets PROTO((AsnIoPtr aip, AsnTypePtr atp)); 102 NLM_EXTERN CharPtr AsnLexSaveWord PROTO((AsnIoPtr aip)); 103 NLM_EXTERN void AsnLexSkipStruct PROTO((AsnIoPtr aip)); 104 NLM_EXTERN Int4 AsnLexInteger PROTO((AsnIoPtr aip)); 105 NLM_EXTERN Int8 AsnLexBigInt PROTO((AsnIoPtr aip)); 106 NLM_EXTERN Int2 AsnLexWord PROTO((AsnIoPtr aip)); 107 NLM_EXTERN Boolean StrMatch PROTO((CharPtr a, CharPtr b, Int2 len)); 108 109 110 #undef NLM_EXTERN 111 #ifdef NLM_EXPORT 112 #define NLM_EXTERN NLM_EXPORT 113 #else 114 #define NLM_EXTERN 115 #endif 116 117 #endif 118
|
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more information. |