diff options
author | Florian Jung <flo@thinkpad.(none)> | 2011-01-06 20:16:19 +0100 |
---|---|---|
committer | Florian Jung <flo@thinkpad.(none)> | 2011-01-06 20:16:19 +0100 |
commit | e78131ccbbcb81da94e5992f788c6ea291a2050d (patch) | |
tree | ae15e6f8d77be250f168f1871c5a4de34c990abb /note_compiler/main.cpp | |
parent | e8382521c1a35ad59efea5e8cebb915a67c0008e (diff) |
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!)
Diffstat (limited to 'note_compiler/main.cpp')
-rw-r--r-- | note_compiler/main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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) |