* ada-lang.c (grow_vect): Return the new array instead of
[deliverable/binutils-gdb.git] / gdb / ada-lang.h
index 18a662a0730cdc30526b0b8a9a0c83239729eac8..3df4aa496c8cffdb5bbdc89c804d6e00a1e237f9 100644 (file)
@@ -171,9 +171,9 @@ extern struct task_entry *task_list;
    least M objects, updating V and S as necessary. */
 
 #define GROW_VECT(v, s, m)                                              \
-   if ((s) < (m)) grow_vect ((void**) &(v), &(s), (m), sizeof(*(v)));
+   if ((s) < (m)) (v) = grow_vect (v, &(s), m, sizeof *(v));
 
-extern void grow_vect (void **, size_t *, size_t, int);
+extern void *grow_vect (void *, size_t *, size_t, int);
 
 extern int ada_get_field_index (const struct type *type,
                                 const char *field_name,
This page took 0.023185 seconds and 4 git commands to generate.