mirror of
https://github.com/fltk/fltk.git
synced 2026-06-02 07:26:57 +08:00
FLUID: Stroe uid's in hex
This commit is contained in:
+95
-95
File diff suppressed because it is too large
Load Diff
+210
-210
File diff suppressed because it is too large
Load Diff
@@ -765,6 +765,8 @@ int Fd_Code_Writer::write_code(const char *s, const char *t, bool to_sourceview)
|
|||||||
// Remember the last code file location for MergeBack
|
// Remember the last code file location for MergeBack
|
||||||
if (s && g_project.write_mergeback_data && !to_sourceview) {
|
if (s && g_project.write_mergeback_data && !to_sourceview) {
|
||||||
Fl_String proj_filename = g_project.projectfile_path() + g_project.projectfile_name();
|
Fl_String proj_filename = g_project.projectfile_path() + g_project.projectfile_name();
|
||||||
|
int i, n = proj_filename.size();
|
||||||
|
for (i=0; i<n; i++) if (proj_filename[i]=='\\') proj_filename[i] = '/';
|
||||||
Fl_Preferences build_records(Fl_Preferences::USER_L, "fltk.org.build", "fluid");
|
Fl_Preferences build_records(Fl_Preferences::USER_L, "fltk.org.build", "fluid");
|
||||||
Fl_Preferences path(build_records, proj_filename.c_str());
|
Fl_Preferences path(build_records, proj_filename.c_str());
|
||||||
path.set("code", s);
|
path.set("code", s);
|
||||||
|
|||||||
@@ -1291,6 +1291,8 @@ int mergeback_code_files()
|
|||||||
if (!batch_mode) {
|
if (!batch_mode) {
|
||||||
Fl_Preferences build_records(Fl_Preferences::USER_L, "fltk.org.build", "fluid");
|
Fl_Preferences build_records(Fl_Preferences::USER_L, "fltk.org.build", "fluid");
|
||||||
Fl_Preferences path(build_records, proj_filename.c_str());
|
Fl_Preferences path(build_records, proj_filename.c_str());
|
||||||
|
int i, n = proj_filename.size();
|
||||||
|
for (i=0; i<n; i++) if (proj_filename[i]=='\\') proj_filename[i] = '/';
|
||||||
preferences_get(path, "code", code_filename, "");
|
preferences_get(path, "code", code_filename, "");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user