Netsurf needs it.
Go punk_joker!
Make sure the alignment is correct . When I was writing the wrappers, i,faced some issues like this.punk_joker wrote:Wrapped for libini, while only the most used functions. In LIBINI_enum_sections and LIBINI_enum_keys, there is a problem, the program crashes after the first section, or key, that is, the next section is not transferred.
Please write some tests. And it is necessary to define what should functions return? Now, it is 0 on success and mixture of -1 and 1 in other case. Btw dll.Load returns 1 on unsuccess.punk_joker wrote:Wrapped for libini, while only the most used functions. In LIBINI_enum_sections and LIBINI_enum_keys, there is a problem, the program crashes after the first section, or key, that is, the next section is not transferred.
Code: Select all
int asm_init_status = init_buf2d_asm();
/* just return asm_init_status? or return init_boxlib_asm() ?*/
if(asm_init_status == 0)
return 0;
else
return 1;And in loadbuf2d.asm:return init_buf2d_asm();
Code: Select all
stdcall dll.Load, @IMPORT
test eax, eax
jnz error
mov eax, 0
ret
error:
mov eax, -1
retCode: Select all
stdcall dll.Load, @IMPORT
test eax, eax
jz ok
xor eax, eax
dec eax
ok:
ret
Code: Select all
stdcall dll.Load, @IMPORT
ret
Code: Select all
editbox_key:
mov [oldebp], ebp ;Save ebp because GCC is crazy for it otherwise.
pop ebp ;Save return address in ebp. Stack top is param now.
mov eax, dword [press_key]
call [edit_box_key] ; The pointer we passed should be on the stack already.
push ebp ;push the return address back to stack
mov ebp, [oldebp]
ret
oldebp dd ?
press_key dd ?Статус на сегодня, в связи с окончанием обвязки box_lib. Цифра в списке - пункт из даты сверхуpunk_joker wrote:A detailed plan for the first half:
25 may - new project structure, example programm and makefile
27 may - final work on box_lib
29 may - wrapper for kmenu
2 june - wrapper for libimg (you need to deal with some issues)
5 june - libini, libio
9 june - archive
11 june - rasterworks
13 june - libgfx
15 june - buf2d
17 june - xml
18 june - libcrash
18 - 20 june - inspection checking, correcting possible errors
Обертка есть, демки пока нет (комментарий относится к **).punk_joker wrote:ColorDialog есть, он входит в proc_lib как и OpenDialog. А для него я писал обертку.
Users browsing this forum: No registered users and 6 guests