Author: matt
Date: 2011-08-13 12:46:04 -0700 (Sat, 13 Aug 2011)
New Revision: 8954
Log:
Silly line endings :-(
Modified:
branches/branch-3.0/fluid/code.cxx
branches/branch-3.0/fluid/file.cxx
branches/branch-3.0/fluid/fluid.cxx
Modified: branches/branch-3.0/fluid/code.cxx
===================================================================
--- branches/branch-3.0/fluid/code.cxx 2011-08-13 19:40:08 UTC (rev 8953)
+++ branches/branch-3.0/fluid/code.cxx 2011-08-13 19:46:04 UTC (rev 8954)
@@ -344,9 +344,6 @@
extern Fl_Class_Type *current_class;
int write_code(const char *s, const char *t) {
- const char *filemode = "w";
- if (write_sourceview)
- filemode = "wb";
write_number++;
delete id_root; id_root = 0;
indentation = 0;
@@ -354,13 +351,13 @@
current_widget_class = 0L;
if (!s) code_file = stdout;
else {
- FILE *f = fltk3::fopen(s, filemode);
+ FILE *f = fltk3::fopen(s, "wb");
if (!f) return 0;
code_file = f;
}
if (!t) header_file = stdout;
else {
- FILE *f = fltk3::fopen(t, filemode);
+ FILE *f = fltk3::fopen(t, "wb");
if (!f) {fclose(code_file); return 0;}
header_file = f;
}
@@ -468,7 +465,7 @@
}
int write_strings(const char *sfile) {
- FILE *fp = fltk3::fopen(sfile, "w");
+ FILE *fp = fltk3::fopen(sfile, "wb");
Fl_Type *p;
Fl_Widget_Type *w;
int i;
Modified: branches/branch-3.0/fluid/file.cxx
===================================================================
--- branches/branch-3.0/fluid/file.cxx 2011-08-13 19:40:08 UTC (rev 8953)
+++ branches/branch-3.0/fluid/file.cxx 2011-08-13 19:46:04 UTC (rev 8954)
@@ -48,7 +48,7 @@
int open_write(const char *s) {
if (!s) {fout = stdout; return 1;}
- FILE *f = fltk3::fopen(s,"w");
+ FILE *f = fltk3::fopen(s,"wb");
if (!f) return 0;
fout = f;
return 1;
Modified: branches/branch-3.0/fluid/fluid.cxx
===================================================================
--- branches/branch-3.0/fluid/fluid.cxx 2011-08-13 19:40:08 UTC (rev 8953)
+++ branches/branch-3.0/fluid/fluid.cxx 2011-08-13 19:46:04 UTC (rev 8954)
@@ -610,7 +610,7 @@
return;
}
- if ((outfile = fltk3::fopen(cutfname(1), "w")) == NULL) {
+ if ((outfile = fltk3::fopen(cutfname(1), "wb")) == NULL) {
fltk3::alert("Error writing buffer file \"%s\":\n%s", cutfname(1),
strerror(errno));
fclose(infile);
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit