1 | #ifndef PROTOS_H |
---|
2 | #include "registry.h" |
---|
3 | #include "data.h" |
---|
4 | |
---|
5 | int init_dim_table() ; |
---|
6 | int make_lower( char * s1 ) ; |
---|
7 | int reg_parse( FILE * infile ) ; |
---|
8 | int set_dim_len ( char * dimspec , node_t * dim_entry ) ; |
---|
9 | int set_dim_order ( char * dimorder , node_t * dim_entry ) ; |
---|
10 | int set_dim_orient ( char * dimorient , node_t * dim_entry ) ; |
---|
11 | int add_node_to_end ( node_t * node , node_t ** list ) ; |
---|
12 | int add_node_to_end_4d ( node_t * node , node_t ** list ) ; |
---|
13 | int init_type_table() ; |
---|
14 | int set_state_type ( char * typename , node_t * node ) ; |
---|
15 | int set_state_dims ( char * dims , node_t * node ) ; |
---|
16 | int gen_state_struct ( char * fname ) ; |
---|
17 | |
---|
18 | #if 0 |
---|
19 | int show_node( node_t * p ) ; |
---|
20 | int show_node1( node_t * p, int indent ) ; |
---|
21 | int show_nodelist( node_t * p ) ; |
---|
22 | int show_nodelist1( node_t * p , int indent ) ; |
---|
23 | #endif |
---|
24 | |
---|
25 | int gen_state_struct ( char * fname ) ; |
---|
26 | int gen_decls ( FILE * fp , char * corename , node_t * node , int sw_ranges, int sw_point , int mask , int layer ) ; |
---|
27 | int gen_state_subtypes ( char * fname ) ; |
---|
28 | int gen_state_subtypes1 ( FILE * fp , node_t * node , int sw_ranges, int sw_point , int mask ) ; |
---|
29 | int print_warning( FILE * fp , char * fname ) ; |
---|
30 | int close_the_file( FILE * fp ) ; |
---|
31 | int make_entries_uniq ( char * fname ) ; |
---|
32 | int add_warning ( char * fname ) ; |
---|
33 | |
---|
34 | node_t * get_type_entry ( char * typename ) ; |
---|
35 | node_t * get_rconfig_entry( char * name ) ; |
---|
36 | node_t * get_entry ( char * name , node_t * node ) ; |
---|
37 | node_t * get_entry_r ( char * name , char * use , node_t * node ) ; |
---|
38 | node_t * get_dim_entry( char c ) ; |
---|
39 | node_t * new_node ( int kind ) ; |
---|
40 | |
---|
41 | node_t * get_4d_entry ( char * name ) ; |
---|
42 | node_t * get_dimnode_for_coord ( node_t * node , int coord_axis ) ; |
---|
43 | int get_index_for_coord ( node_t * node , int coord_axis ) ; |
---|
44 | |
---|
45 | char * my_strtok( char * s1 ) ; |
---|
46 | char * strtok_rentr( char * s1 , char * s2, char ** tokpos ) ; |
---|
47 | |
---|
48 | |
---|
49 | char * field_name( char * tmp, node_t * p , int tag ) ; |
---|
50 | char * dimension_with_colons( char * pre, char * tmp, node_t * p, char * post) ; |
---|
51 | char * dimension_with_ones( char * pre, char * tmp, node_t * p, char * post) ; |
---|
52 | char * dimension_with_ranges( char * ref , char * pre, char * tmp, node_t * p, char * post, char * nlstructname) ; |
---|
53 | char * index_with_firstelem( char * pre , char * dref , char * tmp , node_t * p , char * post ) ; |
---|
54 | |
---|
55 | char * declare_array_as_pointer( char * tmp, node_t * p ) ; |
---|
56 | char * field_type( char * tmp , node_t * p ) ; |
---|
57 | |
---|
58 | int init_core_table() ; |
---|
59 | int add_core_name ( char * name ) ; |
---|
60 | int get_num_cores() ; |
---|
61 | char * get_core_name ( char * name ) ; |
---|
62 | char * get_corename_i(int i) ; |
---|
63 | |
---|
64 | /* For typedef history -ajb */ |
---|
65 | int init_typedef_history() ; |
---|
66 | int add_typedef_name ( char * name ) ; |
---|
67 | int get_num_typedefs() ; |
---|
68 | char * get_typedef_name ( char * name ) ; |
---|
69 | char * get_typename_i(int i) ; |
---|
70 | |
---|
71 | int gen_alloc ( char * dirname ) ; |
---|
72 | int gen_alloc1 ( char * dirname , char * corename ) ; |
---|
73 | int gen_alloc2 ( FILE * fp , char * structname , char * corename , node_t * node ) ; |
---|
74 | |
---|
75 | int gen_module_state_description ( char * dirname ) ; |
---|
76 | int gen_module_state_description1 ( FILE * fp , node_t * node ) ; |
---|
77 | |
---|
78 | int gen_scalar_indices ( char * dirname ) ; |
---|
79 | int gen_scalar_indices1 ( FILE * fp ) ; |
---|
80 | |
---|
81 | int gen_actual_args ( char * dirname ) ; |
---|
82 | int gen_dummy_args ( char * dirname ) ; |
---|
83 | int gen_dummy_decls ( char * dn ) ; |
---|
84 | int gen_args ( char * dirname , char * corename , int sw ) ; |
---|
85 | int gen_args1 ( FILE * fp , char * outstr, char * structname , char * corename , node_t * node , int *linelen , int sw , int deep ) ; |
---|
86 | |
---|
87 | int gen_scalar_derefs ( char * dirname ) ; |
---|
88 | int scalar_derefs ( char * dirname , char * corename ) ; |
---|
89 | int scalar_derefs1 ( FILE * fp , char * corename , node_t * node, int direction ) ; |
---|
90 | |
---|
91 | int set_mark ( int val , node_t * lst ) ; |
---|
92 | int set_mark_4d ( int val , node_t * lst ) ; |
---|
93 | |
---|
94 | int gen_i1_decls ( char * dn ) ; |
---|
95 | int gen_get_nl_config ( char * dirname ) ; |
---|
96 | |
---|
97 | int gen_config_assigns ( char * dirname ) ; |
---|
98 | int gen_config_reads ( char * dirname ) ; |
---|
99 | |
---|
100 | char * set_mem_order( node_t * node , char * str , int n ) ; |
---|
101 | |
---|
102 | int gen_wrf_io ( char * dirname ) ; |
---|
103 | int set_dim_strs ( node_t *node , char ddim[3][2][NAMELEN], char mdim[3][2][NAMELEN], char pdim[3][2][NAMELEN] , char * prepend, int sw_allow_stagger ) ; |
---|
104 | int gen_wrf_io2 ( FILE * fp , char * fname , char * structname , char * fourdname , node_t * node , int io_mask , int sw_io ) ; |
---|
105 | |
---|
106 | int gen_namelist_defines ( char * dirname , int sw_dimension ) ; |
---|
107 | int gen_namelist_defaults ( char * dirname ) ; |
---|
108 | |
---|
109 | int gen_model_data_ord ( char * dirname ) ; |
---|
110 | |
---|
111 | int get_elem ( char * structname , char * nlstructname , char * tx , int i , node_t * p , int first_last ) ; |
---|
112 | |
---|
113 | #define PROTOS_H |
---|
114 | #endif |
---|
115 | |
---|