Branch: Tag:

2000-09-26

2000-09-26 22:19:03 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

basic 0.6 compatibility implemented

Rev: lib/0.6/modules/Array.pmod:1.1
Rev: lib/0.6/modules/__default.pmod:1.1
Rev: lib/0.6/modules/readline.pmod:1.1
Rev: lib/master.pike.in:1.133
Rev: src/docode.c:1.83
Rev: src/language.yacc:1.214
Rev: src/las.c:1.216

110:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.213 2000/09/26 00:17:45 hubbe Exp $"); + RCSID("$Id: language.yacc,v 1.214 2000/09/26 22:19:03 hubbe Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
2365:      return: TOK_RETURN    { -  if(!match_types(Pike_compiler->compiler_frame->current_return_type, +  if(!TEST_COMPAT(0,6) && +  !match_types(Pike_compiler->compiler_frame->current_return_type,    void_type_string))    {    yyerror("Must return a value for a non-void function.");