Morgan243 / python-on-a-chip

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

Fix compile system so string cache can be disabled #253

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In v10, the string cache is broken and should be disabled.  However, the method 
to disable the cache is faulty.  Here is a report from Marcus Priesch via email 
on 2013/10/29::

i am sorry i have not tested my last exercise within ipm, as i read on the 
mailinglist
there seem to be some problems related to ipm ... as i dont need it in 
production, i
will test it later ...

however i have a patch against two days old V10 to properly turn off the string 
cache.

my app only works when i turn it off ... ;)

however i have no clue why the PM_DECLARE_STRING_TYPE has "val [n]" instead of 
"val [n+1]"
for the no-cache variant ... i tried with [n] but it gave me compiler warnings, 
and without
the "\0" in pm_generated_objs.c ... nothing really worked any more ...

a nice side effect is that an empty string (s = "") resolves to a random 
character when
you append something ;) - i havent tested with string cache turned on ...

i had such code :
 d  = ""
 d += "dd"
 d += "ssss"

this way it works:
 d  = "dd"
 d += "ssss"

Original issue reported on code.google.com by dwhall...@gmail.com on 30 Oct 2013 at 1:20

Attachments: