mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 11:25:22 +08:00
Fixed indenting and some wording in previous changes to Fluid
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13028 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -824,7 +824,7 @@ void Fl_Data_Type::open() {
|
|||||||
else if (w == data_panel_ok) break;
|
else if (w == data_panel_ok) break;
|
||||||
else if (w == data_filebrowser) {
|
else if (w == data_filebrowser) {
|
||||||
goto_source_dir();
|
goto_source_dir();
|
||||||
const char *fn = fl_file_chooser("Load Data Verbose", 0L, data_filename->value(), 1);
|
const char *fn = fl_file_chooser("Load Inline Data", 0L, data_filename->value(), 1);
|
||||||
leave_source_dir();
|
leave_source_dir();
|
||||||
if (fn) {
|
if (fn) {
|
||||||
if (strcmp(fn, data_filename->value()))
|
if (strcmp(fn, data_filename->value()))
|
||||||
@@ -925,7 +925,7 @@ void Fl_Data_Type::write_code1() {
|
|||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fn = fn ? filename_ : "<no filename>";
|
fn = filename_ ? filename_ : "<no filename>";
|
||||||
}
|
}
|
||||||
if (is_in_class()) {
|
if (is_in_class()) {
|
||||||
write_public(public_);
|
write_public(public_);
|
||||||
|
|||||||
+15
-11
@@ -156,17 +156,20 @@ void write_cstring(const char *s, int length) {
|
|||||||
varused = 1;
|
varused = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (write_sourceview && ((s==NULL) || (length>1024))) {
|
// if we are rendering to the source code preview window, and the text is
|
||||||
if (length>=0)
|
// longer that four lines, we only render a placeholder.
|
||||||
fprintf(code_file, "\" ... %d bytes of text... \"", length);
|
if (write_sourceview && ((s==NULL) || (length>300))) {
|
||||||
else
|
if (length>=0)
|
||||||
fprintf(code_file, "\" ... text... \"");
|
fprintf(code_file, "\" ... %d bytes of text... \"", length);
|
||||||
return;
|
else
|
||||||
}
|
fprintf(code_file, "\" ... text... \"");
|
||||||
if (length==-1) {
|
return;
|
||||||
fprintf(code_file, "\" ... undefined size text... \"");
|
}
|
||||||
return;
|
if (length==-1 || s==0L) {
|
||||||
}
|
fprintf(code_file, "\n#error string not found\n");
|
||||||
|
fprintf(code_file, "\" ... undefined size text... \"");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const char *p = s;
|
const char *p = s;
|
||||||
const char *e = s+length;
|
const char *e = s+length;
|
||||||
@@ -247,6 +250,7 @@ void write_cdata(const char *s, int length) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (length==-1) {
|
if (length==-1) {
|
||||||
|
fprintf(code_file, "\n#error data not found\n");
|
||||||
fprintf(code_file, "{ /* ... undefined size binary data... */ }");
|
fprintf(code_file, "{ /* ... undefined size binary data... */ }");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user