diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2002-11-05 06:45:41 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2002-11-05 06:45:41 +0000 |
| commit | 66dabdb8f53231eff304cbb944cd900ddbce00af (patch) | |
| tree | 937e93568d1173a5e92f3a0f55a3968f4a5a3a34 /fluid/Fl_Function_Type.cxx | |
| parent | b9e7232d262389e5e732c0bc661cbde58c24e2a3 (diff) | |
Added callbacks to Fl_Text_Editor.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2824 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
| -rw-r--r-- | fluid/Fl_Function_Type.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx index f24ab48df..a1cf68f51 100644 --- a/fluid/Fl_Function_Type.cxx +++ b/fluid/Fl_Function_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.9 2002/11/03 00:01:19 matthiaswm Exp $" +// "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.10 2002/11/05 06:45:40 matthiaswm Exp $" // // C function type code for the Fast Light Tool Kit (FLTK). // @@ -28,6 +28,7 @@ #include <FL/fl_show_input.H> #include "../src/flstring.h" #include <stdio.h> +#include <malloc.h> extern int i18n_type; extern const char* i18n_include; @@ -337,9 +338,10 @@ void Fl_Code_Type::open() { else if (w == code_panel_ok) break; else if (!w) Fl::wait(); } - const char*c = code_input->buffer()->text(); + char*c = code_input->buffer()->text(); message = c_check(c); if (message) continue; name(c); + free(c); break; } BREAK2: @@ -705,5 +707,5 @@ void Fl_Class_Type::write_code2() { } // -// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.9 2002/11/03 00:01:19 matthiaswm Exp $". +// End of "$Id: Fl_Function_Type.cxx,v 1.15.2.16.2.10 2002/11/05 06:45:40 matthiaswm Exp $". // |
