On 14 July 2013 03:34, James Paige <[email protected]> wrote:
> On Sun, Jul 14, 2013 at 02:45:41AM +1200, Ralph Versteegen wrote:
>> On 13 July 2013 16:35,  <[email protected]> wrote:
>> > james
>> > 2013-07-12 21:35:25 -0700 (Fri, 12 Jul 2013)
>> > 338
>> > sdl-android virtual keyboard sends U+0304 COMBINING MACRON before each 
>> > shifted key.
>> > Detect it, and uppercase the next char in the w_in buffer.
>> >
>> > Also use a simple hack to shift punctuation keys. I would have used the 
>> > key2text array
>> > but it appears that it fails to be initialized on android (because it is 
>> > initialized on the moudle level?)
>> > ---
>> > U   wip/allmodex.bas
>>
>> Oh! That's very serious, and strange: I though I had already confirmed
>> that all module level code was being run.
>
> Actually, maybe it has nothing to do with being module-level. I forgot
> about one thing I tried. I tried converting key2text() into a function
> instead of a global array, and inside the function I declared the same
> array as STATIC _key2text and initialized it in the same way, and it was
> still full of empty values on Android.
>
> So maybe what is broken on Android is the intitialization of default
> values in arrays of fixed length strings. (we only use a handful of
> them)
>
> ---
> James

It seems that both module-level and static arrays of fixed length
strings are translated into C module-level/static arrays of C strings.
The C compiler should put them with all the initialised global
variables in a data section in the executable. It ought to be
impossible for these to not be initialised unless the ELF loader
failed to load the whole binary, in theory.

I think it's more likely that either there's a bug in your code, or
FB's C backend miscompiled your code (it seems to compile key2text
fine)
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to