ktcc: is now KX by default. Added new def files for import.
git-svn-id: svn://kolibrios.org@9551 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
5d71c48018
commit
b090eb116d
Binary file not shown.
Binary file not shown.
98
programs/develop/ktcc/trunk/bin/lib/box_lib.def
Normal file
98
programs/develop/ktcc/trunk/bin/lib/box_lib.def
Normal file
@ -0,0 +1,98 @@
|
||||
LIBRARY box_lib.obj
|
||||
|
||||
EXPORTS
|
||||
edit_box
|
||||
edit_box_key
|
||||
edit_box_mouse
|
||||
edit_box_set_text
|
||||
version_ed
|
||||
init_checkbox2
|
||||
check_box_draw2
|
||||
check_box_mouse2
|
||||
version_ch2
|
||||
option_box_draw
|
||||
option_box_mouse
|
||||
version_op
|
||||
scrollbar_v_draw
|
||||
scrollbar_v_mouse
|
||||
scrollbar_h_draw
|
||||
scrollbar_h_mouse
|
||||
version_scrollbar
|
||||
dbutton_draw
|
||||
dbutton_mouse
|
||||
version_dbutton
|
||||
menu_bar_draw
|
||||
menu_bar_mouse
|
||||
menu_bar_activate
|
||||
version_menu_bar
|
||||
FileBrowser_draw
|
||||
FileBrowser_mouse
|
||||
FileBrowser_key
|
||||
version_FileBrowser
|
||||
tl_data_init
|
||||
tl_data_clear
|
||||
tl_info_clear
|
||||
tl_key
|
||||
tl_mouse
|
||||
tl_draw
|
||||
tl_info_undo
|
||||
tl_info_redo
|
||||
tl_node_add
|
||||
tl_node_set_data
|
||||
tl_node_get_data
|
||||
tl_node_delete
|
||||
tl_cur_beg
|
||||
tl_cur_next
|
||||
tl_cur_perv
|
||||
tl_node_close_open
|
||||
tl_node_lev_inc
|
||||
tl_node_lev_dec
|
||||
tl_node_move_up
|
||||
tl_node_move_down
|
||||
tl_node_poi_get_info
|
||||
tl_node_poi_get_next_info
|
||||
tl_node_poi_get_data
|
||||
tl_save_mem
|
||||
tl_load_mem
|
||||
tl_get_mem_size
|
||||
version_tree_list
|
||||
PathShow_prepare
|
||||
PathShow_draw
|
||||
version_PathShow
|
||||
ted_but_sumb_upper
|
||||
ted_but_sumb_lover
|
||||
ted_but_convert_by_table
|
||||
ted_can_save
|
||||
ted_clear
|
||||
ted_delete
|
||||
ted_draw
|
||||
ted_init
|
||||
ted_init_scroll_bars
|
||||
ted_init_syntax_file
|
||||
ted_is_select
|
||||
ted_key
|
||||
ted_mouse
|
||||
ted_open_file
|
||||
ted_save_file
|
||||
ted_text_add
|
||||
ted_but_select_word
|
||||
ted_but_cut
|
||||
ted_but_copy
|
||||
ted_but_paste
|
||||
ted_but_undo
|
||||
ted_but_redo
|
||||
ted_but_reverse
|
||||
ted_but_find
|
||||
ted_but_replace
|
||||
ted_text_colored
|
||||
ted_go_to_position
|
||||
version_text_edit
|
||||
frame_draw
|
||||
version_frame
|
||||
progressbar_draw
|
||||
progressbar_progress
|
||||
tooltip_init
|
||||
tooltip_delete
|
||||
tooltip_test_show
|
||||
tooltip_mouse
|
||||
get_font_size
|
Binary file not shown.
@ -2,6 +2,7 @@ LIBRARY proc_lib.obj
|
||||
|
||||
EXPORTS
|
||||
ColorDialog_init
|
||||
ColorDialog_start
|
||||
OpenDialog_start
|
||||
OpenDialog_init
|
||||
OpenDialog_set_file_ext
|
@ -17,4 +17,4 @@ img_rotate
|
||||
img_rotate_layer
|
||||
img_scale
|
||||
img_to_rgb
|
||||
img_to_rgb2
|
||||
img_to_rgb2
|
Binary file not shown.
Binary file not shown.
@ -175,3 +175,6 @@ time
|
||||
localtime
|
||||
asctime
|
||||
difftime
|
||||
;___LIBGEN___
|
||||
basename
|
||||
dirname
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6
programs/develop/ktcc/trunk/bin/lib/msgbox.def
Normal file
6
programs/develop/ktcc/trunk/bin/lib/msgbox.def
Normal file
@ -0,0 +1,6 @@
|
||||
LIBRARY msgbox.obj
|
||||
|
||||
EXPORTS
|
||||
mb_create
|
||||
mb_reinit
|
||||
mb_setfunctions
|
7
programs/develop/ktcc/trunk/bin/lib/rasterworks.def
Normal file
7
programs/develop/ktcc/trunk/bin/lib/rasterworks.def
Normal file
@ -0,0 +1,7 @@
|
||||
LIBRARY rasterworks.obj
|
||||
|
||||
EXPORTS
|
||||
charsFit
|
||||
cntUTF-8
|
||||
drawText
|
||||
strWidth
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,127 +0,0 @@
|
||||
;
|
||||
; 2021, Edited by Coldy
|
||||
;
|
||||
; This module same as original crt0.asm, but cut:
|
||||
; 1. virtual header block (hparams change to __app_params, hpath change to __app_path)
|
||||
; 2. init heap of memory - not needed because 68.18 (68.19) init heap implicitly
|
||||
; (it is does dll.obj)
|
||||
; 3. loader (he lives in dll.obj)
|
||||
;
|
||||
|
||||
format ELF
|
||||
section '.text' executable
|
||||
public start
|
||||
public start as '_start'
|
||||
|
||||
extrn main
|
||||
;include 'debug2.inc'
|
||||
include '/../../../../../../proc32.inc'
|
||||
include '/../../../../../../macros.inc'
|
||||
__DEBUG__ = 0
|
||||
|
||||
__app_params equ 0x1C ; Pointer to program arguments
|
||||
;__app_path equ 0x20 ; Pointer to program path
|
||||
|
||||
start:
|
||||
;DEBUGF 'Start programm\n'
|
||||
|
||||
mov [argc], 0
|
||||
mov eax, [__app_params]
|
||||
test eax, eax
|
||||
jz .without_path
|
||||
mov eax, path
|
||||
cmp word ptr eax, 32fh ; '/#3' UTF8
|
||||
jne .without_path
|
||||
mov word ptr eax, 12fh ; '/#1' fix to CP866
|
||||
.without_path:
|
||||
mov esi, eax
|
||||
call push_param
|
||||
; retrieving parameters
|
||||
mov esi, params
|
||||
xor edx, edx ; dl - èä¸ò ïàðàìåòð(1) èëè ðàçäåëèòåëè(0)
|
||||
; dh - ñèìâîë ñ êîòîðîãî íà÷àëñÿ ïàðàìåòð (1 êàâû÷êè, 0 îñòàëüíîå)
|
||||
mov ecx, 1 ; cl = 1
|
||||
; ch = 0 ïðîñòî íîëü
|
||||
.parse:
|
||||
lodsb
|
||||
test al, al
|
||||
jz .run
|
||||
test dl, dl
|
||||
jnz .findendparam
|
||||
;{åñëè áûë ðàçäåëèòåëü
|
||||
cmp al, ' '
|
||||
jz .parse ;çàãðóæåí ïðîáåë, ãðóçèì ñëåäóþùèé ñèìâîë
|
||||
mov dl, cl ;íà÷èíàåòñÿ ïàðàìåòð
|
||||
cmp al, '"'
|
||||
jz @f ;çàãðóæåíû êàâû÷êè
|
||||
mov dh, ch ;ïàðàìåòð áåç êàâû÷åê
|
||||
dec esi
|
||||
call push_param
|
||||
inc esi
|
||||
jmp .parse
|
||||
|
||||
@@:
|
||||
mov dh, cl ;ïàðàìåòð â êàâû÷åêàõ
|
||||
call push_param ;åñëè íå ïðîáåë çíà÷èò íà÷èíàåòñÿ êàêîé òî ïàðàìåòð
|
||||
jmp .parse ;åñëè áûë ðàçäåëèòåëü}
|
||||
|
||||
.findendparam:
|
||||
test dh, dh
|
||||
jz @f ; áåç êàâû÷åê
|
||||
cmp al, '"'
|
||||
jz .clear
|
||||
jmp .parse
|
||||
@@:
|
||||
cmp al, ' '
|
||||
jnz .parse
|
||||
|
||||
.clear:
|
||||
lea ebx, [esi - 1]
|
||||
mov [ebx], ch
|
||||
mov dl, ch
|
||||
jmp .parse
|
||||
|
||||
.run:
|
||||
push argv
|
||||
push [argc]
|
||||
call main
|
||||
.exit:
|
||||
xor eax,eax
|
||||
dec eax
|
||||
int 0x40
|
||||
dd -1
|
||||
.crash:
|
||||
jmp .exit
|
||||
;============================
|
||||
push_param:
|
||||
;============================
|
||||
;parameters
|
||||
; esi - pointer
|
||||
;description
|
||||
; procedure increase argc
|
||||
; and add pointer to array argv
|
||||
; procedure changes ebx
|
||||
mov ebx, [argc]
|
||||
cmp ebx, max_parameters
|
||||
jae .dont_add
|
||||
mov [argv+4*ebx], esi
|
||||
inc [argc]
|
||||
.dont_add:
|
||||
ret
|
||||
|
||||
|
||||
;==============================
|
||||
public argc as '__argc'
|
||||
public params as '__argv'
|
||||
public path as '__path'
|
||||
|
||||
section '.bss'
|
||||
buf_len = 0x400
|
||||
max_parameters=0x20
|
||||
argc rd 1
|
||||
argv rd max_parameters
|
||||
path rb buf_len
|
||||
params rb buf_len
|
||||
|
||||
;section '.data'
|
||||
;include_debug_strings ; ALWAYS present in data section
|
@ -1,18 +0,0 @@
|
||||
//
|
||||
// This sample show that KX extension supported or not
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int main(){
|
||||
|
||||
char* kx_ext =
|
||||
#ifndef __KX__
|
||||
"not "
|
||||
#endif
|
||||
"supported"
|
||||
;
|
||||
|
||||
printf("KX extension %s", kx_ext);
|
||||
|
||||
return 0;
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
#SHS
|
||||
../../../tcc ../src/tests/kxtest.c -o kxtest -I../../include -llibc
|
||||
exit
|
Loading…
Reference in New Issue
Block a user