removed
[libfirm] / ir / adt / array.c
index 4e95406..b73eac2 100644 (file)
@@ -1,13 +1,23 @@
-/* Array --- dynamic & flexible arrays.
-   Copyright (C) 1995, 1996 Markus Armbruster
-   All rights reserved. */
+/*
+ * Project:     libFIRM
+ * File name:   ir/adt/array.c
+ * Purpose:     Array --- dynamic & flexible arrays.
+ * Author:      Markus Armbruster
+ * Modified by:
+ * Created:     1999 by getting from fiasco
+ * CVS-ID:      $Id$
+ * Copyright:   (c) 1995, 1996 Markus Armbruster
+ * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
+ */
 
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
 
 #include <stdlib.h>
+
 #include "array.h"
+#include "xmalloc.h"
 
 /* Undefine the macros to get the functions instead, cf tmalloc.c.  */
 #undef xmalloc
 #undef xstrdup
 #undef xfree
 
+#ifndef MAX
+# define MAX(a,b) ((a) > (b) ? (a) : (b))
+#endif
+#ifndef MIN
+# define MIN(a,b) ((a) > (b) ? (b) : (a))
+#endif
 
 _arr_descr arr_mt_descr
 #ifndef NDEBUG
@@ -80,7 +96,7 @@ _arr_setlen (void *elts, int nelts, size_t elts_size)
   return dp->v.elts;
 }
 
-
+\
 void *
 _arr_resize (void *elts, int nelts, size_t eltsize)
 {