Branch: Tag:

2004-09-22

2004-09-22 12:13:22 by Martin Stjernholm <mast@lysator.liu.se>

Backported return value behavior for array_fix_type_field so that cpp.c
compiles with rtldebug.

Rev: src/array.c:1.161
Rev: src/array.h:1.60

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.160 2004/09/16 17:37:34 grubba Exp $ + || $Id: array.c,v 1.161 2004/09/22 12:13:22 mast Exp $   */      #include "global.h"
27:   #include "multiset.h"   #include "mapping.h"    - RCSID("$Id: array.c,v 1.160 2004/09/16 17:37:34 grubba Exp $"); + RCSID("$Id: array.c,v 1.161 2004/09/22 12:13:22 mast Exp $");      PMOD_EXPORT struct array empty_array=   {
1196:   }      /* Maybe I should have a 'clean' flag for this computation */ - PMOD_EXPORT void array_fix_type_field(struct array *v) + PMOD_EXPORT TYPE_FIELD array_fix_type_field(struct array *v)   {    int e;    TYPE_FIELD t;
1222: Inside #if defined(PIKE_DEBUG)
   v->type_field, t);    }   #endif -  v->type_field = t; +  return v->type_field = t;   }      #ifdef PIKE_DEBUG