diff liboctave/mk-ops.awk @ 4964:269c3d6c0569

[project @ 2004-09-04 01:16:28 by jwe]
author jwe
date Sat, 04 Sep 2004 01:16:28 +0000
parents 334a27c8f453
children 160365410ad4
line wrap: on
line diff
--- a/liboctave/mk-ops.awk
+++ b/liboctave/mk-ops.awk
@@ -137,8 +137,18 @@
 
           printf ("#include \"mx-op-defs.h\"\n") >> h_file;
 
-          printf ("%s%s_OP_DECLS (%s, %s, %s)\n", lhs_class,
-		  rhs_class, result_type, lhs_type, rhs_type) >> h_file
+          if (bin_ops)
+            printf ("%s%s_BIN_OP_DECLS (%s, %s, %s)\n", lhs_class,
+		    rhs_class, result_type, lhs_type, rhs_type) >> h_file
+
+          if (cmp_ops)
+            printf ("%s%s_CMP_OP_DECLS (%s, %s)\n", lhs_class,
+		    rhs_class, lhs_type, rhs_type) >> h_file
+
+          if (bool_ops)
+            printf ("%s%s_BOOL_OP_DECLS (%s, %s)\n", lhs_class,
+		    rhs_class, lhs_type, rhs_type) >> h_file
+
 
           print "#endif" >> h_file;