I noticed a very stale comment in valarith.c. This patch fixes a few
comments in this area.
Reviewed-By: Andrew Burgess <aburgess@redhat.com>
}
}
\f
-/* The unary operators +, - and ~. They free the argument ARG1. */
+/* See value.h. */
struct value *
value_pos (struct value *arg1)
error (_("Argument to positive operation not a number."));
}
+/* See value.h. */
+
struct value *
value_neg (struct value *arg1)
{
error (_("Argument to negate operation not a number."));
}
+/* See value.h. */
+
struct value *
value_complement (struct value *arg1)
{
extern struct value *value_assign (struct value *toval,
struct value *fromval);
+/* The unary + operation. */
extern struct value *value_pos (struct value *arg1);
+/* The unary - operation. */
extern struct value *value_neg (struct value *arg1);
+/* The unary ~ operation -- but note that it also implements the GCC
+ extension, where ~ of a complex number is the complex
+ conjugate. */
extern struct value *value_complement (struct value *arg1);
extern struct value *value_struct_elt (struct value **argp,