pike.git / src / las.c

version» Context lines:

pike.git/src/las.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: las.c,v 1.136 1999/12/09 23:24:10 grubba Exp $"); + RCSID("$Id: las.c,v 1.137 1999/12/13 23:41:07 grubba Exp $");      #include "language.h"   #include "interpret.h"   #include "las.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "lex.h"   #include "pike_types.h"
pike.git/src/las.c:100: Inside #if defined(PIKE_DEBUG)
   {    node *q;    for(q=n->parent;q;q=q->parent)    if(q->parent==n)    fatal("Cyclic node structure found.\n");    }    depth++;       if(car_is_node(n))    { + #ifndef SHARED_NODES    if(CAR(n)->parent != n)    fatal("Parent is wrong.\n"); -  + #endif /* !SHARED_NODES */       check_tree(CAR(n),depth);    }       if(cdr_is_node(n))    { -  + #ifndef SHARED_NODES    if(CDR(n)->parent != n)    fatal("Parent is wrong.\n"); -  + #endif /* !SHARED_NODES */       check_tree(CDR(n),depth);    }   }   #endif      INT32 count_args(node *n)   {    int a,b;    check_tree(n,0);
pike.git/src/las.c:193:    else    a=0;       if(cdr_is_node(n))    b=find_return_type(CDR(n));    else    b=0;       if(a)    { -  if(b && a!=b) return mixed_type_string; +  if(b && a!=b) return or_pike_types(a, b); +  add_ref(a);    return a;    } -  +  if (b) { +  add_ref(b);    return b;    } -  +  return 0; + }         #define NODES 256      #undef BLOCK_ALLOC_NEXT   #define BLOCK_ALLOC_NEXT u.node.a      BLOCK_ALLOC(node_s, NODES);      #undef BLOCK_ALLOC_NEXT