Branch: Tag:

2010-04-19

2010-04-19 15:05:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed return types for visit_svalues() and visit_short_svalue().

visit_svalues() needs to have the same return type as
gc_mark_{,weak_}svalues() and gc_cycle_check_{,weak_}svalues()
(ie TYPE_FIELD), and visit_short_svalue() needs to the same return type as
gc_cycle_check_{,weak_}short_svalue() and gc_mark_{,weak_}short_svalue()
(ie int), for the gc_recurse_{,weak_}{short_svalue,svalues}() macros to work.

Rev: src/gc.c:1.347
Rev: src/gc.h:1.143

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: gc.c,v 1.346 2010/04/19 14:01:36 mast Exp $ + || $Id: gc.c,v 1.347 2010/04/19 15:05:20 grubba Exp $   */      #include "global.h"
4276:    return PIKE_T_UNKNOWN;   }    - PMOD_EXPORT void real_visit_svalues (const struct svalue *s, size_t num, + PMOD_EXPORT TYPE_FIELD real_visit_svalues (const struct svalue *s, size_t num,    int ref_type)   {    for (; num; num--, s++)    visit_svalue (s, ref_type); -  +  return 0;   }      /* Memory counting