|
ocssw
1.0
|
00001 /* 00002 00003 $Header: /app/shared/RCS/irix-5.2/seawifsd/src/hdfio/Shared.V4.2/L012_Util/util/hdf/hdfmac.h,v 4.10 1995/01/17 19:58:20 seawifsd Exp seawifsd $ 00004 $Log: hdfmac.h,v $ 00005 Revision 4.10 1995/01/17 19:58:20 seawifsd 00006 Jan. 17, 1994, V4.10 00007 00008 Revision 4.1 1995/01/17 14:14:36 seawifsd 00009 Jan. 9, 1994, 4.0 00010 00011 Revision 3.5 1994/11/28 18:26:31 seawifsd 00012 fixed the problem about the definition of macro NOCHKHDF caused by the 00013 changes done to make NOCHKHDF as default. 00014 00015 Revision 3.4 1994/11/09 18:35:29 seawifsd 00016 changed the default from 'debuging if NOCHKHDF is not defined' to 00017 'debuging if only CHKHDF is defined'. 00018 00019 Revision 3.3 1994/11/08 18:46:40 seawifsd 00020 Nov. 8, 1994, 3.3a3 00021 00022 Revision 3.3 1994/11/08 15:04:38 seawifsd 00023 Nov. 8, 1994, 3.3a2 00024 00025 Revision 1.1.1.2 1994/10/04 15:50:14 frank 00026 added macro CHKSDS to support HDF_CALL_SUMMARY feature. 00027 00028 Revision 1.1.1.1 1994/05/23 15:29:21 frank 00029 a. added checking to make sure this file only included once.(HDFMAC_H_) 00030 b. changed 'int ret' to 'static int ret' to be used locally. 00031 00032 Revision 1.2 1994/05/10 18:49:46 seawifst 00033 May 6, 1994 version 1.2 00034 00035 Revision 1.1 1994/04/19 13:33:37 seawifst 00036 Initial revision 00037 00038 00039 */ 00040 00041 00042 #ifndef HDFMAC_H_ 00043 #define HDFMAC_H_ 00044 00045 #define FIRST 1 00046 #define NOTFIRST 0 00047 #define NEXT 0 00048 00049 #define LOCATION() perror(FUNC);fprintf(stderr,"fail at %s line %d\n",__FILE__,__LINE__) 00050 #define FAILEXIT(exitcode) if (ret == FAIL) {LOCATION();HEprint(stderr,0);exit(exitcode);} 00051 static int ret; 00052 static int n_standout_sdsid = 0; 00053 #ifdef CHKHDF 00054 #undef NOCHKHDF 00055 #define HDF_CALL_SUMMARY 00056 #ifdef __ANSI_CPP__ 00057 #define CHKIDF(EX) ret = EX; printf("%d = %s\n",ret, # EX ) 00058 #define CHKSDS(EX) ret = EX; printf("%d = %s\n",ret, # EX ); if (ret != FAIL) {if (strncmp(# EX,"SDselect",8) == 0) {n_standout_sdsid++; printf("n_standout_sdsid=%d\n",n_standout_sdsid);}; if (strncmp(# EX,"SDendaccess",11) == 0) {n_standout_sdsid--; printf("n_standout_sdsid=%d\n",n_standout_sdsid);}; if (strncmp(# EX,"SDcreate",8) == 0) {n_standout_sdsid++; printf("n_standout_sdsid=%d\n",n_standout_sdsid);};} 00059 #else 00060 #define CHKIDF(EX) ret = EX; printf("%d = %s\n",ret,"EX") 00061 #define CHKSDS(EX) ret = EX; printf("%d = %s\n",ret,"EX"); if (ret != FAIL) {if (strncmp("EX","SDselect",8) == 0) {n_standout_sdsid++; printf("n_standout_sdsid=%d\n",n_standout_sdsid);}; if (strncmp("EX","SDendaccess",11) == 0) {n_standout_sdsid--; printf("n_standout_sdsid=%d\n",n_standout_sdsid);}; if (strncmp("EX","SDcreate",8) == 0) {n_standout_sdsid++; printf("n_standout_sdsid=%d\n",n_standout_sdsid);};} 00062 #endif /* ANSI */ 00063 #else 00064 #define NOCHKHDF 1 00065 #define CHKIDF(EX) ret = EX 00066 #define CHKSDS(EX) ret = EX 00067 #endif 00068 #define MAXDIMS 3 00069 00070 00071 #endif /* HDFMAC_H_ */
1.7.6.1