Mercurial > octave-nkf
diff liboctave/mk-ops.awk @ 9578:7dafdb8b062f
refactor comparison ops implementations
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 27 Aug 2009 11:19:33 +0200 |
parents | 3d6a9aea2aea |
children | 42d098307c30 |
line wrap: on
line diff
--- a/liboctave/mk-ops.awk Thu Aug 27 08:38:56 2009 +0200 +++ b/liboctave/mk-ops.awk Thu Aug 27 11:19:33 2009 +0200 @@ -222,38 +222,8 @@ } if (cmp_ops) - { - if (lhs_class == "S" || rhs_class == "S") - { - if (lhs_core_type) - { - if (rhs_core_type) - printf ("%s%s_CMP_OPS2 (%s, %s, %s, %s, %s, %s)\n", - lhs_class, rhs_class, lhs_type, lhs_conv, - rhs_type, rhs_conv, - lhs_core_type, rhs_core_type) >> cc_file - else - printf ("%s%s_CMP_OPS1 (%s, %s, %s, %s, %s)\n", - lhs_class, rhs_class, lhs_type, lhs_conv, - rhs_type, rhs_conv, lhs_core_type) >> cc_file - } - else - { - if (rhs_core_type) - printf ("%s%s_CMP_OPS1 (%s, %s, %s, %s, %s)\n", - lhs_class, rhs_class, lhs_type, lhs_conv, - rhs_type, rhs_conv, rhs_core_type) >> cc_file - else - printf ("%s%s_CMP_OPS (%s, %s, %s, %s)\n", - lhs_class, rhs_class, lhs_type, lhs_conv, - rhs_type, rhs_conv) >> cc_file - } - } - else - printf ("%s%s_CMP_OPS (%s, %s, %s, %s)\n", - lhs_class, rhs_class, lhs_type, lhs_conv, - rhs_type, rhs_conv) >> cc_file - } + printf ("%s%s_CMP_OPS (%s, %s)\n", + lhs_class, rhs_class, lhs_type, rhs_type) >> cc_file if (bool_ops) printf ("%s%s_BOOL_OPS (%s, %s)\n", lhs_class, rhs_class,