Branch: Tag:

1999-12-14

1999-12-14 08:41:58 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

now you can write functions in functions

Rev: src/language.yacc:1.145
Rev: src/las.c:1.142
Rev: src/las.h:1.31
Rev: src/program.c:1.182

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.181 1999/12/13 23:08:04 grubba Exp $"); + RCSID("$Id: program.c,v 1.182 1999/12/14 08:41:58 hubbe Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
1925:       n = isidentifier(name);    +  /* +  * FIXME: +  * No constants should be allowed to contain +  * any fake objects. (Fake objects can be +  * detected thus: fake_ob->next == fake_ob +  * +  * I would prefer to find a way to detect +  * this without recursing through arrays, +  * mapping etc. etc. +  * +  * /Hubbe +  */       if(new_program->flags & PROGRAM_PASS_1_DONE)    {
3249:    e=--(compiler_frame->current_number_of_locals);    free_string(compiler_frame->variable[e].name);    free_string(compiler_frame->variable[e].type); +  if(compiler_frame->variable[e].def) +  free_node(compiler_frame->variable[e].def);    }   }