sameroom
[mjansen] write it directly in a hex-editor
sameroom
[mjansen] no weak shit like an assembler
sameroom
[TVA] lets get serious
sameroom
[mjansen] ok
sameroom
[mjansen] magnetic needle, harddisk
sameroom
[mjansen] go!
sameroom
[TVA] ...
sameroom
[eersoy93] TVA: What C tutorial you are reading?
sameroom
[TVA] c primer plus
sameroom
[hbelusca] you should use instead C(++) for dummies.
sameroom
[TVA] probably
sameroom
[mjansen] well everyone has to figure out what works for him
sameroom
[mjansen] something that works for one, wont work for the other
sameroom
[mjansen] and vice versa
sameroom
[TVA] yeah
sameroom
[TVA] Still I feel really unsure because i'm still too new to programming
sameroom
[hyoenmadan] <TVA>: most probably your problem isn't with the language, but with logic and problem solving
sameroom
[TVA] How logic applies to the language, that's what I'm figuring out
Stas'M
Write in pseudocode
sameroom
[hyoenmadan] yep
sameroom
[TVA] I studied logic years ago and I had the idea that I could prottype a program as a logic formula before jumping into the code.
sameroom
[TVA] I always start in pseudocode
sameroom
[hbelusca] so far I've seen only very "basic" logic in common programming languages: "if then else do while for etc..."
sameroom
[hbelusca] not the logic stuff you study in mathematics
sameroom
[hyoenmadan] then you souldn't have problems translating that to C using standard functions
sameroom
[TVA] yeah, maybe I just need to read more and be less concerned
sameroom
[hyoenmadan] <hbelusca>: heh, well... sometimes the problem is translating complex looking problems into these simple logic constructions
sameroom
[hbelusca] yeah
sameroom
[hyoenmadan] <TVA>: generally begineer books tell exactly which subset of C use to start
sameroom
[hyoenmadan] getch, printf, scanf
sameroom
[hyoenmadan] and such
sameroom
[TVA] yes I'm familiar with those
sameroom
[TVA] My issue with that exercise that took me a month is that arrays were introduced
sameroom
[eersoy93] TVA: Are you perfectionist?
sameroom
[TVA] no
Stas'M
what is complexity of arrays? 🤔
sameroom
[TVA] ?
sameroom
[hbelusca] i think he asks what's so complex about arrays.
Stas'M
+1
sameroom
[hyoenmadan] yah, what is what is giving your problem about arrays?
sameroom
[TVA] Arrays aren't like variables so nothing I try with them that I learned to do with variables work, so it's not that arrays are hard I just don't know what to do and what to not do
Stas'M
that's because arrays are not just variables
Stas'M
but you usually can operate them as memory blocks
Stas'M
in low-level programming languages like C
sameroom
[TVA] yes, my books still has to touch on that
sameroom
[hbelusca] !bc 0x1a
sameroom
[hTechBot] KeBugCheck( MEMORY_MANAGEMENT );
sameroom
[CatButts] hai guise
sameroom
[CatButts] https://source.winehq.org/WineAPI/RtlIsCriticalSectionLockedByThread.html
sameroom
[CatButts] I know that winapi has BOOLEAN and BOOL
sameroom
[CatButts] how can I be sure of which type WINE uses
sameroom
[CatButts] one of them is an integer
sameroom
[CatButts] and the other is unsigned char
sameroom
[hbelusca] boolean is unsigned char.
sameroom
[hbelusca] bool is (unsigned) int.
sameroom
[hbelusca] well it's actually really 32bit even on x64.
sameroom
[CatButts] and WINE sticks to same convention, yes?
sameroom
[hbelusca] it better does.
sameroom
[hbelusca] Otherwise it breaks compatibility with the very stuff it wants to be compatible with.
sameroom
[CatButts] wait
sameroom
[CatButts] BOOL is not int
sameroom
[CatButts] it's uint?
sameroom
[hbelusca] Anyway their prototype is wrong because it must be BOOLEAN.
sameroom
[hbelusca] CatButts: https://git.reactos.org/?p=reactos.git&a=search&h=HEAD&st=grep&s=*PBOOL
sameroom
[hbelusca] actually it's int.
sameroom
[CatButts] I think that's an undocumented function
sameroom
[CatButts] >NTSYSAPI BOOL WINAPI RtlIsCriticalSectionLockedByThread(RTL_CRITICAL_SECTION *);
sameroom
[hbelusca] that's from winternl.h of wine ^
sameroom
[Mysoft] well they are both returned on EAX
sameroom
[Mysoft] but the thing is... when it's uchar
sameroom
[Mysoft] will NT just set one byte?
sameroom
[hbelusca] it wwill.
sameroom
[Mysoft] so it will just set AL
sameroom
[mjansen] it is free to spoil AH
sameroom
[Mysoft] yeah ok
sameroom
[Mysoft] so i hope all NTDLL functions use BOOLEAN instead of BOOL
sameroom
[hbelusca] n8
Stas'M
g00d n1ght
sameroom
[RosKGB] 03Mark Jansen 05master 3bf5349 06reactos 10modules/rostests/apitests/ws2_32/ 10CMakeLists.txt 03open_osfhandle.c 10testlist.c [WS2_32_APITEST] Add a test showing that GetFileType / _open_osfhandle should succeed. * 14https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3bf5349
sameroom
[czAdamV] Hi guys! I just wanted to let you know that the TLS certificate for code.reactos.org has expired :)