MantisBT - Ecere SDK
View Issue Details
0000140Ecere SDKcompilerpublic2008-09-18 16:552013-08-07 05:57
jerome 
jerome 
immediatemajorhave not tried
closedfixed 
 
0.44.080.44.08 
0000140: Declaring an eC struct as a C struct in the parameters, a pointer declarator is being added
The following won't compile:

struct InventoryItem
{
  int code;
  float price;
};

void print(InventoryItem item)
{
  PrintLn("item.code= %d\nitem.price=%.2f\n",item.code,item.price);
}


void DontModifyItem(struct InventoryItem item)
{
  item.code=1234;
  item.price=45.0f;
}
void Test()
{
  InventoryItem item1{};
  DontModifyItem(item1);
  Print(item1);
}
No tags attached.
Issue History
2008-09-18 16:55jeromeNew Issue
2008-09-18 16:55jeromeStatusnew => assigned
2008-09-18 16:55jeromeAssigned To => jerome
2010-07-25 22:30redjRelationship addedchild of 0000430
2010-07-29 15:32jeromeRelationship deletedchild of 0000430
2010-07-29 15:33jeromeRelationship addedchild of 0000429
2010-07-29 15:33jeromeNote Added: 0000291
2010-07-29 15:33jeromePriorityhigh => immediate
2012-03-08 15:43redjTarget Versionold 0.44.pre2 => 0.45 Ginkakuji
2012-03-08 17:42redjRelationship deletedchild of 0000429
2012-03-29 07:50redjCategory => eC Compiling Tools
2012-03-29 07:50redjProject@2@ => Ecere SDK
2013-04-24 03:56jeromeTarget Version0.45 Ginkakuji => 0.44.1 64
2013-04-24 20:22jeromeAssigned Tojerome =>
2013-04-27 06:08redjStatusassigned => new
2013-08-07 02:57jeromeAssigned To => jerome
2013-08-07 02:57jeromeStatusnew => assigned
2013-08-07 02:57jeromeTarget Version0.44.10 64 => 0.44.08
2013-08-07 04:39jeromeNote Added: 0000938
2013-08-07 05:57jeromeStatusassigned => closed
2013-08-07 05:57jeromeNote Added: 0000939
2013-08-07 05:57jeromeResolutionopen => fixed
2013-08-07 05:57jeromeFixed in Version => 0.44.08

Notes
(0000291)
jerome   
2010-07-29 15:33   
This is straight the Tao, isn't it?
(0000938)
jerome   
2013-08-07 04:39   
It is. Page 42.
(0000939)
jerome   
2013-08-07 05:57   
Fixed by https://github.com/ecere/ecere-sdk/commit/4e4e1ec612d290905c252b4bd399566521ed0b25 [^]