Subversion Repositories Kolibri OS

Rev

Rev 2707 | Rev 2817 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;Ž£à®¬­ ï ¡« £®¤ à­®áâì Maxxxx32, Diamond, Heavyiron
  2. ;¨ ¤à㣨¬ ¯à®£à ¬¬¨áâ ¬,   â ª¦¥
  3. ;’¥¯«®¢ã €«¥ªá¥î (<Lrz> www.lrz.land.ru)
  4.  
  5.  
  6. use32
  7.   org 0x0
  8.   db 'MENUET01' ;¨¤¥­â¨ä. ¨á¯®«­ï¥¬®£® ä ©«  ¢á¥£¤  8 ¡ ©â
  9.   dd 0x01
  10.   dd start
  11.   dd i_end ; à §¬¥à ¯à¨«®¦¥­¨ï
  12.   dd mem
  13.   dd stacktop
  14.   dd file_name ; command line
  15.   dd sys_path
  16.  
  17. MAX_COLOR_WORD_LEN equ 40
  18. maxChars equ 100002 ;(...+2)
  19. BUF_SIZE equ 1000 ;buffer for copy|paste
  20. maxSyntaxFileSize equ 410000
  21.  
  22. include '../../proc32.inc'
  23. ;include '../../config.inc'
  24. include '../../macros.inc'
  25. include 'mem.inc'
  26. include 'dll.inc'
  27. include '../../develop/libraries/box_lib/load_lib.mac'
  28. include '../../develop/libraries/box_lib/trunk/box_lib.mac'
  29. include '../../system/desktop/trunk/kglobals.inc'
  30. include '../../system/desktop/trunk/unpacker.inc'
  31. include 'lang.inc'
  32.  
  33. include 't_data.inc'
  34. include 'strlen.inc'
  35. include 't_draw.inc' ;draw main window functions
  36. include 't_button.inc' ;text work functions
  37.  
  38. @use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
  39.  
  40.  
  41. ;Œ ªà®á ¤«ï § £à㧪¨ ¨§®¡à ¦¥­¨© á ¨á¯®«ì§®¢ ­¨¥¬ ¡¨¡«¨®â¥ª¨ libimg.obj
  42. ;¤«ï ¨á¯®«ì§®¢ ­¨ï ¬ ªà®á  ­ã¦­ë ¯¥à¥¬¥­­ë¥:
  43. ; - run_file_70 FileInfoBlock
  44. ; - image_data dd 0
  45. macro load_image_file path,buf,size
  46. {
  47.         ;path - ¬®¦¥â ¡ëâì ¯¥à¥¬¥­­®© ¨«¨ áâப®¢ë¬ ¯ à ¬¥â஬
  48.         if path eqtype '' ;¯à®¢¥à塞 § ¤ ­ «¨ áâப®© ¯ à ¬¥âà path
  49.                 jmp @f
  50.                         local .path_str
  51.                         .path_str db path ;ä®à¬¨à㥬 «®ª «ì­ãî ¯¥à¥¬¥­­ãî
  52.                         db 0
  53.                 @@:
  54.                 ;32 - áâ ­¤ àâ­ë©  ¤à¥á ¯® ª®â®à®¬ã ¤®«¦¥­ ¡ëâì ¡ãä¥à á á¨á⥬­ë¬ ¯ã⥬
  55.                 copy_path .path_str,[32],file_name,0x0
  56.         else
  57.                 copy_path path,[32],file_name,0x0 ;ä®à¬¨à㥬 ¯®«­ë© ¯ãâì ª ä ©«ã ¨§®¡à ¦¥­¨ï, ¯®¤à §ã¬¥¢ ¥¬ çâ® ®­ ¢ ®¤­®© ¯ ¯ª¥ á ¯à®£à ¬¬®©
  58.         end if
  59.  
  60.         stdcall mem.Alloc, dword size ;¢ë¤¥«ï¥¬ ¯ ¬ïâì ¤«ï ¨§®¡à ¦¥­¨ï
  61.         mov [buf],eax
  62.  
  63.         mov eax,70 ;70-ï äã­ªæ¨ï à ¡®â  á ä ©« ¬¨
  64.         mov [run_file_70.Function], 0
  65.         mov [run_file_70.Position], 0
  66.         mov [run_file_70.Flags], 0
  67.         mov [run_file_70.Count], dword size
  68.         m2m [run_file_70.Buffer], [buf]
  69.         mov byte[run_file_70+20], 0
  70.         mov [run_file_70.FileName], file_name
  71.         mov ebx,run_file_70
  72.         int 0x40 ;§ £à㦠¥¬ ä ©« ¨§®¡à ¦¥­¨ï
  73.         cmp ebx,0xffffffff
  74.         je @f
  75.                 ;®¯à¥¤¥«ï¥¬ ¢¨¤ ¨§®¡à ¦¥­¨ï ¨ ¯¥à¥¢®¤¨¬ ¥£® ¢® ¢à¥¬¥­­ë© ¡ãä¥à image_data
  76.                 stdcall dword[img_decode], dword[buf],ebx,0
  77.                 mov dword[image_data],eax
  78.                 ;¯à¥®¡à §ã¥¬ ¨§®¡à ¦¥­¨¥ ª ä®à¬ âã rgb
  79.                 stdcall dword[img_to_rgb2], dword[image_data],dword[buf]
  80.                 ;㤠«ï¥¬ ¢à¥¬¥­­ë© ¡ãä¥à image_data
  81.                 stdcall dword[img_destroy], dword[image_data]
  82.         @@:
  83. }
  84.  
  85. image_data dd 0 ;㪠§ â¥«ì ­  ¢à¥¬¥­­ãî ¯ ¬ïâì. ¤«ï ­ã¦¥­ ¯à¥®¡à §®¢ ­¨ï ¨§®¡à ¦¥­¨ï
  86. icon_tl_sys dd 0 ;㪠§ â¥«ì ­  ¯ ¬ïâì ¤«ï åà ­¥­¨ï á¨á⥬­ëå ¨ª®­®ª
  87.  
  88. align 4
  89. start:
  90.   mcall 48,3,sc,sizeof.system_colors
  91.  
  92.   mcall 68,11
  93.   or eax,eax
  94.   jz button.exit
  95.  
  96.   mcall 66,1,1 ;scan code
  97.   mcall 40,0x27
  98.  
  99.   mov esi,file_name
  100.   call strlen
  101.   mov ecx,eax
  102.   mov edi,openfile_path
  103.   cld
  104.   rep movsb ;ª®¯¨à㥬 ¨¬ï ä ©«  ¢ ¡ãä¥à edit1
  105.  
  106. load_libraries l_libs_start,load_lib_end
  107.  
  108. ;¯à®¢¥àª  ­  ᪮«ìª® 㤠筮 § £ã§¨«¨áì ¡¨¡«¨®â¥ª¨
  109.         mov     ebp,lib0
  110.         cmp     dword [ebp+ll_struc_size-4],0
  111.         jz      @f
  112.         mcall -1 ;exit not correct
  113. @@:
  114.         mov     ebp,lib1 ;
  115.         cmp     dword [ebp+ll_struc_size-4],0
  116.         jz      @f
  117.         mcall -1 ;exit not correct
  118. @@:
  119.  
  120.         cmp dword[version_text_edit],3
  121.         jge @f
  122.                 stdcall [mb_create],msgbox_10,thread
  123.                 mcall -1
  124.         @@:
  125.  
  126. ;---------------------------------------------------------------------
  127.         stdcall [ted_init], tedit0
  128.         stdcall dword[tl_data_init], tree1
  129.  
  130. ; OpenDialog initialisation
  131.         stdcall [OpenDialog_Init],OpenDialog_data
  132.  
  133. ; init toolbar file
  134.         load_image_file 'te_icon.png', bmp_icon,1200*18
  135. ;---------------------------------------------------------------------
  136. ; ç¨â ¥¬ ä ©« á ªãàá®à ¬¨ ¨ «¨­¨ï¬¨
  137.         load_image_file 'tl_sys_16.png', icon_tl_sys,54+3*256*13
  138.         mov eax,dword[icon_tl_sys]
  139.         mov dword[tree1.data_img_sys],eax
  140. ;---------------------------------------------------------------------
  141. ; ç¨â ¥¬ ä ©« á ¨ª®­ª ¬¨ 㧫®¢
  142.         load_image_file 'tl_nod_16.png', icon_tl_sys,54+3*256*2
  143.         mov eax,dword[icon_tl_sys]
  144.         mov dword[tree1.data_img],eax
  145. ;------------------------------------------------------------------------------
  146.   copy_path fn_syntax_dir,sys_path,file_name,0x0 ;¡¥à¥¬ ¯ãâì ª ¯ ¯ª¥ á ä ©« ¬¨ ᨭ⠪á¨á 
  147.   mov eax,70
  148.   mov ebx,tree_file_struct
  149.   int 0x40
  150.  
  151. cmp ebx,-1
  152. je .end_dir_init
  153.  
  154.   mov eax,dir_mem
  155.   add eax,32+4+1+3+4*6+8
  156. mov ecx,ebx
  157. @@:
  158.   cmp byte[eax],'.' ;䨫ìâà㥬 ä ©«ë á ¨¬¥­ ¬¨ '.' ¨ '..'
  159.   je .filter
  160.     ;0x10000 ;1*2^16 - £¤¥ 1 ­®¬¥à ¨ª®­ª¨ á ª­¨£®©
  161.     stdcall dword[tl_node_add], eax,0x10000, tree1
  162.  
  163.     stdcall dword[tl_cur_next], tree1
  164.   .filter:
  165.   add eax,304
  166.   loop @b
  167.   stdcall dword[tl_cur_beg],tree1 ;áâ ¢¨¬ ªãàá®à ­  ­ ç «® ᯨ᪠
  168. .end_dir_init:
  169.  
  170. ;--- load color option file ---
  171.         mov ebx,dword[fn_col_option]
  172.         copy_path ebx,fn_syntax_dir,file_name_rez,0x0
  173.         copy_path file_name_rez,sys_path,file_name,0x0
  174.         call open_unpac_synt_file
  175.  
  176. ;--- get cmd line ---
  177.         cmp byte[openfile_path+3],0 ;openfile_path
  178.         je @f ;if file names exist
  179.                 mov esi,openfile_path
  180.                 call strlen ;eax=strlen
  181.                 mov [edit1.size],eax
  182.                 call but_no_msg_OpenFile
  183.         @@:
  184.  
  185. align 4
  186. red_win:
  187.   call draw_window
  188.  
  189. align 4
  190. still:
  191.         mcall 10
  192.  
  193.         cmp al,1 ;¨§¬¥­¨«®áì ¯®«®¦¥­¨¥ ®ª­ 
  194.         jz red_win
  195.         cmp al,2
  196.         jz key
  197.         cmp al,3
  198.         jz button
  199.         cmp al,6 ;¬ëèì
  200.         jne @f
  201.                 mcall 9,procinfo,-1
  202.                 cmp ax,word[procinfo+4]
  203.                 jne @f ;®ª­® ­¥  ªâ¨¢­®
  204.                 jmp mouse
  205.         @@:
  206.         jmp still
  207.  
  208. align 4
  209. draw_window:
  210.         mcall 12,1
  211.  
  212.         mov edx,[sc.work]
  213.         or  edx,0x73000000
  214.         mov edi,hed
  215.         mcall 0,(10 shl 16)+485,(10 shl 16)+320
  216.  
  217.         mcall 9,procinfo,-1
  218.         mov edi,tedit0 ;§­ ç¥­¨¥ edi ­ã¦­® ¤«ï EvSize ¨ ted_wnd_t
  219.         call EvSize
  220.  
  221.         mov eax,13 ;¢¥àå­¨© ¯àאַ㣮«ì­¨ª, ¤«ï ®ç¨á⪨ ¢¥àå­¥© ¯ ­¥«¨
  222.         xor ebx,ebx
  223.         mov ecx,ted_wnd_t
  224.         mov bx,word[procinfo.client_box.width]
  225.         inc bx
  226.         int 0x40
  227.  
  228.         mov eax,4
  229.         mov ebx,185*65536+9
  230.         mov ecx,[sc.work_text]
  231.         or  ecx,0x80000000
  232.         mov edx,txtFile
  233.         int 0x40
  234.  
  235.   stdcall [edit_box_draw], dword edit1
  236.   stdcall [menu_bar_draw], dword menu_data_1
  237.  
  238.   call draw_but_toolbar
  239.  
  240.   stdcall [ted_draw], tedit0
  241.  
  242.   mcall 12,2
  243.   ret
  244.  
  245. align 4
  246. mouse:
  247.         stdcall [edit_box_mouse], dword edit1
  248.  
  249.         test word [edit1.flags],10b ;ed_focus ;¥á«¨ ­¥ ¢ 䮪ãá¥, ¢ë室¨¬
  250.         jne still
  251.  
  252.         stdcall [ted_mouse], tedit0
  253.  
  254.         cmp byte[tedit0.panel_id],TED_PANEL_FIND ;if not panel
  255.         jne @f
  256.                 stdcall [edit_box_mouse], dword edit2
  257.         @@:
  258.         cmp byte[tedit0.panel_id],TED_PANEL_SYNTAX ;if not panel
  259.         jne .menu_bar_1 ;@f
  260.         stdcall [tl_mouse], tree1
  261. ;-----------------------------------------------
  262. .menu_bar_1:
  263.         mov [menu_data_1.get_mouse_flag],1
  264. ; mouse event for Menu 1
  265.         stdcall [menu_bar_mouse],dword menu_data_1
  266.         cmp dword[menu_data_1.click],1
  267.         jne .mnu_1
  268.         cmp dword[menu_data_1.cursor_out],4
  269.         je button.exit 
  270.         cmp dword[menu_data_1.cursor_out],3
  271.         jne @f
  272.                 stdcall [ted_but_save_file], tedit0,run_file_70,[edit1.text]
  273.         @@:
  274.         cmp dword[menu_data_1.cursor_out],2
  275.         jne @f
  276.                 call ted_but_open_file
  277.         @@:
  278.         cmp dword[menu_data_1.cursor_out],1
  279.         jne @f
  280.                 call ted_but_new_file
  281.         @@:
  282. .mnu_1:
  283.         jmp still
  284. ;---------------------------------------------------------------------
  285.  
  286. ;output:
  287. ; ah = symbol
  288. align 4
  289. proc KeyConvertToASCII, table:dword
  290.   push ebx
  291.   mov ebx,dword[table] ;convert scan to ascii
  292.   ror ax,8
  293.   xor ah,ah
  294.   add bx,ax
  295.   mov ah,byte[ebx]
  296.   pop ebx
  297.   ret
  298. endp
  299.  
  300. align 4
  301. key:
  302.   mcall 66,3 ;66.3 ¯®«ãç¨âì á®áâ®ï­¨¥ ã¯à ¢«ïîé¨å ª« ¢¨è
  303.   xor esi,esi
  304.   mov ecx,1
  305.   test al,0x03 ;[Shift]
  306.   jz @f
  307.     mov cl,2
  308.     or esi,KM_SHIFT
  309.   @@:
  310.   test al,0x0c ;[Ctrl]
  311.   jz @f
  312.     or esi,KM_CTRL
  313.   @@:
  314.   test al,0x30 ;[Alt]
  315.   jz @f
  316.     mov cl,3
  317.     or esi,KM_ALT
  318.   @@:
  319.   test al,0x80 ;[NumLock]
  320.   jz @f
  321.     or esi,KM_NUMLOCK
  322.   @@:
  323.  
  324.   mcall 26,2,,conv_tabl ;26.2 ¯®«ãç¨âì à áª« ¤ªã ª« ¢¨ âãàë
  325.   mcall 2 ;¯®«ãç ¥¬ ª®¤ ­ ¦ â®© ª« ¢¨è¨
  326.   stdcall [tl_key], tree1
  327.  
  328.   test word [edit1.flags],10b;ed_focus ; ¥á«¨ ­¥ ¢ 䮪ãá¥, ¢ë室¨¬
  329.   je @f
  330.     cmp ah,0x80 ;if key up
  331.     ja still
  332.     cmp ah,42 ;[Shift] (left)
  333.     je still
  334.     cmp ah,54 ;[Shift] (right)
  335.     je still
  336.     cmp ah,56 ;[Alt]
  337.     je still
  338.     cmp ah,29 ;[Ctrl]
  339.     je still
  340.     cmp ah,69 ;[Pause Break]
  341.     je still
  342.  
  343.     stdcall KeyConvertToASCII, dword conv_tabl
  344.     stdcall [edit_box_key], dword edit1
  345.     jmp still
  346.   @@:
  347.  
  348.   test word [edit2.flags],10b;ed_focus ; ¥á«¨ ­¥ ¢ 䮪ãá¥, ¢ë室¨¬
  349.   je @f
  350.     cmp ah,0x80 ;if key up
  351.     ja still
  352.     cmp ah,42 ;[Shift] (left)
  353.     je still
  354.     cmp ah,54 ;[Shift] (right)
  355.     je still
  356.     cmp ah,56 ;[Alt]
  357.     je still
  358.     cmp ah,29 ;[Ctrl]
  359.     je still
  360.     cmp ah,69 ;[Pause Break]
  361.     je still
  362.  
  363.     stdcall KeyConvertToASCII, dword conv_tabl
  364.     stdcall [edit_box_key], dword edit2
  365.     jmp still
  366.   @@:
  367.  
  368.   stdcall [ted_key], tedit0, conv_tabl,esi
  369.   jmp still
  370.  
  371. align 4
  372. button:
  373. ;  cmp [menu_active],1 ;¥á«¨ ­ ¦ «¨ ¬¥­î, â® á­ ç «  ॠªæ¨ï ­  ¬¥­î
  374. ;  jne @f ;mouse.menu_bar_1
  375. ;    mov [menu_active],0
  376. ;    jmp still
  377. ;  @@:
  378.  
  379.   mcall 17 ;¯®«ãç¨âì ª®¤ ­ ¦ â®© ª­®¯ª¨
  380.   cmp ah,3
  381.   jne @f
  382.     call ted_but_new_file
  383.   @@:
  384.   cmp ah,4
  385.   jne @f
  386.     call ted_but_open_file
  387.   @@:
  388.   cmp ah,5
  389.   jne @f
  390.     stdcall [ted_but_save_file], tedit0,run_file_70,[edit1.text]
  391.   @@:
  392.   cmp ah,6
  393.   jne @f
  394.     stdcall [ted_but_select_word], tedit0
  395.   @@:
  396.   cmp ah,7
  397.   jne @f
  398.     stdcall [ted_but_cut], tedit0
  399.   @@:
  400.   cmp ah,8
  401.   jne @f
  402.     stdcall [ted_but_copy], tedit0
  403.   @@:
  404.   cmp ah,9
  405.   jne @f
  406.     stdcall [ted_but_paste], tedit0
  407.   @@:
  408.   cmp ah,10
  409.   jne @f
  410.     call ted_but_find
  411.   @@:
  412.   cmp ah,11
  413.   jne @f
  414.     call but_replace
  415.   @@:
  416.   cmp ah,12
  417.   jne @f
  418.     call but_find_key_w
  419.   @@:
  420.   cmp ah,13
  421.   jne @f
  422.     stdcall [ted_but_sumb_upper], tedit0
  423.   @@:
  424.   cmp ah,14
  425.   jne @f
  426.     stdcall [ted_but_sumb_lover], tedit0
  427.   @@:
  428.   cmp ah,15
  429.   jne @f
  430.     stdcall [ted_but_reverse], tedit0
  431.   @@:
  432.   cmp ah,16
  433.   jne @f
  434.     stdcall [ted_but_undo], tedit0
  435.   @@:
  436.   cmp ah,17
  437.   jne @f
  438.     stdcall [ted_but_redo], tedit0
  439.   @@:
  440.   cmp ah,18
  441.   jne @f
  442.     stdcall but_sumb_invis, tedit0
  443.   @@:
  444.   cmp ah,19
  445.   jne @f
  446.     stdcall but_k_words_show, tedit0
  447.   @@:
  448.   cmp ah,20
  449.   jne @f
  450.     stdcall but_synt_show, tedit0
  451.   @@:
  452.  
  453.   cmp ah,200
  454.   jne @f
  455.     stdcall ted_but_open_syntax, tedit0
  456.   @@:
  457.   cmp ah,201
  458.   jne @f
  459.     stdcall [ted_but_find_next], tedit0
  460.   @@:
  461.  
  462.   cmp ah,1
  463.   jne still
  464. .exit:
  465.         stdcall [ted_can_save], tedit0
  466.         cmp al,1
  467.         jne @f
  468.                 stdcall [mb_create],msgbox_8,thread ;message: save changes in file?
  469.                 jmp still
  470.         @@:
  471.         stdcall mem.Free,[bmp_icon]
  472.         cmp dword[unpac_mem],0
  473.         je @f
  474.                 stdcall mem.Free,[unpac_mem]
  475.         @@:
  476.  
  477.         stdcall [ted_delete], tedit0
  478.         stdcall dword[tl_data_clear], tree1
  479.         mcall -1 ;¢ë室 ¨§ ¯à®£à ¬¬ë
  480.  
  481.  
  482. edit1 edit_box 250, 220, 5, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 4090, openfile_path, mouse_dd, 0
  483. edit2 edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 300, buf_find, mouse_dd, 0
  484.  
  485. unpac_mem dd 0
  486. buf_find db 302 dup(0)
  487.  
  488. if lang eq ru
  489.   head_f_i:
  490.   head_f_l db '‘¨á⥬­ ï ®è¨¡ª ',0
  491.   err_message_found_lib0 db '¥ ­ ©¤¥­  ¡¨¡«¨®â¥ª  ',39,'box_lib.obj',39,0
  492.   err_message_import0 db 'Žè¨¡ª  ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'box_lib.obj',39,0
  493.   err_message_found_lib1 db '¥ ­ ©¤¥­  ¡¨¡«¨®â¥ª  ',39,'msgbox.obj',39,0
  494.   err_message_import1 db 'Žè¨¡ª  ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'msgbox.obj',39,0
  495.   err_message_found_lib2 db '¥ ­ ©¤¥­  ¡¨¡«¨®â¥ª  ',39,'proc_lib.obj',39,0
  496.   err_message_import2 db 'Žè¨¡ª  ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'proc_lib.obj',39,0
  497.   err_message_found_lib_3 db '¥ ­ ©¤¥­  ¡¨¡«¨®â¥ª  ',39,'libimg.obj',39,0
  498.   err_message_import_3 db 'Žè¨¡ª  ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,'libimg.obj',39,0
  499. else
  500.   head_f_i:
  501.   head_f_l db 'System error',0
  502.   err_message_found_lib0 db 'Sorry I cannot found library ',39,'box_lib.obj',39,0
  503.   err_message_import0 db 'Error on load import library ',39,'box_lib.obj',39,0
  504.   err_message_found_lib1 db 'Sorry I cannot found library ',39,'msgbox.obj',39,0
  505.   err_message_import1 db 'Error on load import library ',39,'msgbox.obj',39,0
  506.   err_message_found_lib2 db 'Sorry I cannot found library ',39,'proc_lib.obj',39,0
  507.   err_message_import2 db 'Error on load import library ',39,'proc_lib.obj',39,0
  508.   err_message_found_lib_3 db 'Sorry I cannot found library ',39,'libimg.obj',39,0
  509.   err_message_import_3 db 'Error on load import library ',39,'libimg.obj',39,0
  510. end if
  511.  
  512. ;library structures
  513. l_libs_start:
  514.         lib0 l_libs lib_name_0, sys_path, file_name, system_dir_0,\
  515.                 err_message_found_lib0, head_f_l, import_box_lib,err_message_import0, head_f_i
  516.         lib1 l_libs lib_name_1, sys_path, file_name, system_dir_1,\
  517.                 err_message_found_lib1, head_f_l, import_msgbox_lib, err_message_import1, head_f_i
  518.         lib2 l_libs lib_name_2, sys_path, file_name, system_dir_2,\
  519.                 err_message_found_lib2, head_f_l, import_proclib, err_message_import2, head_f_i
  520.         lib3 l_libs lib_name_3, sys_path, file_name, system_dir_3,\
  521.                 err_message_found_lib_3, head_f_l, import_libimg, err_message_import_3, head_f_i
  522. load_lib_end:
  523.  
  524. IncludeIGlobals
  525. i_end:
  526. IncludeUGlobals
  527.         rb 1024
  528.         align 16
  529.         procinfo process_information
  530.                 rb 1024
  531.         thread:
  532.         rb 1024
  533. stacktop:
  534.         sys_path:
  535.                 rb 4096
  536.         file_name:
  537.                 rb 4096
  538.         file_name_rez:
  539.                 rb 4096
  540.         plugin_path:
  541.                 rb 4096
  542.         openfile_path:
  543.                 rb 4096
  544.         filename_area:
  545.                 rb 256
  546.         file_info:
  547.                 rb 40
  548. mem:
  549.