<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
HI!<br>Yes symbian is quite special, and an ansi c++ is not included by default in the SDKs. I tried this, and neither the CodeWarrior Windows compiler or the ARM RVCT compiler approved of this syntax.<br>ARM RVCT is responding with this:<br>"\complementary\tfxserver\drawers\src\wsserverdrawer.cpp", line 138: Error: #424: a constructor or destructor may not have its address taken<br> mem->float4::float4();<br>/Lars<br><br><hr>Date: Wed, 23 Jul 2008 09:56:27 +0000<br>From: bertrand_augereau@yahoo.fr<br>To: scummvm-devel@lists.sourceforge.net; larspp@hotmail.com<br>Subject: Re: [Scummvm-devel] [Scummvm-cvs-logs] SF.net SVN: scummvm:[33212] scummvm/trunk/common/hashmap.h<br><br><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">Lars,<BR>could you tell us if something along this works on your compiler to invoke the ctor?<BR>float4* mem = (float4*)malloc(sizeof(float4));<br>mem->float4::float4();<BR><BR>It compiles on MSVC8 at least<br><br><BR><br>--- En date de : <b>Mer 23.7.08, Bertrand Augereau <i><bertrand_augereau@yahoo.fr></i></b> a écrit :<br><blockquote style="margin-left: 5px; padding-left: 5px;">De: Bertrand Augereau <bertrand_augereau@yahoo.fr><br>Objet: Re: [Scummvm-devel] [Scummvm-cvs-logs] SF.net SVN: scummvm:[33212] scummvm/trunk/common/hashmap.h<br>À: scummvm-devel@lists.sourceforge.net, "Lars Persson" <larspp@hotmail.com><br>Date: Mercredi 23 Juillet 2008, 11h51<br><br><div id="EC_yiv602638871"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">Hi guys,<BR>wow this is the first C++ toolchain I ever encountered that doesn't support the placement new :)<br><BR>I don't know of any portable way, presumably there is none, but we probably can figure an horrible hack to do the in-place construction for the platform. Somebody has an idea?<BR><br>--- En date de : <b>Mer 23.7.08, Lars Persson <i><larspp@hotmail.com></i></b> a écrit :<br><blockquote style="margin-left: 5px; padding-left: 5px;">De: Lars Persson <larspp@hotmail.com><br>Objet: Re: [Scummvm-devel] [Scummvm-cvs-logs] SF.net SVN: scummvm:[33212] scummvm/trunk/common/hashmap.h<br>À: scummvm-devel@lists.sourceforge.net<br>Date: Mercredi 23 Juillet 2008, 11h37<br><br><div id="EC_yiv127182208">
<style>
.ExternalClass #EC_yiv602638871 #EC_yiv127182208 .EC_hmmessage P
{padding:0px;}
.ExternalClass #EC_yiv602638871 #EC_yiv127182208
{font-size:10pt;font-family:Tahoma;}
</style>
Hi Max, hi all! <br>Well the reason for me disabling this feature, is exactlity whats mentioned in the comment for the define. SymbianOS does not have <new> by default and adding support for it is not trivial, but doable. (Needs linking against different libraries, addition of new H file etc.<br><br>If the memorypool could be used without <new> there should be no problems with Symbian OS in this regard, as far as I know.<br><br>best regards<br>Lars<br><br>> Date: Wed, 23 Jul 2008 11:22:58 +0200<br>> From: max@quendi.de<br>> To: anotherguest@users.sourceforge.net<br>> CC: scummvm-devel@lists.sourceforge.net<br>> Subject: Re: [Scummvm-devel] [Scummvm-cvs-logs] SF.net SVN: scummvm:[33212] scummvm/trunk/common/hashmap...h<br>> <br>> Hi Lars, hi all<br>> <br>> so you disabled USE_HASHMAP_MEMORY_POOL for Symbian (see quotes below).<br>> May I ask in which way USE_HASHMAP_MEMORY_POOL is system dependant? I.e.<br>>
what broke, exactly? In theory, the memory pool code should actually be<br>> quite portable. Before disabling it conditionally on some platforms, and<br>> before resolving this FIXME, we really would need to know in how far it<br>> causes problems :).<br>> <br>> Also, to the rest of our porters: Are there any other ports who have<br>> troubles with this?<br>> <br>> Cheers,<br>> Max<br>> <br>> Am 22.07.2008 um 20:09 schrieb anotherguest@users.sourceforge.net:<br>> ><br>> > Revision: 33212<br>> > http://scummvm.svn.sourceforge.net/scummvm/?rev=33212&view=rev<br>> > Author: anotherguest<br>> > Date: 2008-07-22 19:09:10 +0000 (Tue, 22 Jul 2008)<br>> ><br>> > Log Message:<br>> > -----------<br>> > Disable hashmemory pool for Symbian OS<br>> ><br>> > Modified Paths:<br>> > --------------<br>> >
scummvm/trunk/common/hashmap.h<br>> ><br>> > Modified: scummvm/trunk/common/hashmap.h<br>> > ===================================================================<br>> > --- scummvm/trunk/common/hashmap.h 2008-07-22 18:53:22 UTC (rev 33211)<br>> > +++ scummvm/trunk/common/hashmap.h 2008-07-22 19:09:10 UTC (rev 33212)<br>> > @@ -58,7 +58,13 @@<br>> > #include "common/str.h"<br>> > #include "common/util.h"<br>> ><br>> > +// FIXME: Since this define is very system dependant,<br>> > +// it should be moved to the appropriate H file instead.<br>> > +// Portdefs might be a good location for example<br>> > +#if !defined(__SYMBIAN32__)<br>> > #define USE_HASHMAP_MEMORY_POOL<br>> > +#endif<br>> > +<br>> > #ifdef USE_HASHMAP_MEMORY_POOL<br>> > #include "common/memorypool.h"<br>> > // FIXME: we sadly can't assume standard C++ to be present<br>>
<br>> <br>> <br>> <br>> -------------------------------------------------------------------------<br>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>> Build the coolest Linux based applications with Moblin SDK & win great prizes<br>> Grand prize is a trip for two to an Open Source event anywhere in the world<br>> http://moblin-contest.org/redirect.php?banner_id=100&url=/<br>> _______________________________________________<br>> Scummvm-devel mailing list<br>> Scummvm-devel@lists.sourceforge.net<br>> https://lists.sourceforge.net/lists/listinfo/scummvm-devel<br><br><hr>Connect to the next generation of MSN Messenger <a rel="nofollow" href="http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline" target="_blank">Get it now! </a>
</div><pre>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer's<br>challenge<br>Build the coolest Linux based applications with Moblin SDK & win great<br>prizes<br>Grand prize is a trip for two to an Open Source event anywhere in the world<br>http://moblin-contest.org/redirect.php?banner_id=100&url=/</pre><pre>_______________________________________________<br>Scummvm-devel mailing list<br>Scummvm-devel@lists.sourceforge.net<br>https://lists.sourceforge.net/lists/listinfo/scummvm-devel</pre></blockquote></td></tr></tbody></table><br>
<hr size="1">
Envoyé avec <a rel="nofollow" href="http://us.rd..yahoo.com/mailuk/taglines/isp/control/*http://us.rd..yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html" target="_blank">Yahoo! Mail</a>.<br>Une boite mail plus intelligente. </div><pre>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer's<br>challenge<br>Build the coolest Linux based applications with Moblin SDK & win great<br>prizes<br>Grand prize is a trip for two to an Open Source event anywhere in the world<br>http://moblin-contest.org/redirect.php?banner_id=100&url=/</pre><pre>_______________________________________________<br>Scummvm-devel mailing list<br>Scummvm-devel@lists.sourceforge.net<br>https://lists.sourceforge.net/lists/listinfo/scummvm-devel</pre></blockquote></td></tr></tbody></table><br>
<hr size="1">
Envoyé avec <a href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd..yahoo.com/evt=52423/*http://fr.docs.yahoo.com/mail/overview/index.html" target="_blank">Yahoo! Mail</a>.<br>Une boite mail plus intelligente. <br /><hr />Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! <a href='http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us' target='_new'>Try it!</a></body>
</html>