summaryrefslogtreecommitdiff
path: root/fluid/code.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/code.cxx')
-rw-r--r--fluid/code.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/fluid/code.cxx b/fluid/code.cxx
index 5354fe5cf..a96bbd720 100644
--- a/fluid/code.cxx
+++ b/fluid/code.cxx
@@ -235,6 +235,17 @@ void write_cdata(const char *s, int length) {
varused = 1;
return;
}
+ if (write_sourceview) {
+ if (length>=0)
+ fprintf(code_file, "{ /* ... %d bytes of binary data... */ }", length);
+ else
+ fprintf(code_file, "{ /* ... binary data... */ }");
+ return;
+ }
+ if (length==-1) {
+ fprintf(code_file, "{ /* ... undefined size binary data... */ }");
+ return;
+ }
const unsigned char *w = (const unsigned char *)s;
const unsigned char *e = w+length;
int linelength = 1;