flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar
OK, thanks!
|
|||
![]() |
|
comrade
I had a few more, but I forget. I am sure more will pop-up when I resume work on my projects...
|
|||
![]() |
|
Vortex
Thanks Comrade.
![]() _________________ Code it... That's all... |
|||
![]() |
|
comrade
I've noticed structure names in wsock32.inc are invalid. They should be lowercase by definition. These structures are hostent and sockaddr_in.
|
|||
![]() |
|
Tomasz Grysztar
Isn't it better to have that standarized?
|
|||
![]() |
|
comrade
Lowercase is standard for those structures, no?
|
|||
![]() |
|
Tomasz Grysztar
I was thinking about another standard - just to have all structure types in uppercase. Or is it too unorthodox?
|
|||
![]() |
|
comrade
Might cause confusion like it did to me. Tried lowercase, but then saw uppercase in include file. Its lowercase everywhere else.
|
|||
![]() |
|
scientica
privalov wrote: I was thinking about another standard - just to have all structure types in uppercase. Or is it too unorthodox? Are you meaning something like this: Code: struc FOOBAR{ .MemberNumber0 dd ? .FileName db CONSTANT_FILE_NAME_LEN } I prefer below for _custom_ structures (MixedCase for structure name and for members, and UPPERCASE_UNDERSCORE for cconstants). Seems to me as all Win API structures are upppercase, winsock lowercase (except for WSAData and other WSA things). I think the best is too follow the documentation, if win32.hlp says uses uppeercase for structure A then that should be so, wshlp.hlp says lower case for structure b so let it be lowercase for wsock structs. The lack of standard is confucing, but nothing confuses me more than differences betwene the documentation and source, if the docs defines it whatEverCase then whatEverCase is what I expect from the structure in the include files. Code: struc FooBar{ .MemberNumber0 dd ? .FileName db CONSTANT_FILE_NAME_LEN } _________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
![]() |
|
Tomasz Grysztar
OK, you have convicted me - it's corrected in current 1.47 release.
|
|||
![]() |
|
comrade
You are hereby sentenced to 100 years of programming.
![]() |
|||
![]() |
|
comrade
Privalov, you made WSAData in FASM 1.47. This one should be all uppercase.
![]() ![]() ![]() There are more additions to equates/comctl32.inc: Code: ; Custom Draw flags CDRF_DODEFAULT = 0 CDRF_NEWFONT = 2 CDRF_SKIPDEFAULT = 4 CDRF_NOTIFYPOSTPAINT = 16 CDRF_NOTIFYITEMDRAW = 32 CDRF_NOTIFYSUBITEMDRAW = 32 CDRF_NOTIFYPOSTERASE = 0x40 CDDS_PREPAINT = 1 CDDS_POSTPAINT = 2 CDDS_PREERASE = 3 CDDS_POSTERASE = 4 CDDS_ITEM = 0x10000 CDDS_ITEMPREPAINT = (CDDS_ITEM OR CDDS_PREPAINT) CDDS_ITEMPOSTPAINT = (CDDS_ITEM OR CDDS_POSTPAINT) CDDS_ITEMPREERASE = (CDDS_ITEM OR CDDS_PREERASE) CDDS_ITEMPOSTERASE = (CDDS_ITEM OR CDDS_POSTERASE) CDDS_SUBITEM = 0x20000 CDIS_SELECTED = 1 CDIS_GRAYED = 2 CDIS_DISABLED = 4 CDIS_CHECKED = 8 CDIS_FOCUS = 16 CDIS_DEFAULT = 32 CDIS_HOT = 64 CDIS_MARKED = 0x80 CDIS_INDETERMINATE = 0x0100 LVIF_NORECOMPUTE = 0800h LVIS_ACTIVATING = 0020h LVSICF_NOINVALIDATEALL = 00000001h LVSICF_NOSCROLL = 00000002h |
|||
![]() |
|
BiDark
Hi folks,
Why not saparate the include files to another package and let someone who have more time to contributes ![]() |
|||
![]() |
|
comrade
Code: struc DCB { .DCBlength dd ? .BaudRate dd ? .fbits dd ? ; fBinary:1,fParity:1,fOutxCtsFlow:1,fOutxDsrFlow:1,fDtrControl:2,fDsrSensitivity:1,fTXContinueOnXoff:1,fOutX:1,fInX:1,fErrorChar:1,fNull:1,fRtsControl:2,fAbortOnError:1,fDummy2:17 .wReserved dw ? .XonLim dw ? .XoffLim dw ? .ByteSize db ? .Parity db ? .StopBits db ? .XonChar db ? .XoffChar db ? .ErrorChar db ? .EofChar db ? .EvtChar db ? .wReserved1 dw ? } struct DCB NOPARITY = 0 ODDPARITY = 1 EVENPARITY = 2 MARKPARITY = 3 SPACEPARITY = 4 ONESTOPBIT = 0 ONE5STOPBITS = 1 TWOSTOPBITS = 2 struc COMMTIMEOUTS { .ReadIntervalTimeout dd ? .ReadTotalTimeoutMultiplier dd ? .ReadTotalTimeoutConstant dd ? .WriteTotalTimeoutMultiplier dd ? .WriteTotalTimeoutConstant dd ? } struct COMMTIMEOUTS struc OVERLAPPED { .Internal dd ? .InternalHigh dd ? .Offset dd ? .OffsetHigh dd ? .hEvent dd ? } struct OVERLAPPED |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.