pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:1:   /*   || 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.342 2008/06/27 16:23:10 grubba Exp $ + || $Id: pike_types.c,v 1.343 2008/06/28 01:26:36 mast Exp $   */      #include "global.h"   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"
pike.git/src/pike_types.c:7304:    implements_mode=0;       match_types(type_a, type_b);      #if 0    if(!(implements_a && implements_b &&    type_a->str[0]==T_OBJECT &&    type_b->str[0]==T_OBJECT))   #endif /* 0 */    { -  struct pike_string *s1, *s2; -  +     ref_push_type_value(type_a);    yytype_report(severity_level, NULL, 0, NULL, a_file, a_line, NULL,    1, "Expected: %O.");    ref_push_type_value(type_b);    yytype_report(severity_level, NULL, 0, NULL, b_file, b_line, NULL,    1, "Got : %O.");    }       /* Protect against circularities. */    if (BEGIN_CYCLIC(type_a, type_b)) {
pike.git/src/pike_types.c:7355:    }    low_make_pike_type(type_string, cont);    low_make_function_type(*cont, cont);    push_reverse_type(T_FUNCTION);   }      static void low_make_pike_type(unsigned char *type_string,    unsigned char **cont)   {    unsigned INT32 type; -  struct pike_type *tmp; +        switch(type = *type_string) {   #ifdef PIKE_DEBUG    case T_SCOPE:    Pike_fatal("Not supported yet.\n");   #endif    case T_ASSIGN:    if ((type_string[1] < '0') || (type_string[1] > '9')) {    Pike_fatal("low_make_pike_type(): Bad marker: %d\n", type_string[1]);    }