OSDN Git Service

Replace inclusion of <stdio.h> with "system.h"
[pf3gnuchains/gcc-fork.git] / gcc / varray.c
index 34ce80b..a89fbf8 100644 (file)
@@ -1,5 +1,5 @@
 /* Virtual array support.
 /* Virtual array support.
-   Copyright (C) 1998 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
    Contributed by Cygnus Solutions.
 
    This file is part of GNU CC.
    Contributed by Cygnus Solutions.
 
    This file is part of GNU CC.
@@ -40,8 +40,9 @@ varray_init (num_elements, element_size, name)
   varray_type ptr = (varray_type) xcalloc (VARRAY_HDR_SIZE + data_size, 1);
 
   ptr->num_elements = num_elements;
   varray_type ptr = (varray_type) xcalloc (VARRAY_HDR_SIZE + data_size, 1);
 
   ptr->num_elements = num_elements;
+  ptr->elements_used = 0;
   ptr->element_size = element_size;
   ptr->element_size = element_size;
-  ptr->name        = name;
+  ptr->name = name;
   return ptr;
 }
 
   return ptr;
 }
 
@@ -73,7 +74,7 @@ varray_grow (va, n)
 
 #if defined ENABLE_CHECKING && (GCC_VERSION >= 2007)
 
 
 #if defined ENABLE_CHECKING && (GCC_VERSION >= 2007)
 
-extern void error PVPROTO ((const char *, ...))        ATTRIBUTE_PRINTF_1;
+extern void error PARAMS ((const char *, ...)) ATTRIBUTE_PRINTF_1;
 
 void
 varray_check_failed (va, n, file, line, function)
 
 void
 varray_check_failed (va, n, file, line, function)