Board.KolibriOS.org
http://board.kolibrios.org/

structures in trunk kernel
http://board.kolibrios.org/viewtopic.php?f=35&t=2017
Page 1 of 1

Author:  hidnplayr [ Wed Feb 22, 2012 5:54 pm ]
Post subject:  structures in trunk kernel

In net branch, I used nested structures, for example:

Code:
struct  UDP_SOCKET              IP_SOCKET

        LocalPort               dw ?
        RemotePort              dw ?
        firstpacket             db ?

ends


Where UDP_SOCKET is a child of IP_SOCKET

For this i used struct.inc that is bundled with fasm.
The main (trunk) kernel however uses a simpler macro. The problem is that the macro in trunk uses a dot before all labels, while this macro does not.
Does anybody see a problem with me converting trunk kernel to use newer macro?

(I do not want to merge both kernels yet, but I need to update old code in net kernel, and it will be needed if i want to merge later.)

Author:  Serge [ Wed Feb 22, 2012 6:38 pm ]
Post subject:  Re: structures in trunk kernel

I think it's a good idea.

Author:  hidnplayr [ Wed Feb 22, 2012 6:47 pm ]
Post subject:  Re: structures in trunk kernel

Ok done, hope I did not make many errors, but I think not.
Also, only the nescessary structs were changed to compile with struct.inc, not all structs were reviewed.

Author:  hidnplayr [ Thu Feb 23, 2012 10:31 pm ]
Post subject:  Re: structures in trunk kernel

I updated most of the remaining structs to use this new syntax, and checked output files for binary differences, looks good :)

Page 1 of 1 All times are UTC+03:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/