diff options
| author | erco77 <erco@seriss.com> | 2020-08-01 14:35:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-01 14:35:44 -0700 |
| commit | 7abc09ad89b4c3d0c17ee8dc9d02ccd261cd13f2 (patch) | |
| tree | 72e461bac5930f8a319d48a6ea99ba793dd35a8b /fluid/file.cxx | |
| parent | 7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff) | |
| parent | e9688822ec68f066f425953278a853e049b93dfb (diff) | |
Merge pull request #116 from erco77/fl_strdup
fl_strdup() implemented + deployed
Diffstat (limited to 'fluid/file.cxx')
| -rw-r--r-- | fluid/file.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fluid/file.cxx b/fluid/file.cxx index dd2ef345c..30335a232 100644 --- a/fluid/file.cxx +++ b/fluid/file.cxx @@ -25,6 +25,7 @@ #include <stdarg.h> #include "alignment_panel.h" #include <FL/Fl.H> +#include <FL/fl_string.h> #include "Fl_Widget_Type.h" //////////////////////////////////////////////////////////////// @@ -405,19 +406,19 @@ static void read_children(Fl_Type *p, int paste) { goto CONTINUE; } if (!strcmp(c,"i18n_function")) { - i18n_function = strdup(read_word()); + i18n_function = fl_strdup(read_word()); goto CONTINUE; } if (!strcmp(c,"i18n_file")) { - i18n_file = strdup(read_word()); + i18n_file = fl_strdup(read_word()); goto CONTINUE; } if (!strcmp(c,"i18n_set")) { - i18n_set = strdup(read_word()); + i18n_set = fl_strdup(read_word()); goto CONTINUE; } if (!strcmp(c,"i18n_include")) { - i18n_include = strdup(read_word()); + i18n_include = fl_strdup(read_word()); goto CONTINUE; } if (!strcmp(c,"i18n_type")) @@ -431,13 +432,13 @@ static void read_children(Fl_Type *p, int paste) { goto CONTINUE; } if (!strcmp(c,"header_name")) { - if (!header_file_set) header_file_name = strdup(read_word()); + if (!header_file_set) header_file_name = fl_strdup(read_word()); else read_word(); goto CONTINUE; } if (!strcmp(c,"code_name")) { - if (!code_file_set) code_file_name = strdup(read_word()); + if (!code_file_set) code_file_name = fl_strdup(read_word()); else read_word(); goto CONTINUE; } |
