From e78131ccbbcb81da94e5992f788c6ea291a2050d Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Thu, 6 Jan 2011 20:16:19 +0100 Subject: The synthesizer can now load the compiled notes There are still issues: - filtertest.prog.so: output_note-message which is not true - huge size of the .so (48K are too much!) --- note_compiler/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'note_compiler/main.cpp') diff --git a/note_compiler/main.cpp b/note_compiler/main.cpp index 8612bd2..3015551 100644 --- a/note_compiler/main.cpp +++ b/note_compiler/main.cpp @@ -741,11 +741,11 @@ void write_create_note() "}\n"; } -void write_destroy_note() +void write_destroy() { - out << "extern \"C\" void destroy_note(NoteSkel* obj)\n" + out << "void Note::destroy()\n" "{\n" - "\tdelete obj;\n" + "\tdelete this;\n" "}\n"; } @@ -770,6 +770,7 @@ void generate_source() //implementation of Note's functions write_ctor(); write_dtor(); + write_destroy(); write_empty_line(); write_recalc_factors(); @@ -795,9 +796,8 @@ void generate_source() write_empty_line(); write_empty_line(); - //implementation of create_new_note and destroy_note - write_create_note(); - write_destroy_note(); + //implementation of create_note and init_vars + include_file("interface.1"); } int main(int argc, char** argv) -- cgit v1.2.3