pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: pike_types.c,v 1.138 2000/09/08 16:34:49 grubba Exp $"); + RCSID("$Id: pike_types.c,v 1.139 2000/09/08 17:06:29 hubbe Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"   #include "constants.h"   #include "object.h"   #include "multiset.h"
pike.git/src/pike_types.c:3292:    }    reference_shared_string(ret);    return ret;       case T_PROGRAM:    {    char *a;    struct pike_string *tmp;    int id;    -  if(!s->u.program->identifiers) +  if(s->u.program->identifiers)    { -  a=function_type_string->str; -  if((tmp=zzap_function_return(a, s->u.program->id))) -  return tmp; -  } -  +     id=FIND_LFUN(s->u.program,LFUN_CREATE);    if(id>=0)    {    a=ID_FROM_INT(s->u.program, id)->type->str;    if((tmp=zzap_function_return(a, s->u.program->id)))    return tmp;    tmp=describe_type(ID_FROM_INT(s->u.program, id)->type);    /* yywarning("Failed to zzap function return for type: %s.", tmp->str);*/    free_string(tmp);    } -  +  }    -  a=tFunc(tVoid,tObj); +  a=tFunc( tNone ,tObj);    if((tmp=zzap_function_return(a, s->u.program->id)))    return tmp;       fatal("Completely failed to zzap function return!\n");    }       default:    type_stack_mark();    push_type(s->type);    return pop_unfinished_type();