comparison liboctave/mk-ops.awk @ 8774:b756ce0002db

split implementation and interface in mx-op-defs and MArray-defs
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 17 Feb 2009 08:38:00 +0100
parents 4270ded9ddc6
children eb63fbe60fab
comparison
equal deleted inserted replaced
8773:9e3111d203c0 8774:b756ce0002db
160 printf ("class %s\n", rhs_type) >> h_file; 160 printf ("class %s\n", rhs_type) >> h_file;
161 else 161 else
162 printf ("#include \"%s\"\n", rhs_header) >> h_file; 162 printf ("#include \"%s\"\n", rhs_header) >> h_file;
163 } 163 }
164 164
165 printf ("#include \"mx-op-defs.h\"\n") >> h_file; 165 printf ("#include \"mx-op-decl.h\"\n") >> h_file;
166 166
167 if (bin_ops) 167 if (bin_ops)
168 printf ("%s%s_BIN_OP_DECLS (%s, %s, %s, OCTAVE_API)\n", lhs_class, 168 printf ("%s%s_BIN_OP_DECLS (%s, %s, %s, OCTAVE_API)\n", lhs_class,
169 rhs_class, result_type, lhs_type, rhs_type) >> h_file 169 rhs_class, result_type, lhs_type, rhs_type) >> h_file
170 170
189 print "#endif" >> cc_file; 189 print "#endif" >> cc_file;
190 190
191 print "#include \"Array-util.h\"" >> cc_file; 191 print "#include \"Array-util.h\"" >> cc_file;
192 192
193 printf ("#include \"%s\"\n", h_file) >> cc_file; 193 printf ("#include \"%s\"\n", h_file) >> cc_file;
194
195 printf ("#include \"mx-op-defs.h\"\n") >> cc_file;
194 196
195 for (i in bool_headers) 197 for (i in bool_headers)
196 { 198 {
197 printf ("#include \"%s\"\n", bool_headers[i]) >> cc_file; 199 printf ("#include \"%s\"\n", bool_headers[i]) >> cc_file;
198 delete bool_headers[i]; 200 delete bool_headers[i];