pike.git / src / pike_types.cmod

version» Context lines:

pike.git/src/pike_types.cmod:925:    *Pike_compiler->type_stackp = mk_type(PIKE_T_ATTRIBUTE,    (void *)attr,    *Pike_compiler->type_stackp,    PT_COPY_MORE|PT_COPY_CDR);    TYPE_STACK_DEBUG("push_type_attribute");   }      void debug_push_type_name(struct pike_string *name)   {    /* fprintf(stderr, "push_type_name(\"%s\")\n", name->str); */ +  if ((peek_type_stack() == zero_type_string) && (name->len == 4) && +  !name->size_shift && !strcmp(name->str, "zero")) { +  /* Do not generate a name node for zero = zero. +  * This simplifies detecting zero. +  */ +  return; +  }    add_ref(name);    *Pike_compiler->type_stackp = mk_type(PIKE_T_NAME,    (void *)name,    *Pike_compiler->type_stackp,    PT_COPY_MORE|PT_COPY_CDR);    TYPE_STACK_DEBUG("push_type_name");   }      static struct pike_type *apply_type_operator(enum PIKE_TYPE op,    struct pike_type *arg1,