* parse.y (struct local_vars): remove unused nofree member from

struct.

* parse.y (parser_free): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-02-24 07:05:48 +00:00
Родитель 1adef15072
Коммит 02c147f04e
2 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -1,3 +1,10 @@
Sat Feb 24 16:04:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y (struct local_vars): remove unused nofree member from
struct.
* parse.y (parser_free): ditto.
Sat Feb 24 15:57:19 2007 Shugo Maeda <shugo@ruby-lang.org>
* lib/thread.rb (ConditionVariable#broadcast): use Mutex

Просмотреть файл

@ -117,7 +117,6 @@ struct local_vars {
struct vtable *tbl;
struct vtable *dvars;
struct local_vars *prev;
int nofree;
};
#define DVARS_INHERIT ((void*)1)
@ -7970,7 +7969,6 @@ local_push_gen(struct parser_params *parser, int inherit_dvars)
local = ALLOC(struct local_vars);
local->prev = lvtbl;
local->tbl = 0;
local->nofree = 0;
local->dvars = inherit_dvars ? DVARS_INHERIT : DVARS_TOPSCOPE;
lvtbl = local;
}
@ -8684,8 +8682,7 @@ parser_free(void *ptr)
xfree(p->parser_tokenbuf);
}
for (local = p->parser_lvtbl; local; local = prev) {
if (local->tbl && !local->nofree)
xfree(local->tbl);
if (local->tbl) xfree(local->tbl);
prev = local->prev;
xfree(local);
}