Fix whitespace problem in my most recent entry.
[deliverable/binutils-gdb.git] / gdb / values.c
index 3f7c2d5ca21f8d51ab5ce04e94649a7c7090218a..f17373dbe14b49f6daf7c715a1c2f52331c2b459 100644 (file)
@@ -331,9 +331,9 @@ clear_value_history (void)
     {
       for (i = 0; i < VALUE_HISTORY_CHUNK; i++)
        if ((val = value_history_chain->values[i]) != NULL)
-         free ((PTR) val);
+         xfree (val);
       next = value_history_chain->next;
-      free ((PTR) value_history_chain);
+      xfree (value_history_chain);
       value_history_chain = next;
     }
   value_history_count = 0;
@@ -475,7 +475,7 @@ set_internalvar (struct internalvar *var, value_ptr val)
      something in the value chain (i.e., before release_value is
      called), because after the error free_all_values will get called before
      long.  */
-  free ((PTR) var->value);
+  xfree (var->value);
   var->value = newval;
   release_value (newval);
   /* End code which must not call error().  */
@@ -499,9 +499,9 @@ clear_internalvars (void)
     {
       var = internalvars;
       internalvars = var->next;
-      free ((PTR) var->name);
-      free ((PTR) var->value);
-      free ((PTR) var);
+      xfree (var->name);
+      xfree (var->value);
+      xfree (var);
     }
 }
 
@@ -1466,12 +1466,9 @@ value_from_double (struct type *type, DOUBLEST num)
    0 when it is using the value returning conventions (this often
    means returning pointer to where structure is vs. returning value). */
 
+/* ARGSUSED */
 value_ptr
-value_being_returned (valtype, retbuf, struct_return)
-     register struct type *valtype;
-     char *retbuf;
-     int struct_return;
-     /*ARGSUSED */
+value_being_returned (struct type *valtype, char *retbuf, int struct_return)
 {
   register value_ptr val;
   CORE_ADDR addr;
@@ -1530,13 +1527,10 @@ generic_use_struct_convention (int gcc_p, struct type *value_type)
    is the type returned by the function.  GCC_P is nonzero if compiled
    with GCC.  */
 
+/* ARGSUSED */
 int
-using_struct_return (function, funcaddr, value_type, gcc_p)
-     value_ptr function;
-     CORE_ADDR funcaddr;
-     struct type *value_type;
-     int gcc_p;
-     /*ARGSUSED */
+using_struct_return (value_ptr function, CORE_ADDR funcaddr,
+                    struct type *value_type, int gcc_p)
 {
   register enum type_code code = TYPE_CODE (value_type);
 
This page took 0.024333 seconds and 4 git commands to generate.