Subversion Repositories Kolibri OS

Rev

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

  1. ; The macros for load any library/libraries:
  2. ; Copyright (c) 2009, <Lrz>
  3. ; All rights reserved.
  4.  
  5.  
  6.  
  7. macro @use_library mem_alloc,mem_free,mem_realloc,dll_load
  8. {
  9. local lp1
  10. local lp2
  11. local lp3
  12. local lp4
  13. local lp5
  14. local lp6
  15. local file_name
  16. local l_lib_m1
  17. local l_lib_m2
  18. local l_lib_m3
  19. local l_lib_m4
  20.  
  21. library_fun_memory_alloc equ mem_alloc
  22. library_fun_memory_free equ mem_free
  23. library_fun_memory_realloc equ mem_realloc
  24. library_fun_dll_load equ dll_load
  25.  
  26. align 4
  27. arrea_xx dd 0
  28. file_name db '/sys/@notify',0
  29.  
  30. if lang eq ru
  31.         l_lib_m1 db '"‘¨á⥬­ ï ®è¨¡ª ',13,10,'¥ ­ ©¤¥­  ¡¨¡«¨®â¥ª  ',39,0
  32.         l_lib_m2 db '"‘¨á⥬­ ï ®è¨¡ª ',13,10,'Žè¨¡ª  ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ ',39,0
  33.         l_lib_m3 db 39,13,10,'­¥ ­ ©¤¥­  äã­ªæ¨ï ',39,0
  34.         l_lib_m4 db 39,'" -tE',0
  35. else
  36.         l_lib_m1 db '"System error',13,10,'Sorry I cannot found library ',39,0
  37.         l_lib_m2 db '"System error',13,10,'Error on load import library ',39,0
  38.         l_lib_m3 db 39,13,10,'cannot found function ',39,0
  39.         l_lib_m4 db 39,'" -tE',0
  40. end if
  41.  
  42. align 4
  43. run_notify_struct:
  44.         .Function dd 7
  45.         .Position dd 0
  46.         .Flags dd ?
  47.         .Count dd 0
  48.         .Buffer dd 0
  49.                 db 0
  50.         .FileName dd file_name
  51.  
  52. @library_name     equ    dword [esp+16]
  53. @cur_dir_path     equ    dword [esp+12]
  54. @library_path     equ    dword [esp+8]
  55. @point_dir_name   equ    dword [esp+4]
  56.  
  57. ;description:
  58. ; £®â®¢¨¬ ⥪áâ ¤«ï ¯®ª §  ç¥à¥§ @notify:
  59. ; 1) ¢ë¤¥«ï¥¬ ¯ ¬ïâì ¢ [arrea_xx] ­® ­¥ ¡®«ìè¥ ®¤­®£® à § 
  60. ; 2) ª®¯¨à㥬 § £®«®¢®ª (¥á«¨ ¥áâì ¨¬ï ä㭪樨 â® ¤®¡ ¢«ï¥¬ ¥£® ª § £®«®¢ªã) ¨ ⥪áâ á®®¡é¥­¨ï ¢ [arrea_xx]
  61. ;input:
  62. ; ebp+8  - library name
  63. ; ebp+12 - 0 ¨«¨ ¨¬ï ä㭪樨, ª®â®àãî ­¥ 㤠«®áì íªá¯®àâ¨à®¢ âì
  64. ;output:
  65. ; eax = -1
  66. align 4
  67. l_lib_init_error_window:
  68.         push ebp
  69.         mov ebp,esp
  70.         cmp dword[arrea_xx],0
  71.         jne .no_msg ;¥á«¨ à ­ìè¥ ¡ë«® ᮧ¤ ­® ¤à㣮¥ á®®¡é¥­¨¥
  72.         pushad
  73.  
  74.         mcall SF_SYS_MISC,SSF_HEAP_INIT
  75.         mcall SF_SYS_MISC,SSF_MEM_ALLOC,4096
  76.         mov [arrea_xx],eax
  77.  
  78.         mov edi,eax
  79.         mov esi,l_lib_m2 ;á®®¡é¥­¨¥ ¥á«¨ ­¥ 㤠«®áì ¨¬¯®àâ¨à®¢ âì äã­ªæ¨î
  80.         cmp dword[ebp+12],0
  81.         je @f
  82.         mov esi,l_lib_m1 ;á®®¡é¥­¨¥ ¥á«¨ ­¥ 㤠«®áì § £à㧨âì ¡¨¡«¨®â¥ªã
  83. align 4
  84. @@:
  85.         movsb
  86.         cmp byte[esi],0
  87.         jne @b
  88.         ;¤®¡ ¢«ï¥¬ ¨¬ï ¡¨¡«¨®â¥ª¨
  89.         mov esi,[ebp+8]
  90. align 4
  91. @@:
  92.         movsb
  93.         cmp byte[esi],0
  94.         jne @b
  95.  
  96.         cmp dword[ebp+12],0
  97.         je .lp1
  98.         ;¤®¡ ¢«ï¥¬ á¥à¥¤¨­ã á®®¡é¥­¨ï
  99.         mov esi,l_lib_m3
  100. align 4
  101. @@:
  102.         movsb
  103.         cmp byte[esi],0
  104.         jne @b
  105.         ;¤®¡ ¢«ï¥¬ ¨¬ï ä㭪樨
  106.         mov esi,[ebp+12]
  107. align 4
  108. @@:
  109.         movsb
  110.         cmp byte[esi],0
  111.         jne @b
  112.        
  113.         .lp1: ;á®®¡é¥­¨¥ ¥á«¨ ­¥ 㤠«®áì § £à㧨âì ¡¨¡«¨®â¥ªã
  114.         ;¤®¡ ¢«ï¥¬ ª®­¥æ á®®¡é¥­¨ï
  115.         mov esi,l_lib_m4
  116. align 4
  117. @@:
  118.         movsb
  119.         cmp byte[esi],0
  120.         jne @b
  121.         mov byte[edi],0
  122.  
  123.         popad
  124.         .no_msg:
  125.         or eax,-1
  126.         pop ebp
  127.         ret 8
  128.  
  129. align 4
  130. @copy_path:
  131.         mov     esi,@cur_dir_path
  132.         mov     edi,@library_path
  133.         xor     eax,eax
  134.         cld
  135. align 4
  136. .lp1:
  137.         lodsb
  138.         stosb
  139.         test    eax,eax
  140.         jnz     .lp1
  141.         mov     esi,edi
  142.         dec     esi ;¯¥à¥å®¤ ­  ᨬ¢®« ª®­æ  áâப¨ @cur_dir_path
  143.         std
  144. align 4
  145. .lp2:
  146.         lodsb
  147.         cmp     al,'/'
  148.         jnz     .lp2
  149.         mov     edi,esi
  150.         add     edi,2
  151.         cld
  152.         mov     esi,@point_dir_name
  153.         test    esi,esi
  154.         jz      .str_lp4
  155.  
  156.         ;¯à®¢¥àª  ®â­®á¨â¥«ì­ëå ¯ã⥩ c ¤¢ã¬ï â®çª ¬¨ '../'
  157.         cmp word[esi],'..'
  158.         jne .lp3
  159.         dec edi ;¤«ï ¯¥à¥å®¤  ­  '/'
  160. .lp6:
  161.                 add esi,3 ;¯à®¯ã᪠¥¬ ®¤­® ¯®¤­ï⨥ '../'
  162. .lp5:
  163.                 dec edi ;¨¤¥¬ ¯® ¯ ¯ª ¬
  164.                 cmp byte[edi],'/'
  165.                 jnz .lp5
  166.         cmp word[esi],'..'
  167.         je .lp6
  168.         inc edi ;¤«ï ¯¥à¥å®¤  ­  '/'
  169.  
  170.         ;ª®¯¨à®¢ ­¨¥ ®â­®á¨â¥«ì­®£® ¯ãâ¨
  171. align 4
  172. .lp3:
  173.         lodsb
  174.         stosb
  175.         test    eax,eax
  176.         jnz     .lp3
  177.         dec     edi
  178. .str_lp4:
  179.         mov     esi,@library_name
  180. align 4
  181. .lp4:
  182.         lodsb
  183.         stosb
  184.         test    eax,eax
  185.         jnz     .lp4
  186.         ret
  187. }
  188. ;---------------------------------------------------------------------
  189.  
  190. macro sys_load_library library_name__, library_path__, system_path__, myimport, point_dir_name__
  191. {
  192. local i_begin
  193. local i_error
  194. local i_exit
  195.         push ebx
  196.         mcall   SF_SYS_MISC,SSF_LOAD_DLL,system_path__   ; load of sys directory
  197.         test    eax,eax
  198.         jnz             i_begin
  199.  
  200. if point_dir_name__ eq
  201.                 copy_path   library_name__, [32], library_path__,0
  202. else
  203.                 ;the macros making way /current path a program/ + name system library
  204.                 copy_path   library_name__, [32], library_path__,point_dir_name__
  205. end if
  206.                 mcall   SF_SYS_MISC,SSF_LOAD_DLL,library_path__ ; load of alternative
  207.                 test    eax,eax
  208.                 jnz             i_begin
  209.                 jmp             i_error
  210. align 4
  211.         i_begin:
  212.                 import_boxlib myimport
  213.                 test    eax,eax
  214.                 jz              i_exit
  215.         i_error:
  216.                 push    eax
  217.                 push    dword library_name__
  218.                 call    l_lib_init_error_window
  219.                 notify_window_run [arrea_xx] ; ᮧ¤ ¥¬ ®ª­® @notify
  220.         i_exit:
  221.         pop ebx
  222. }
  223. ;---------------------------------------------------------------------
  224.  
  225. ;output:
  226. ; eax - ¥á«¨ 㤠筮 â® 0
  227. macro load_library library_name__, library_path__, system_path__, myimport, point_dir_name__
  228. {
  229. local i_begin
  230. local i_error
  231. local i_exit
  232.         push ebx
  233. if point_dir_name__ eq
  234.                 copy_path   library_name__, [32], library_path__,0
  235. else
  236.                 ;the macros making way /current path a program/ + name system library
  237.                 copy_path   library_name__, [32], library_path__,point_dir_name__
  238. end if
  239.                 mcall   SF_SYS_MISC,SSF_LOAD_DLL,library_path__ ; load of alternative
  240.                 test    eax,eax
  241.                 jnz             i_begin
  242.  
  243.                 mcall   SF_SYS_MISC,SSF_LOAD_DLL,system_path__ ; load of sys directory
  244.                 test    eax,eax
  245.                 jnz             i_begin
  246.                 jmp             i_error
  247. align 4
  248.         i_begin:
  249.                 import_boxlib myimport
  250.                 test    eax,eax
  251.                 jz              i_exit
  252.         i_error:
  253.                 push    eax
  254.                 push    dword library_name__
  255.                 call    l_lib_init_error_window
  256.                 notify_window_run [arrea_xx] ; ᮧ¤ ¥¬ ®ª­® @notify
  257.         i_exit:
  258.         pop ebx
  259. ;---------------------------------------------------------------------
  260. }
  261.  
  262. ;description:
  263. ; ¬ ªà®á § £à㧪¨ ¡¨¡«¨®â¥ª ¨§ á¨á⥬­®© ¯ ¯ª¨, ¥á«¨ ¡¨¡«¨®â¥ª  ­¥ ­ ©¤¥­ 
  264. ; ⮣¤  ¯®¨áª ¨¤¥â ¢ ⥪ã饩 ¯ ¯ª¥ á ¯à®£à ¬¬®©
  265. macro sys_load_libraries _start,_end
  266. {
  267. local cycle0
  268. local end_steep
  269. local cycle0n
  270. local cycle1
  271. local cycle1n
  272. local cycle1e
  273. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  274. library_name__            equ [ebp]
  275. library_path__            equ [ebp+4]
  276. system_path__             equ [ebp+8]
  277. my_import                 equ [ebp+12]
  278. point_dir_name__          equ [ebp+16]
  279. adr_load_lib              equ dword [ebp+20]
  280. status_lib                equ dword [ebp+24]
  281.  
  282.         mov     ebp,_start
  283.         mov     ecx,(_end-_start)/ll_struc_size
  284. align 4
  285.         cycle0:
  286.                 push    ecx
  287.         mcall   SF_SYS_MISC,SSF_LOAD_DLL,system_path__   ; load of sys directory
  288.         test    eax,eax
  289.         jnz     end_steep
  290.  
  291.         ;the macros making way /current path a program/ + name system library
  292.                 copy_path  library_name__, [32], library_path__,point_dir_name__
  293.        
  294.         mcall   SF_SYS_MISC,SSF_LOAD_DLL,library_path__ ; load of alternative
  295.         test    eax,eax
  296.         jnz     end_steep
  297.         or      status_lib,1          ; status of code - enable error - not found library
  298.  
  299.                 push    eax
  300.                 push    dword library_name__
  301.                 call    l_lib_init_error_window
  302.         jmp             cycle0n
  303.  
  304. align 4
  305.         end_steep:
  306.                 mov             adr_load_lib,eax        ;save adr lib in memory
  307.                 import_boxlib my_import
  308.                 test    eax,eax
  309.                 jz              cycle0n
  310.                 or              status_lib,2          ; status of code - enable error - import error
  311.                 push    eax
  312.                 push    dword library_name__
  313.                 call    l_lib_init_error_window
  314.         cycle0n:
  315.                 pop     ecx
  316.                 add     ebp,ll_struc_size
  317.                 dec     ecx
  318.                 jnz     cycle0
  319.  
  320.         ;¢ë¢®¤ á®®¡é¥­¨ï ®¡ ®è¨¡ª¥ ¯à¨ § £à㧪¥
  321.         mov     ebp,_start
  322.         mov     ecx,(_end-_start)/ll_struc_size
  323. align 4
  324.         cycle1:
  325.                 mov     eax,status_lib
  326.                 test    eax,eax
  327.                 jz      cycle1n
  328.                 notify_window_run [arrea_xx] ; ᮧ¤ ¥¬ ®ª­® @notify
  329.                 mov             eax,-1
  330.                 jmp             cycle1e
  331. align 4
  332.                 cycle1n:
  333.                 add     ebp,ll_struc_size
  334.                 dec     ecx
  335.                 jnz     cycle1
  336.         cycle1e:
  337. }
  338.  
  339. ;description:
  340. ; ¬ ªà®á § £à㧪¨ ¡¨¡«¨®â¥ª ¨§ ⥪ã饩 ¯ ¯ª¨ á ¯à®£à ¬¬®©, ¥á«¨ ¡¨¡«¨®â¥ª  ­¥ ­ ©¤¥­ 
  341. ; ⮣¤  ¯®¨áª ¨¤¥â ¢ á¨á⥬­®© ¯ ¯ª¥
  342. macro load_libraries _start,_end
  343. {
  344. local cycle0
  345. local end_steep
  346. local cycle0n
  347. local cycle1
  348. local cycle1n
  349. local cycle1e
  350. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  351. library_name__            equ [ebp]
  352. library_path__            equ [ebp+4]
  353. system_path__             equ [ebp+8]
  354. my_import                 equ [ebp+12]
  355. point_dir_name__          equ [ebp+16]
  356. adr_load_lib              equ dword [ebp+20]
  357. status_lib                equ dword [ebp+24]
  358.  
  359.         mov     ebp,_start
  360.         mov     ecx,(_end-_start)/ll_struc_size
  361. align 4
  362.         cycle0:
  363.                 push    ecx
  364.  
  365.                 ;the macros making way /current path a program/ + name system library
  366.                 copy_path    library_name__, [32], library_path__,point_dir_name__
  367.  
  368.                 mcall   SF_SYS_MISC,SSF_LOAD_DLL,library_path__  ; load of alternative
  369.                 test    eax,eax
  370.                 jnz             end_steep
  371.  
  372.                 mcall   SF_SYS_MISC,SSF_LOAD_DLL,system_path__   ; load of sys directory
  373.                 test    eax,eax
  374.                 jnz             end_steep
  375.                 or              status_lib,1          ; status of code - enable error - not found library
  376.  
  377.                 push    eax
  378.                 push    dword library_name__
  379.                 call    l_lib_init_error_window
  380.                 jmp             cycle0n
  381.  
  382. align 4
  383.         end_steep:
  384.                 mov             adr_load_lib,eax        ;save adr lib in memory
  385.                 import_boxlib my_import
  386.                 test    eax,eax
  387.                 jz              cycle0n
  388.                 or              status_lib,2          ; status of code - enable error - import error
  389.                 push    eax
  390.                 push    dword library_name__
  391.                 call    l_lib_init_error_window
  392.         cycle0n:
  393.                 pop     ecx
  394.                 add     ebp,ll_struc_size
  395.                 dec     ecx
  396.                 jnz     cycle0
  397.  
  398.         ;¢ë¢®¤ á®®¡é¥­¨ï ®¡ ®è¨¡ª¥ ¯à¨ § £à㧪¥
  399.         mov     ebp,_start
  400.         mov     ecx,(_end-_start)/ll_struc_size
  401. align 4
  402.         cycle1:
  403.                 mov     eax,status_lib
  404.                 test    eax,eax
  405.                 jz      cycle1n
  406.                 notify_window_run [arrea_xx] ; ᮧ¤ ¥¬ ®ª­® @notify
  407.                 mov             eax,-1
  408.                 jmp             cycle1e
  409. align 4
  410.                 cycle1n:
  411.                 add     ebp,ll_struc_size
  412.                 dec     ecx
  413.                 jnz     cycle1
  414.         cycle1e:
  415. }
  416.  
  417.  
  418. macro copy_path lib_name,dir_path,lib_path,point_dir_name
  419. {
  420. pushad  ;save all registers
  421.         push dword lib_name
  422.         push dword dir_path
  423.         push dword lib_path
  424.         push dword point_dir_name
  425.         call @copy_path
  426.  
  427.         add  esp,16
  428.         ;notify_window_run lib_path ;unblok for test load path
  429. popad   ;restore all registers
  430. }
  431.  
  432. ; ¢ª«îç ¥¬ ¯®ª § á®®¡é¥­¨ï ç¥à¥§ @notify:
  433. macro notify_window_run message
  434. {
  435. push eax ebx
  436.         mov eax,message ;¯ à ¬¥âàë ¤«ï ª®¬ ­¤­®© áâப¨
  437.         mov [run_notify_struct.Flags],eax
  438.         mcall SF_FILE,run_notify_struct
  439. pop ebx eax
  440. }
  441.  
  442.  
  443. ;input:
  444. ; eax -  ¤à¥á ¡¨¡«¨®â¥ª¨ ¢ ¯ ¬ïâ¨
  445. ; myimport - ¨¬¯®àâ¨àã¥¬ë¥ ä㭪樨
  446. ;output:
  447. ; eax - ¥á«¨ 㤠筮 â® 0 ¨«¨ 㪠§ â¥«ì ­  ¨¬ï ä㭪樨 ª®â®àãî ­¥ 㤠«®áì § £à㧨âì
  448. ; ebx - à §àãè ¥âáï
  449. macro import_boxlib myimport
  450. {
  451. local import_loop
  452. local import_find
  453. local lp
  454. local import_find_next
  455. local import_found
  456. local import_done
  457. local exit
  458. local import_not_found
  459. ; initialize import
  460.         push esi
  461.         mov     edx, eax
  462.         mov     esi, myimport
  463.                 cld
  464. import_loop:
  465.         lodsd   ;mov eax,dword[esi] ;add esi,4 ;¯®«ãç ¥¬ ¢ eax 㪠§ â¥«ì ­  ¨¬ï ¨¬¯®àâ¨à㥬®© ä㭪樨
  466.         test    eax, eax
  467.         jz      import_done ;¥á«¨ 㪠§ â¥«ì ­  ¨¬ï ä㭪樨 = 0 (¢ ¯®«ì§®¢ â¥«ì᪮© ¯à®£à ¬¬¥)
  468.         push    edx ;á®å࠭塞 ­ ç «® ¡¨¡«¨®â¥ç­ëå 㪠§ â¥«¥© ­  ä㭪樨
  469. import_find:
  470.         mov     ebx, [edx]
  471.         test    ebx, ebx
  472.         jz      import_not_found ;¥á«¨ 㪠§ â¥«ì ­  ¨¬ï ä㭪樨 = 0 (¢ ¡¨¡«¨®â¥ª¥)
  473.         push    eax ;eax - 㪠§ â¥«ì ­  ¨¬ï íªá¯®àâ¨à㥬®© ä㭪樨 (¢ ¯®«ì§®¢ â¥«ì᪮© ¯à®£à ¬¬¥)
  474. align 4
  475. lp:
  476.         mov     cl, [eax]
  477.         cmp     cl, [ebx] ;áà ¢­¨¢ ¥¬ ¨¬¥­  ä㭪権 ¢ ¡¨¡«¨®â¥ª¥ ¨ ¢ ¯®«ì§®¢ â¥«ì᪮© ¯à®£à ¬¬¥
  478.         jnz     import_find_next ;¥á«¨ ­ §¢ ­¨ï ­¥ ᮢ¯ «¨
  479.         test    cl, cl
  480.         jz      import_found ;¥á«¨ ­ §¢ ­¨ï ᮢ¯ «¨, ¨ 㦥 ª®­¥æ áâப¨ (cl=0)
  481.         inc     eax
  482.         inc     ebx
  483.         jmp     lp
  484. import_find_next:
  485.         pop     eax
  486.         add     edx, 8 ;8 = 4 ¡ ©â  㪠§ â¥«ì ­  ­ §¢ ­¨¥ ¨ 4 ¡ ©â  㪠§ â¥«ì ­  äã­ªæ¨î
  487.         jmp     import_find
  488. import_found:
  489.         pop     ebx ;¢®áâ ­ ¢«¨¢ ¥¬ 㪠§ â¥«ì ­  ¨¬ï ä㭪樨 (ª®â®àë© ¡ë« ¢ eax) ¨ ®á¢®¡®¦¤ ¥¬ á⥪
  490.         mov     eax, [edx+4] ;eax = 㪠§ â¥«ì ­  äã­ªæ¨î (¢ ¡¨¡«¨®â¥ª¥)
  491.         mov     [esi-4], eax ;ª®¯¨à㥬 㪠§ â¥«ì (­  äã­ªæ¨î) ¢ ¯à®£à ¬¬ã, -4 áâ ¢¨¬ ¯®â®¬ã çâ® esi ¡ë«® ᤢ¨­ãâ® ª®¬ ­¤®© lodsd
  492.         pop     edx ;ãáâ ­ ¢«¨¢ ¥¬ edx ­  ­ ç «® ¡¨¡«¨®â¥ç­ëå ä㭪権
  493. ;--- ¯à®¢¥à塞 ᮢ¯ ¤ ¥â «¨ ¨¬ï íªá¯®àâ¨à®¢ ­­®© ä㭪樨 á 'lib_init'
  494. if library_fun_memory_alloc eq
  495. else
  496.                 cmp dword[ebx],'lib_'
  497.                 jne             import_loop
  498.                 cmp dword[ebx+4],'init'
  499.                 jne             import_loop
  500.                 ;cmp  byte[ebx+8],0
  501.                 ;jne            import_loop
  502. ;--- ¥á«¨ ¨¬ï ä㭪樨 ᮢ¯ «® á 'lib_init' ¯®¯ ¤ ¥¬ á
  503.                 ;¯®¤ª«î祭¨¥ ä㭪権 ¤«ï à ¡®âë á ¯ ¬ïâìî
  504.                 ;push eax
  505.                 ;call dll.Init
  506.                 pushad
  507.                 mov esi,eax
  508.                 mov     eax,library_fun_memory_alloc
  509.                 mov     ebx,library_fun_memory_free
  510.                 mov     ecx,library_fun_memory_realloc
  511.                 mov     edx,library_fun_dll_load
  512.                 call dword esi
  513.                 popad
  514. end if
  515.         jmp     import_loop
  516. import_not_found:
  517.         add     esp,4
  518.         jmp     exit
  519. import_done:
  520.         xor     eax,eax ;=0 ¢á¥ § £à㧨«®áì 㤠筮
  521. exit:
  522.         pop esi
  523. }
  524. ;---------------------------------------------------------------------
  525.  
  526. ll_struc_size = 28;($-library_name__)    ; constant   size of struct
  527. struc l_libs library_name__, library_path__, system_path__, my_import, point_dir_name; struct for loading libraries
  528. {        
  529. .library_name__           dd library_name__        ; ¨¬ï § £à㦠¥¬®© ¡¨¡«¨®â¥ª¨
  530.                        
  531. .library_path__           dd library_path__        ; 㪠§ â¥«ì ­  ¡ãä¥à ¢ ª®â®à®¬ ¡ã¤¥â á®ä®à¨¬¨à®¢ ­ ¯ãâì ª ¡¨¡«¨®â¥ª¨, ¥á«¨ ­ã¦­® ¢ëç¨á«¨âì ¯ãâì ¤® «¨¡ë á ¬¥áâ  § ¯ã᪠ ¯à®£à ¬¬ë, ®¡ëç­® ­ã¦­®, ¢ á«ãç ïå, ¥á«¨ «¨¡  à á¯®«®¦¥­  ¢ ⮩ ¦¥ ¯ ¯ª¥
  532. .complete_path            dd system_path__         ; ¯ãâì ª®â®àë© ç¥âª® ᮤ¥à¦¨â ¯ãâì
  533. .my_import                dd my_import
  534. if point_dir_name eq
  535. .point_dir_name__       dd 0
  536. else
  537. .point_dir_name__       dd point_dir_name          ; ¨¬ï ¢«®¦¥­­®© ¤¨à४â®à¨¨ ¢ ªâ®à®© åà ­ïâìáï ¯®¤£à㦠¥¬ë¥ ¬®¤ã«¨.
  538. end if
  539. .adr_load_lib           dd 0
  540. .status_lib             dd 0          ;status of load library
  541. ;
  542. }
  543.