Branch: Tag:

2005-11-08

2005-11-08 11:46:05 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compat with gcc 4.0.

Rev: src/pike_types.c:1.250

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: pike_types.c,v 1.249 2005/09/09 14:50:18 grubba Exp $ + || $Id: pike_types.c,v 1.250 2005/11/08 11:46:05 grubba Exp $   */      #include "global.h"
2306:    * match two type strings, return zero if they don't match, and return    * the part of 'a' that _did_ match if it did.    */ + #ifdef PIKE_TYPE_DEBUG + static struct pike_type *low_match_types2(struct pike_type *a, +  struct pike_type *b, +  int flags); + #endif   static struct pike_type *low_match_types(struct pike_type *a,    struct pike_type *b,    int flags)
2313: Inside #if defined(PIKE_TYPE_DEBUG)
  {    int e;    char *s; -  static struct pike_type *low_match_types2(struct pike_type *a, -  struct pike_type *b, -  int flags); +        if (l_flag>2) {    dynamic_buffer save_buf;
2390: Inside #if defined(PIKE_TYPE_DEBUG)
   struct pike_type *b,    int flags)   #endif -  +    {    int correct_args;    struct pike_type *ret;
2843:    * with a mapping(int:int) won't change the type of the mapping after the    * operation.    */ + #ifdef PIKE_TYPE_DEBUG + static int low_pike_types_le2(struct pike_type *a, struct pike_type *b, +  int array_cnt, unsigned int flags); + #endif /* PIKE_TYPE_DEBUG */   static int low_pike_types_le(struct pike_type *a, struct pike_type *b,    int array_cnt, unsigned int flags)   #ifdef PIKE_TYPE_DEBUG   {    int e;    char *s; -  static int low_pike_types_le2(struct pike_type *a, struct pike_type *b, -  int array_cnt, unsigned int flags); +     int res;    char buf[50];   
2892: Inside #if defined(PIKE_TYPE_DEBUG)
  static int low_pike_types_le2(struct pike_type *a, struct pike_type *b,    int array_cnt, unsigned int flags)   #endif /* PIKE_TYPE_DEBUG */ -  +    {    int ret;