Changeset 18343
- Timestamp:
- 08/27/08 22:43:35 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/hsp/misc/unused_variable_lister/unused_variable_lister.hsp
r18339 r18343 1 1 // Unused Variable Lister 2 2 // �����Ă��Ȃ��ÓI�ϐ�������� 3 // �t�@�C���I��C�A���O��HSP �̃I�u�W�F�N�g�t�@�C��(obj)���X�N���v�g�t�@�C��(*.hsp)��肵�Ă������� 4 // �I�u�W�F�N�g�t�@�C����start.ax �ł̓f�o�b�O�����t��������̂�obj ��肵�Ă��������B 5 3 6 // ���ӓ_: 4 7 // �u�����Ă��Ȃ�����sdim �Ƃ� dupptr �ł����ƕϐ�����Ă����悤�ȕϐ�����肵�Ă��܂��܂� … … 16 19 return types.type+"("+type+")" 17 20 #global 21 22 #include "hspcmp.as" 18 23 19 24 #define TYPE_MARK 0 … … 37 42 #define TYPE_USERDEF 18 38 43 39 dialog "*", 16, "HSP �I�u�W�F�N�g�t�@�C��"44 dialog "*", 16, "HSP obj file / script file" 40 45 if stat == 0 : end 41 46 obj_file_path = refstr 47 ext = getpath(obj_file_path, 2+16) 48 if ext == ".hsp" or ext == ".as" { 49 script_file_name = getpath(obj_file_path, 8) 50 obj_file_path = "obj" 51 hsc_ini script_file_name 52 hsc_objname obj_file_path 53 hsc_comp 1, 0 54 if stat { 55 title "�R���p�C���Ɏ��s���܂���" 56 hsc3_messize size 57 sdim error_message, size + 1 58 hsc_getmes error_message 59 mesbox error_message, 640, 480 60 stop 61 } 62 } 42 63 exist obj_file_path 64 if strsize < 0 { 65 dialog "�I�u�W�F�N�g�t�@�C�� " + obj_file_path + "�����݂��܂��� end 66 } 43 67 sdim ax, strsize 44 68 bload obj_file_path, ax 69 if lpeek(ax) != 0x33505348 { // header magic number check 70 dialog "�s���ȃI�u�W�F�N�g�t�@�C���ł�", 1 71 end 72 } 45 73 46 74 max_val = lpeek(ax, 8) … … 99 127 sz += 2 100 128 } 101 if ex1 &&type == TYPE_VAR {129 if ex1 and type == TYPE_VAR { 102 130 var_used_flags.code = 1 103 131 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)