Subversion Repositories Kolibri OS

Rev

Rev 2707 | Rev 2817 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2707 Rev 2708
Line 16... Line 16...
16
	tc dd ?   ;+10 ¢à¥¬. ᮧ¤ ­¨ï
16
	tc dd ?   ;+10 ¢à¥¬. ᮧ¤ ­¨ï
17
	td dd ?   ;+14 ¢à¥¬. 㤠«¥­¨ï
17
	td dd ?   ;+14 ¢à¥¬. 㤠«¥­¨ï
18
ends
18
ends
Line 19... Line 19...
19
 
19
 
20
 
20
 
Line 21... Line -...
21
hed db 'TextEditor 31.05.12',0 ;¯®¤¯¨áì ®ª­ 
-
 
22
sc system_colors
21
hed db 'TextEditor 1.06.12',0 ;¯®¤¯¨áì ®ª­ 
23
 
22
sc system_colors
Line 24... Line 23...
24
;fn_icon db 'te_icon.bmp',0
23
 
Line 205... Line 204...
205
		pop dword[fn_col_option]
204
		pop dword[fn_col_option]
206
		mov ebx,dword[fn_col_option]
205
		mov ebx,dword[fn_col_option]
207
		copy_path ebx,fn_syntax_dir,file_name_rez,0x0
206
		copy_path ebx,fn_syntax_dir,file_name_rez,0x0
208
		copy_path file_name_rez,sys_path,file_name,0x0
207
		copy_path file_name_rez,sys_path,file_name,0x0
Line -... Line 208...
-
 
208
 
-
 
209
		call open_unpac_synt_file
-
 
210
		cmp ebx,-1
-
 
211
		je @f
-
 
212
 
-
 
213
		call [ted_text_colored]
-
 
214
		stdcall [ted_draw],edi
-
 
215
	@@:
-
 
216
	ret
-
 
217
endp
-
 
218
 
-
 
219
;®âªàë⨥ ¨ à á¯ ª®¢ª  ä ©«  ¯®¤á¢¥âª¨ ᨭ⠪á¨á 
-
 
220
;output:
-
 
221
; ebx - ç¨á«® ¯à®ç¨â ­­ëå ¡ ©â ¨§ ä ©« 
209
 
222
align 4
-
 
223
open_unpac_synt_file:
210
		mov ebx,run_file_70
224
push eax edi esi
-
 
225
	mov edi, tedit0
211
		mov dword[ebx], 0
226
	mov [run_file_70.Function], 0
212
		mov dword[ebx+4], 0
227
	mov [run_file_70.Position], 0
213
		mov dword[ebx+8], 0
228
	mov [run_file_70.Flags], 0
214
		mov ecx, ted_syntax_file_size
229
	mov ecx, ted_syntax_file_size
215
		mov dword[ebx+12], ecx
230
	mov dword[run_file_70.Count], ecx
216
		m2m dword[ebx+16], ted_syntax_file
231
	m2m dword[run_file_70.Buffer], ted_syntax_file
217
		mov  byte[ebx+20], 0
232
	mov byte[run_file_70+20], 0
218
		m2m dword[ebx+21], file_name
233
	mov [run_file_70.FileName], file_name
219
		mcall 70
234
	mcall 70, run_file_70
220
		cmp eax,0
235
	cmp ebx,-1
221
		jne .end_0
236
	jne .end_0
222
			call ted_on_init_synt_err
237
		call ted_on_init_synt_err
223
			jmp @f
238
		jmp @f
-
 
239
	.end_0:
-
 
240
		mov eax,ted_syntax_file
-
 
241
		cmp dword[eax],'KPCK'
-
 
242
		jne .end_unpack
-
 
243
		cmp dword[eax+4],ecx
-
 
244
		jg @f ;¥á«¨ ¤«ï à á¯ ª®¢ ­®£® ä ©«  ­¥ 墠⠥⠢뤥«¥­­®© ¯ ¬ïâ¨
-
 
245
		cmp dword[unpac_mem],0
-
 
246
		jne .end_1
-
 
247
			;¢ë¤¥«¥­¨¥ ¯ ¬ï⨠¤«ï à á¯ ª®¢ª¨ ä ©« 
-
 
248
			stdcall mem.Alloc,ecx
-
 
249
			mov [unpac_mem],eax
224
		.end_0:
250
		.end_1:
225
		stdcall [ted_init_syntax_file],edi
251
		stdcall unpack,ted_syntax_file,[unpac_mem]
-
 
252
		mov edi,ted_syntax_file
-
 
253
		mov esi,[unpac_mem]
-
 
254
		mov ecx,[edi+4]
-
 
255
		cld
-
 
256
		rep movsb
226
		call [ted_text_colored]
257
		.end_unpack:
227
		stdcall [ted_draw],edi
258
		stdcall [ted_init_syntax_file], tedit0
-
 
259
	@@:
228
	@@:
260
pop esi edi eax
229
	ret
-
 
Line 230... Line 261...
230
endp
261
	ret
231
 
262
 
232
;description:
263
;description:
233
; ¢ë§®¢/áªàë⨥ ¯ ­¥«¨ ¯®¨áª 
264
; ¢ë§®¢/áªàë⨥ ¯ ­¥«¨ ¯®¨áª