Re: Phix: A Error Message i do not understand.

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...

(Methinks improving that error message is best left for a rainy day....)

Good catch, thanks.

PS gratuitous link for the 2020 reference: https://stackoverflow.com/questions/63105593/why-did-msdn-remove-in-co-from-the-winapi-documentation
PPS erm, make that 2019: https://hero.handmade.network/forums/code-discussion/t/6907-msdn_windows_api_syntax_changes

Thank you, your patch works out of the box.

i don't want to be annoying but here is maybe one more for a rainy day

tStr=""" 

BOOL WINAPI TransmitCommChar( 
  _In_  HANDLE hFile, 
  _In_  char cChar 
);                 
""" 

-- char is not working 
set_unicode(0) 
constant   iTransmitCommChar=define_cffi_func(kernel,tStr) 

D:\devpool\phix\builtins\cffi.e:1311 in function define_c() 
index 0 out of bounds, reading sequence length 6 
    lib = 1.407099524e+14 
    cdef = "BOOL WINAPI TransmitCommChar(\n  _In_  HANDLE hFile,\n  _In_  char cChar\n);                \n" 
    func = 1 
    machine = 64 
    name = "TransmitCommChar" 
    mtype = "char" 
    substruct = 0 
    size = 1 
    align = 1 
    signed = 1 
    return_type = 16777220 
    ptype = 33554440 
 
Global & Local Variables 
 
--> see D:\devpool\projects\ardulink\ex.err 
Press Enter... 
by the way, here in germany, it feels like it's been raining since october last year, interrupted only by a few days of snow.

Thank you
Andreas

Edit:
Maybe I should pray for a rainy summerblink

D:\devpool\phix\builtins\cffi.e:234 
bitfields are not (yet) supported 

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu