SCALE-RM
scale_file_const.h
Go to the documentation of this file.
1 /* character length */
2 #define File_HSHORT 32
3 #define File_HMID 128
4 #define File_HLONG 1024
5 
6 /* data type */
7 #define File_REAL4 0
8 #define File_REAL8 1
9 #define File_INTEGER2 2
10 #define File_INTEGER4 3
11 #define File_INTEGER8 4
12 #define File_TEXT 5
13 
14 /* action type */
15 #define File_FREAD 0
16 #define File_FWRITE 1
17 #define File_FAPPEND 2
18 
19 /* return type */
20 #define ERROR_CODE -1
21 #define SUCCESS_CODE 0
22 #define ALREADY_CLOSED_CODE 1
23 #define ALREADY_EXISTED_CODE 2
24 
25 /* limit of files */
26 #define FILE_MAX 512
27 /* limit of variables */
28 #define VAR_MAX 40960
29 /* limit of dimensions */
30 #define RANK_MAX 10
31 /* limit of attributes */
32 #define ATT_MAX 10
33 
34 /* missing value */
35 #define RMISS -9.9999e+30