Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Error in Gccbuilder
Error in Gccbuilder [message #7588] Mon, 08 January 2007 17:55 Go to next message
MikeP is currently offline  MikeP
Messages: 4
Registered: January 2007
Junior Member
In gccbuilder.cpp is missing compression routines on non-array Binary objects.

here is the correct part:
		else {
			BinObjInfo::Block& b = belem[0];
			fo << "char " << ident << "[] =\n";
			String data = ::LoadFile(b.file);
			if(data.IsVoid())
				throw Exc(NFormat("Error reading file '%s'", b.file));
			if(data.GetLength() != b.length)
				throw Exc(NFormat("length of file '%s' changed (%d -> %d) during object creation",
					b.file, b.length, data.GetLength()));
			switch(b.encoding) {
				case BinObjInfo::Block::ENC_BZ2: data = BZ2Compress(data); break;
				case BinObjInfo::Block::ENC_ZIP: data = ZCompress(data); break;
			}
			fo << AsCString(data, 70) << ";\n\n"
			"int " << ident << "_length = " << data.GetLength() << ";\n\n";
		}

Re: Error in Gccbuilder [message #7589 is a reply to message #7588] Mon, 08 January 2007 18:06 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Thanks, correct, applied.

Mirek
Re: Error in Gccbuilder [message #7652 is a reply to message #7589] Fri, 12 January 2007 22:15 Go to previous messageGo to next message
MikeP is currently offline  MikeP
Messages: 4
Registered: January 2007
Junior Member
in last version 701-dev1 this part missing again.

MikeP
Re: Error in Gccbuilder [message #7657 is a reply to message #7652] Sat, 13 January 2007 00:10 Go to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
MikeP wrote on Fri, 12 January 2007 16:15

in last version 701-dev1 this part missing again.

MikeP


Well, I think that release was in fact done before I have applied the patch.

Mirek
Previous Topic: brc sample problem
Next Topic: RegExp support
Goto Forum:
  


Current Time: Wed May 15 19:56:06 CEST 2024

Total time taken to generate the page: 0.02171 seconds