pike.git/
src/
array.c
Branch:
Tag:
Non-build tags
All tags
No tags
2004-09-27
2004-09-27 21:26:13 by Martin Stjernholm <mast@lysator.liu.se>
a29a8752f0eabfce9f243051d7e597af19e57ed4 (
29
lines) (+
28
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Some disabled debug code in merge_array_with_order.
Rev: src/array.c:1.171
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: array.c,v 1.
170
2004/09/
22
13
:
40
:
27
mast Exp $
+
|| $Id: array.c,v 1.
171
2004/09/
27
21
:
26
:
13
mast Exp $
*/ #include "global.h"
1579:
zipper=merge(tmpa,tmpb,op); SET_ONERROR(r3,free,zipper);
+
#if 0
+
{
+
int i;
-
+
simple_describe_array (a);
+
simple_describe_array (b);
+
+
fprintf (stderr, "order a: ");
+
for (i = 0; i < a->size; i++)
+
fprintf (stderr, "%d ", ordera[i]);
+
fprintf (stderr, "\n");
+
+
fprintf (stderr, "order b: ");
+
for (i = 0; i < b->size; i++)
+
fprintf (stderr, "%d ", orderb[i]);
+
fprintf (stderr, "\n");
+
+
simple_describe_array (tmpa);
+
simple_describe_array (tmpb);
+
+
fprintf (stderr, "zipper: ");
+
for (i = 1; i < *zipper + 1; i++)
+
fprintf (stderr, "%d ", zipper[i]);
+
fprintf (stderr, "\n");
+
}
+
#endif
+
fsort_with_order( (zipper+1), zipper+*zipper, array_merge_fun, ordera, orderb );