summaryrefslogtreecommitdiff
path: root/fluid/Fl_Function_Type.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/Fl_Function_Type.cxx')
-rw-r--r--fluid/Fl_Function_Type.cxx22
1 files changed, 13 insertions, 9 deletions
diff --git a/fluid/Fl_Function_Type.cxx b/fluid/Fl_Function_Type.cxx
index 6dc9fc927..22bcf7265 100644
--- a/fluid/Fl_Function_Type.cxx
+++ b/fluid/Fl_Function_Type.cxx
@@ -1279,7 +1279,7 @@ void Fl_Data_Type::write_code1(Fd_Code_Writer& f) {
int nData = -1;
int uncompressedDataSize = 0;
// path should be set correctly already
- if (filename_ && !f.write_sourceview) {
+ if (filename_ && !f.write_codeview) {
enter_project_dir();
FILE *f = fl_fopen(filename_, "rb");
leave_project_dir();
@@ -1395,8 +1395,8 @@ void Fl_Data_Type::write_code1(Fd_Code_Writer& f) {
}
}
// if we are in interactive mode, we pop up a warning dialog
- // giving the error: (batch_mode && !write_sourceview) ???
- if (message && !f.write_sourceview) {
+ // giving the error: (batch_mode && !write_codeview) ???
+ if (message && !f.write_codeview) {
if (batch_mode)
fprintf(stderr, "FLUID ERROR: %s %s\n", message, fn);
else
@@ -1535,9 +1535,11 @@ BREAK2:
*/
void Fl_DeclBlock_Type::write_code1(Fd_Code_Writer& f) {
const char* c = name();
- if (public_)
- f.write_h("%s\n", c);
- f.write_c("%s\n", c);
+ if (c && *c) {
+ if (public_)
+ f.write_h("%s\n", c);
+ f.write_c("%s\n", c);
+ }
}
/**
@@ -1545,9 +1547,11 @@ void Fl_DeclBlock_Type::write_code1(Fd_Code_Writer& f) {
*/
void Fl_DeclBlock_Type::write_code2(Fd_Code_Writer& f) {
const char* c = after;
- if (public_)
- f.write_h("%s\n", c);
- f.write_c("%s\n", c);
+ if (c && *c) {
+ if (public_)
+ f.write_h("%s\n", c);
+ f.write_c("%s\n", c);
+ }
}
// ---- Fl_Comment_Type declaration