Branch: Tag:

2001-02-08

2001-02-08 00:53:07 by Martin Stjernholm <mast@lysator.liu.se>

Turn off tracing when sorting the index array in describe_mapping, since
that can cause recursion in the trace functions, which makes the dynamic
buffer stuff segfault.

Rev: src/mapping.c:1.116

5:   \*/   /**/   #include "global.h" - RCSID("$Id: mapping.c,v 1.115 2001/01/25 08:37:59 hubbe Exp $"); + RCSID("$Id: mapping.c,v 1.116 2001/02/08 00:53:07 mast Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"
1565:    my_strcat("([ ])");    }    else { +  int save_t_flag = t_flag; +     if (m->data->size == 1) {    my_strcat("([ /* 1 element */\n");    } else {
1572:    my_strcat(buf);    }    +  t_flag = 0;    if(!SETJMP(catch))    sort_array_destructively(a);    UNSETJMP(catch); -  +  t_flag = save_t_flag;       /* no mapping locking required (I hope) */    for(e = 0; e < a->size; e++)