pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:1:   /* -*- c -*-   || 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: language.yacc,v 1.409 2008/04/04 13:16:19 grubba Exp $ + || $Id: language.yacc,v 1.410 2008/04/06 11:49:58 grubba Exp $   */      %pure_parser      %token TOK_ARROW      /*    * Basic value pushing    */   %token TOK_CONSTANT TOK_FLOAT TOK_STRING
pike.git/src/language.yacc:3729:       for (inherit_depth = 0;; inherit_depth++, inherit_state = inherit_state->previous) {    int inh = find_inherit(inherit_state->new_program, $1->u.sval.u.string);    if (inh) {    e = inh;    break;    }    if (inherit_depth == compilation_depth) break;    if (!TEST_COMPAT (7, 2) &&    ID_FROM_INT (inherit_state->previous->new_program, -  inherit_state->previous->parent_identifier)->name == +  inherit_state->parent_identifier)->name ==    $1->u.sval.u.string) {    e = 0;    break;    }    }    if (e == -1) {    if (TEST_COMPAT (7, 2))    my_yyerror("No such inherit %S.", $1->u.sval.u.string);    else {    if ($1->u.sval.u.string == this_program_string) {