pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
2000-05-17
2000-05-17 19:30:59 by Henrik Grubbström (Grubba) <grubba@grubba.org>
b98c617d72002368a6a5435afe47d03172248c42 (
10
lines) (+
5
/-
5
)
[
Show
|
Annotate
]
Branch:
7.9
typeof() now returns a type and not a string.
Rev: src/language.yacc:1.186
109:
/* This is the grammar definition of Pike. */ #include "global.h"
-
RCSID("$Id: language.yacc,v 1.
185
2000/05/
11
14
:
09
:
45
grubba Exp $");
+
RCSID("$Id: language.yacc,v 1.
186
2000/05/
17
19
:
30
:
59
grubba Exp $");
#ifdef HAVE_MEMORY_H #include <memory.h> #endif
2442:
/* FIXME: Why build the node at all? */
-
tmp=mknode(F_COMMA_EXPR,$3,0);
+
tmp=mknode(F_COMMA_EXPR,
$3,
0);
-
s=
describe_type
(
tmp && CAR(tmp) && CAR(tmp)->type ? CAR(tmp)->type : mixed_type_string);
-
$$=
mkstrnode(s);
-
free_string
(s);
+
s=(tmp && CAR(tmp) && CAR(tmp)->type ? CAR(tmp)->type : mixed_type_string);
+
$$
=
mktypenode
(s);
free_node(tmp); } | TOK_TYPEOF '(' error ')' { $$=0; yyerrok; }