1 /* 2 cmap_errno.h: error codes for map handling functions 3 Copyright (C) 2001 CCLRC, Charles Ballard 4 5 This library is free software: you can redistribute it and/or 6 modify it under the terms of the GNU Lesser General Public License 7 version 3, modified in accordance with the provisions of the 8 license to address the requirements of UK law. 9 10 You should have received a copy of the modified GNU Lesser General 11 Public License along with this library. If not, copies may be 12 downloaded from http://www.ccp4.ac.uk/ccp4license.php 13 14 This program is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 GNU Lesser General Public License for more details. 18 */ 19 #ifndef __GUARD_MAPLIB_ERR 20 #define __GUARD_MAPLIB_ERR 21 22 #include "ccp4_errno.h" 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif 27 28 #define CMAP_ERRNO(n) (CCP4_ERR_MAP | (n)) 29 30 /* error defs */ 31 #define CMERR_Ok 0 32 #define CMERR_NoChannel 1 33 #define CMERR_NoFile 2 34 #define CMERR_NoLogicalName 3 35 #define CMERR_CantOpenFile 4 36 #define CMERR_NoHeader 5 37 #define CMERR_ReadFail 6 38 #define CMERR_WriteFail 7 39 #define CMERR_ParamError 8 40 #define CMERR_UnrecognK 9 41 #define CMERR_FileStamp 10 42 #define CMERR_SymErr 11 43 #define CMERR_AllocFail 12 44 #define CMERR_MaxFile 13 45 #define CMERR_SeekFail 14 46 47 #ifdef __cplusplus 48 } 49 #endif 50 51 #endif /* __GUARD_MAPLIB_ERR */ 52 53