1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
| #module multi_str_array str_array,count,index
#modinit int size
sdim str_array,128,size
count = 0:index = 0
return
#modfunc secure_at_multi_str_array int size
sdim str_array,128,size
count = 0:index = 0
return
#modfunc get_count_at_multi_str_array var to_ret
to_ret = count
return
#modfunc set_youso_at_multi_str_array str to_set,int _index
if _index > count{return -1}
str_array._index = to_set
return 1
#modfunc get_youso_at_multi_str_array var to_ret,int _index
if _index > count{to_ret="":return -1}
to_ret = str_array._index
return 1
#modfunc push_youso_at_multi_str_array str to_push
str_array.count = to_push
count++
return
#modfunc pop_youso_at_multi_str_array var to_pop
count--
to_pop = str_array.count
str_array.count = ""
return
#modfunc array2note_at_multi_str_array var note_str
note_str = ""
if count >= 1{note_str+=str_array.0}
repeat (count-1),1
note_str+="\n"+str_array.cnt
loop
return
#modfunc note2array_at_multi_str_array var note_str
notesel note_str
count = notemax
if notemax > length(str_array){sdim str_array,128,notemax}
repeat notemax
noteget str_array.cnt, cnt
loop
noteunsel
return
#modfunc arraysave_at_multi_str_array str p_file_name,local p_str_tmp
array2note_at_multi_str_array thismod,p_str_tmp
notesel p_str_tmp
notesave p_file_name
noteunsel
return
#modfunc arrayload_at_multi_str_array str p_file_name,local p_str_tmp
notesel p_str_tmp
noteload p_file_name
noteunsel
note2array_at_multi_str_array thismod,p_str_tmp
return
#modfunc begin_add_or_del_at_multi_str_array
sdim var_of_inner2note,4096
array2note_at_multi_str_array thismod,var_of_inner2note
notesel var_of_inner2note
return
#modfunc noteadd_at_multi_str_array str to_add,int index_to_add,int mode_to_add
noteadd to_add,index_to_add,mode_to_add
return
#modfunc notedel_at_multi_str_array int index_to_del
notedel index_to_del
return
#modfunc finish_add_or_del_at_multi_str_array
count = notemax
if notemax > length(str_array){sdim str_array,128,notemax}
repeat notemax
noteget str_array.cnt, cnt
loop
sdim var_of_inner2note,1
noteunsel
return
#modfunc output_begin_at_multi_str_array
index = 0
if count <= 0 { return -1 }
return 1
#modfunc output_at_multi_str_array var to_ret
if index >= count { return -1 }
to_ret = str_array.index
index++
return 1
#modfunc logmes_at_multi_str_array
logmes "count = "+count
repeat count
logmes str_array.cnt
loop
return
#modfunc print_at_multi_str_array
repeat count
mes str_array.cnt
loop
return
#global
|