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 » Community » U++ community news and announcements » Upp 604-dev1 released
Upp 604-dev1 released [message #2296] Thu, 06 April 2006 19:24 Go to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Added:
- HeaderCtrl: SetHeight(int i)

Fixed:
- Topics browser: crash fixed

Re: Upp 604-dev1 released [message #2297 is a reply to message #2296] Thu, 06 April 2006 23:15 Go to previous messageGo to next message
victorb is currently offline  victorb
Messages: 78
Registered: December 2005
Location: Nice, France
Member
I have just downloaded this latest dev version and had some problem to compile new examples (GCC/win):

* Codemetric

- Core/Util.h
had to change l135-136
inline void EndianSwap(word& v) { byte *x = reinterpret_cast<byte *>(v); Swap(x[0], x[1]); }
inline void EndianSwap(int16& v) { EndianSwap(*reinterpret_cast<word *>(v)); }

GCC do not like C-style cast here.

- RichText/RichText.h
had to change l 170
String Write() const { return type ? type->Write(data) : data.ToString(); }

data is a Value and GCC don't like to mix types here.

Nothing else to report...

Thanks,
Victor
Re: Upp 604-dev1 released [message #2298 is a reply to message #2297] Thu, 06 April 2006 23:50 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks!

Actually, it should be

inline void EndianSwap(word& v) { byte *x = (byte *)(&v); Swap(x[0], x[1]); }

Good that GCC catched that bug... (anyway, it is inactive for current U++).

Mirek
Re: Upp 604-dev1 released [message #2320 is a reply to message #2296] Sat, 08 April 2006 02:58 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
unodgs wrote on Thu, 06 April 2006 18:24

Added:
- HeaderCtrl: SetHeight(int i)

Fixed:
- Topics browser: crash fixed




Upp 604-dev1 released but not in svn?
Re: Upp 604-dev1 released [message #2321 is a reply to message #2296] Sat, 08 April 2006 03:01 Go to previous messageGo to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
I haven't checked but
luzr wrote on Wed, 05 April 2006 09:54


Added as "EditField::MaxChars".

(Available with next dev release... Wink

Mirek

Edit: It looks like it exists... Smile
Thanks once again!

[Updated on: Sat, 08 April 2006 03:08]

Report message to a moderator

Re: Upp 604-dev1 released [message #2379 is a reply to message #2298] Mon, 10 April 2006 10:53 Go to previous messageGo to next message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
luzr wrote on Thu, 06 April 2006 17:50


Actually, it should be

inline void EndianSwap(word& v) { byte *x = (byte *)(&v); Swap(x[0], x[1]); }

Good that GCC catched that bug... (anyway, it is inactive for current U++)

The other 4 EndianSwap methods have the same error. I suppose they should also be corrected.
Re: Upp 604-dev1 released [message #2384 is a reply to message #2379] Mon, 10 April 2006 11:08 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
hojtsy wrote on Mon, 10 April 2006 04:53

luzr wrote on Thu, 06 April 2006 17:50


Actually, it should be

inline void EndianSwap(word& v) { byte *x = (byte *)(&v); Swap(x[0], x[1]); }

Good that GCC catched that bug... (anyway, it is inactive for current U++)

The other 4 EndianSwap methods have the same error. I suppose they should also be corrected.



I hope they already are?

(BTW, another nice example of implementation defined code... Frankly, I would rather spend my energy here than with anticipating non-complement binary arithmetic, but resulting code for e.g. BMP header encoding/decoding would be much more ugly and complicated, even when we have to use packing pragmas....).

Mirek
Previous Topic: Upp 603-dev4 released
Next Topic: Happy Easter everyone!
Goto Forum:
  


Current Time: Fri Mar 29 11:37:26 CET 2024

Total time taken to generate the page: 0.02044 seconds