'box_lib.obj' change function 'ted_init_syntax_file'
git-svn-id: svn://kolibrios.org@2707 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
e75134c724
commit
9b63edd2e9
@ -437,7 +437,7 @@ ted_fun_on_key_ctrl_n equ dword[edi+206] ;... Ctrl+N (ᮧ
|
|||||||
ted_fun_on_key_ctrl_s equ dword[edi+210] ;... Ctrl+S
|
ted_fun_on_key_ctrl_s equ dword[edi+210] ;... Ctrl+S
|
||||||
ted_buffer_size equ dword[edi+214] ;à §¬¥à ¡ãä¥à ª®¯¨à®¢ ¨ï/¢áâ ¢ª¨
|
ted_buffer_size equ dword[edi+214] ;à §¬¥à ¡ãä¥à ª®¯¨à®¢ ¨ï/¢áâ ¢ª¨
|
||||||
ted_fun_find_err equ dword[edi+218] ;㪠§ ⥫ì äãªæ¨î ¢ë§ë¢ ¥¬ãî ¥á«¨ ¯®¨áª § ª®ç¨«áï ¥ã¤ ç®
|
ted_fun_find_err equ dword[edi+218] ;㪠§ ⥫ì äãªæ¨î ¢ë§ë¢ ¥¬ãî ¥á«¨ ¯®¨áª § ª®ç¨«áï ¥ã¤ ç®
|
||||||
ted_fun_init_synt_err equ dword[edi+222] ;㪠§ ⥫ì äãªæ¨î ¢ë§ë¢ ¥¬ãî ¯à¨ ®è¨¡®ç®¬ ®âªàë⨨ ä ©« á¨â ªá¨á
|
;ted_fun_init_synt_err equ dword[edi+222] ;㪠§ ⥫ì äãªæ¨î ¢ë§ë¢ ¥¬ãî ¯à¨ ®è¨¡®ç®¬ ®âªàë⨨ ä ©« á¨â ªá¨á
|
||||||
ted_fun_draw_panel_buttons equ dword[edi+226] ;㪠§ ⥫ì äãªæ¨î à¨á®¢ ¨ï ¯ ¥«¨ á ª®¯ª ¬¨
|
ted_fun_draw_panel_buttons equ dword[edi+226] ;㪠§ ⥫ì äãªæ¨î à¨á®¢ ¨ï ¯ ¥«¨ á ª®¯ª ¬¨
|
||||||
ted_fun_draw_panel_find equ dword[edi+230] ;㪠§ ⥫ì äãªæ¨î à¨á®¢ ¨ï ¯ ¥«¨ ¯®¨áª
|
ted_fun_draw_panel_find equ dword[edi+230] ;㪠§ ⥫ì äãªæ¨î à¨á®¢ ¨ï ¯ ¥«¨ ¯®¨áª
|
||||||
ted_fun_draw_panel_syntax equ dword[edi+234] ;㪠§ ⥫ì äãªæ¨î à¨á®¢ ¨ï ¯ ¥«¨ á¨â ªá¨á
|
ted_fun_draw_panel_syntax equ dword[edi+234] ;㪠§ ⥫ì äãªæ¨î à¨á®¢ ¨ï ¯ ¥«¨ á¨â ªá¨á
|
||||||
|
@ -685,22 +685,10 @@ endp
|
|||||||
|
|
||||||
|
|
||||||
align 4
|
align 4
|
||||||
proc ted_init_syntax_file, edit:dword, file:dword, f_name:dword
|
proc ted_init_syntax_file, edit:dword
|
||||||
pushad
|
pushad
|
||||||
mov edi,dword[edit]
|
mov edi,dword[edit]
|
||||||
|
|
||||||
mov eax,70
|
|
||||||
mov ebx,dword[file]
|
|
||||||
mov dword[ebx], 0
|
|
||||||
mov dword[ebx+4], 0
|
|
||||||
mov dword[ebx+8], 0
|
|
||||||
mov ecx,ted_syntax_file_size
|
|
||||||
mov dword[ebx+12], ecx
|
|
||||||
m2m dword[ebx+16], ted_syntax_file
|
|
||||||
mov byte[ebx+20], 0
|
|
||||||
m2m dword[ebx+21], dword[f_name]
|
|
||||||
int 0x40
|
|
||||||
|
|
||||||
mov ecx,0x100
|
mov ecx,0x100
|
||||||
mov edx,ted_arr_key_pos
|
mov edx,ted_arr_key_pos
|
||||||
@@:
|
@@:
|
||||||
@ -714,22 +702,6 @@ proc ted_init_syntax_file, edit:dword, file:dword, f_name:dword
|
|||||||
mov ted_help_text_f1,0
|
mov ted_help_text_f1,0
|
||||||
mov ted_help_id,-1 ;¨¤¥â¨ä¨ª â®à á«®¢ ¤«ï á¯à ¢ª¨
|
mov ted_help_id,-1 ;¨¤¥â¨ä¨ª â®à á«®¢ ¤«ï á¯à ¢ª¨
|
||||||
|
|
||||||
cmp eax,6
|
|
||||||
je @f
|
|
||||||
cmp eax,0
|
|
||||||
je @f
|
|
||||||
cmp ax,10
|
|
||||||
jl .zifra_0_9
|
|
||||||
mov al,'?'
|
|
||||||
sub ax,48
|
|
||||||
.zifra_0_9:
|
|
||||||
add ax,48
|
|
||||||
cmp ted_fun_init_synt_err,0
|
|
||||||
je .no_colors
|
|
||||||
call ted_fun_init_synt_err
|
|
||||||
jmp .no_colors
|
|
||||||
@@:
|
|
||||||
|
|
||||||
mov eax,edi ;á®åà 塞 § 票¥ edi
|
mov eax,edi ;á®åà 塞 § 票¥ edi
|
||||||
mov esi,ted_syntax_file
|
mov esi,ted_syntax_file
|
||||||
add edi,ted_offs_count_colors
|
add edi,ted_offs_count_colors
|
||||||
|
@ -18,7 +18,7 @@ struct symbol
|
|||||||
ends
|
ends
|
||||||
|
|
||||||
|
|
||||||
hed db 'TextEditor 19.04.12',0 ;¯®¤¯¨áì ®ª
|
hed db 'TextEditor 31.05.12',0 ;¯®¤¯¨áì ®ª
|
||||||
sc system_colors
|
sc system_colors
|
||||||
|
|
||||||
;fn_icon db 'te_icon.bmp',0
|
;fn_icon db 'te_icon.bmp',0
|
||||||
@ -197,23 +197,36 @@ ted_save_err_msg:
|
|||||||
;description:
|
;description:
|
||||||
; äãªæ¨ï ¦ â¨ï ª®¯ªã [<EFBFBD>ਬ¥¨âì] ¢ ¯ ¥«¨ á¨â ªá¨á
|
; äãªæ¨ï ¦ â¨ï ª®¯ªã [<EFBFBD>ਬ¥¨âì] ¢ ¯ ¥«¨ á¨â ªá¨á
|
||||||
align 4
|
align 4
|
||||||
proc ted_but_open_syntax, edit:dword
|
proc ted_but_open_syntax uses eax ebx ecx edi, edit:dword
|
||||||
push ebx edi
|
mov edi,dword[edit]
|
||||||
mov edi,dword[edit]
|
cmp ted_panel_id,TED_PANEL_SYNTAX
|
||||||
|
jne @f
|
||||||
|
stdcall dword[tl_node_get_data], tree1
|
||||||
|
pop dword[fn_col_option]
|
||||||
|
mov ebx,dword[fn_col_option]
|
||||||
|
copy_path ebx,fn_syntax_dir,file_name_rez,0x0
|
||||||
|
copy_path file_name_rez,sys_path,file_name,0x0
|
||||||
|
|
||||||
cmp ted_panel_id,TED_PANEL_SYNTAX
|
mov ebx,run_file_70
|
||||||
jne @f
|
mov dword[ebx], 0
|
||||||
stdcall dword[tl_node_get_data], tree1
|
mov dword[ebx+4], 0
|
||||||
pop dword[fn_col_option]
|
mov dword[ebx+8], 0
|
||||||
mov ebx,dword[fn_col_option]
|
mov ecx, ted_syntax_file_size
|
||||||
copy_path ebx,fn_syntax_dir,file_name_rez,0x0
|
mov dword[ebx+12], ecx
|
||||||
copy_path file_name_rez,sys_path,file_name,0x0
|
m2m dword[ebx+16], ted_syntax_file
|
||||||
stdcall [ted_init_syntax_file],edi,run_file_70,file_name
|
mov byte[ebx+20], 0
|
||||||
call [ted_text_colored]
|
m2m dword[ebx+21], file_name
|
||||||
stdcall [ted_draw],edi
|
mcall 70
|
||||||
@@:
|
cmp eax,0
|
||||||
pop edi ebx
|
jne .end_0
|
||||||
ret
|
call ted_on_init_synt_err
|
||||||
|
jmp @f
|
||||||
|
.end_0:
|
||||||
|
stdcall [ted_init_syntax_file],edi
|
||||||
|
call [ted_text_colored]
|
||||||
|
stdcall [ted_draw],edi
|
||||||
|
@@:
|
||||||
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
;description:
|
;description:
|
||||||
|
@ -488,7 +488,7 @@ tedit0: ;
|
|||||||
.fun_on_key_ctrl_s dd 0 ;+210 ... Ctrl+S
|
.fun_on_key_ctrl_s dd 0 ;+210 ... Ctrl+S
|
||||||
.buffer_size dd BUF_SIZE ;+214 à §¬¥à ¡ãä¥à ª®¯¨à®¢ ¨ï/¢áâ ¢ª¨
|
.buffer_size dd BUF_SIZE ;+214 à §¬¥à ¡ãä¥à ª®¯¨à®¢ ¨ï/¢áâ ¢ª¨
|
||||||
.fun_find_err dd ted_on_find_err ;+218 㪠§ ⥫ì äãªæ¨î ¢ë§ë¢ ¥¬ãî ¥á«¨ ¯®¨áª § ª®ç¨«áï ¥ã¤ ç®
|
.fun_find_err dd ted_on_find_err ;+218 㪠§ ⥫ì äãªæ¨î ¢ë§ë¢ ¥¬ãî ¥á«¨ ¯®¨áª § ª®ç¨«áï ¥ã¤ ç®
|
||||||
.fun_init_synt_err dd ted_on_init_synt_err ;+222 㪠§ ⥫ì äãªæ¨î ¢ë§ë¢ ¥¬ãî ¯à¨ ®è¨¡®ç®¬ ®âªàë⨨ ä ©« á¨â ªá¨á
|
.fun_init_synt_err dd 0 ;+222
|
||||||
.fun_draw_panel_buttons dd draw_but_toolbar ;+226 㪠§ ⥫ì äãªæ¨î à¨á®¢ ¨ï ¯ ¥«¨ á ª®¯ª ¬¨
|
.fun_draw_panel_buttons dd draw_but_toolbar ;+226 㪠§ ⥫ì äãªæ¨î à¨á®¢ ¨ï ¯ ¥«¨ á ª®¯ª ¬¨
|
||||||
.fun_draw_panel_find dd draw_panel_find ;+230 㪠§ ⥫ì äãªæ¨î à¨á®¢ ¨ï ¯ ¥«¨ ¯®¨áª
|
.fun_draw_panel_find dd draw_panel_find ;+230 㪠§ ⥫ì äãªæ¨î à¨á®¢ ¨ï ¯ ¥«¨ ¯®¨áª
|
||||||
.fun_draw_panel_syntax dd draw_panel_syntax ;+234 㪠§ ⥫ì äãªæ¨î à¨á®¢ ¨ï ¯ ¥«¨ á¨â ªá¨á
|
.fun_draw_panel_syntax dd draw_panel_syntax ;+234 㪠§ ⥫ì äãªæ¨î à¨á®¢ ¨ï ¯ ¥«¨ á¨â ªá¨á
|
||||||
|
@ -169,7 +169,23 @@ mov ecx,ebx
|
|||||||
mov ebx,dword[fn_col_option]
|
mov ebx,dword[fn_col_option]
|
||||||
copy_path ebx,fn_syntax_dir,file_name_rez,0x0
|
copy_path ebx,fn_syntax_dir,file_name_rez,0x0
|
||||||
copy_path file_name_rez,sys_path,file_name,0x0
|
copy_path file_name_rez,sys_path,file_name,0x0
|
||||||
stdcall [ted_init_syntax_file], tedit0,run_file_70,file_name
|
mov edi, tedit0
|
||||||
|
mov ebx,run_file_70
|
||||||
|
mov dword[ebx], 0
|
||||||
|
mov dword[ebx+4], 0
|
||||||
|
mov dword[ebx+8], 0
|
||||||
|
mov ecx, ted_syntax_file_size
|
||||||
|
mov dword[ebx+12], ecx
|
||||||
|
m2m dword[ebx+16], ted_syntax_file
|
||||||
|
mov byte[ebx+20], 0
|
||||||
|
m2m dword[ebx+21], file_name
|
||||||
|
mcall 70
|
||||||
|
cmp eax,0
|
||||||
|
jne .end_0
|
||||||
|
call ted_on_init_synt_err
|
||||||
|
jmp @f
|
||||||
|
.end_0:
|
||||||
|
stdcall [ted_init_syntax_file], edi
|
||||||
|
|
||||||
;--- get cmd line ---
|
;--- get cmd line ---
|
||||||
cmp byte[openfile_path+3],0 ;openfile_path
|
cmp byte[openfile_path+3],0 ;openfile_path
|
||||||
|
Loading…
Reference in New Issue
Block a user