KnightSch / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 1 forks source link

Remove duplicate declaration of int.h #205

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Compiling "make PLATFORM=econotag" produces an error::

int.h:148: warning: redundant redeclaration of ‘int_pow’
int.h:137: warning: previous declaration of ‘int_pow’ was here
pmstdlib_nat.c: In function ‘nat_18___bi_sum’:
pmstdlib_nat.c:873: error: called object ‘int_new(n, & pn)’ is not a 
function
pmstdlib_nat.c: In function ‘nat_35_ipm__getImg’:
pmstdlib_nat.c:1619: warning: cast increases required alignment of target type
make[2]: *** [pmstdlib_nat.o] Error 1

The last line of src/vm/int.h has a duplicate declaration of int_pow().  Remove 
the duplicate.

Original issue reported on code.google.com by dwhall...@gmail.com on 18 Jun 2011 at 6:54

GoogleCodeExporter commented 8 years ago

Original comment by dwhall...@gmail.com on 18 Jun 2011 at 6:55

GoogleCodeExporter commented 8 years ago
Along the way of building for Econotag, I found that src/lib/__bi.py sum() 
function line 580 makes a call to int_new() without a semicolon at the end.  I 
made this little fix.

Original comment by dwhall...@gmail.com on 18 Jun 2011 at 7:02

GoogleCodeExporter commented 8 years ago
I was just about to make a ticket for this one, glad I searched first.   Your 
comment #2 is the same as the bug I filed as ticket 204 last week, so be sure 
to close that one too when you are done.

Original comment by j...@missioncognition.net on 23 Jun 2011 at 6:07

GoogleCodeExporter commented 8 years ago
Also, while you are at it, check out sum() in __bi.py  The compiler generated a 
warning about ps be used before it is initialized in the bytearray code block.  
It looks like line 588 needs to be moved up towards the beginning of the 
function.

Original comment by j...@missioncognition.net on 23 Jun 2011 at 6:16

GoogleCodeExporter commented 8 years ago
int_new() semicolon fixed in issue 204.
Removed repeated declaration in int.h
Relocated a line in __bi.py

Original comment by dwhall...@gmail.com on 26 Jun 2011 at 4:11

GoogleCodeExporter commented 8 years ago
This issue was closed by revision a30fb253b01a.

Original comment by dwhall...@gmail.com on 26 Jun 2011 at 4:13