@@ -48,7 +48,7 @@ void sc_raise(const char *fmt, ...);
4848 *
4949 * @param bc the bc structure
5050 */
51- void bc_create (bc_t * bc );
51+ void bc_create (bc_t * bc );
5252
5353/**
5454 * @ingroup scan
@@ -57,7 +57,7 @@ void bc_create(bc_t * bc);
5757 *
5858 * @param bc the bc structure
5959 */
60- void bc_destroy (bc_t * bc );
60+ void bc_destroy (bc_t * bc );
6161
6262/**
6363 * @ingroup scan
@@ -67,7 +67,7 @@ void bc_destroy(bc_t * bc);
6767 * @param bc the bc structure
6868 * @param newsize the new size
6969 */
70- void bc_resize (bc_t * bc , dword newsize );
70+ void bc_resize (bc_t * bc , dword newsize );
7171
7272/**
7373 * @ingroup scan
@@ -77,7 +77,7 @@ void bc_resize(bc_t * bc, dword newsize);
7777 * @param bc the bc structure
7878 * @param code the byte
7979 */
80- void bc_add1 (bc_t * bc , byte code );
80+ void bc_add1 (bc_t * bc , byte code );
8181
8282/**
8383 * @ingroup scan
@@ -87,7 +87,7 @@ void bc_add1(bc_t * bc, byte code);
8787 * @param bc the bc structure
8888 * @param code the byte
8989 */
90- void bc_store1 (bc_t * bc , addr_t offset , byte code );
90+ void bc_store1 (bc_t * bc , addr_t offset , byte code );
9191
9292/**
9393 * @ingroup scan
@@ -97,7 +97,7 @@ void bc_store1(bc_t * bc, addr_t offset, byte code);
9797 * @param bc the bc structure
9898 * @param code the word
9999 */
100- void bc_add_word (bc_t * bc , word code );
100+ void bc_add_word (bc_t * bc , word code );
101101
102102/**
103103 * @ingroup scan
@@ -107,7 +107,14 @@ void bc_add_word(bc_t * bc, word code);
107107 * @param bc the bc structure
108108 * @param code the dword
109109 */
110- void bc_add_dword (bc_t * bc , dword code );
110+ void bc_add_dword (bc_t * bc , dword code );
111+
112+ /**
113+ * @ingroup scan
114+ *
115+ * adds a string of the given length
116+ */
117+ void bc_add_strn (bc_t * bc , const char * str , int len );
111118
112119/**
113120 * @ingroup scan
@@ -118,7 +125,7 @@ void bc_add_dword(bc_t * bc, dword code);
118125 * @param str the raw-string. the string must starts with \". the string must also contains the ending \".
119126 * @return a pointer of src to the next character after the second \"
120127 */
121- char * bc_store_string (bc_t * bc , char * src );
128+ char * bc_store_string (bc_t * bc , char * src );
122129
123130/**
124131 * @ingroup scan
@@ -129,7 +136,7 @@ char *bc_store_string(bc_t * bc, char *src);
129136 * @param str the raw-string. the string must starts with `. the string must also contains the ending `.
130137 * @return a pointer of src to the next character after the second `
131138 */
132- char * bc_store_macro (bc_t * bc , char * src );
139+ char * bc_store_macro (bc_t * bc , char * src );
133140
134141/**
135142 * @ingroup scan
@@ -138,7 +145,7 @@ char *bc_store_macro(bc_t * bc, char *src);
138145 *
139146 * @param bc the bc structure
140147 */
141- void bc_eoc (bc_t * bc );
148+ void bc_eoc (bc_t * bc );
142149
143150/**
144151 * @ingroup scan
@@ -148,7 +155,7 @@ void bc_eoc(bc_t * bc);
148155 * @param dest the destination
149156 * @param src the code to be appended to dest
150157 */
151- void bc_append (bc_t * dest , bc_t * src );
158+ void bc_append (bc_t * dest , bc_t * src );
152159
153160/**
154161 * @ingroup scan
@@ -159,7 +166,7 @@ void bc_append(bc_t * dest, bc_t * src);
159166 * @param src the code to be appended to dest
160167 * @param n the size of the src to be copied
161168 */
162- void bc_add_n (bc_t * dest , byte * src , dword n );
169+ void bc_add_n (bc_t * dest , byte * src , dword n );
163170
164171/**
165172 * @ingroup scan
@@ -175,7 +182,7 @@ void bc_add_n(bc_t * dest, byte * src, dword n);
175182 * @param dest the bc segment
176183 * @param idx the index of the function
177184 */
178- void bc_add_fcode (bc_t * dest , long idx );
185+ void bc_add_fcode (bc_t * dest , long idx );
179186
180187/**
181188 * @ingroup scan
@@ -185,7 +192,7 @@ void bc_add_fcode(bc_t * dest, long idx);
185192 * @param dest the bc segment
186193 * @param idx the index of the procedure
187194 */
188- void bc_add_pcode (bc_t * dest , long idx );
195+ void bc_add_pcode (bc_t * dest , long idx );
189196
190197/**
191198 * @ingroup scan
@@ -196,7 +203,7 @@ void bc_add_pcode(bc_t * dest, long idx);
196203 * @param lib the index of the library
197204 * @param idx the index of the function
198205 */
199- void bc_add_extfcode (bc_t * dest , int lib , long idx );
206+ void bc_add_extfcode (bc_t * dest , int lib , long idx );
200207
201208/**
202209 * @ingroup scan
@@ -207,7 +214,7 @@ void bc_add_extfcode(bc_t * dest, int lib, long idx);
207214 * @param lib the index of the library
208215 * @param idx the index of the procedure
209216 */
210- void bc_add_extpcode (bc_t * dest , int lib , long idx );
217+ void bc_add_extpcode (bc_t * dest , int lib , long idx );
211218
212219/**
213220 * @ingroup scan
@@ -217,7 +224,7 @@ void bc_add_extpcode(bc_t * dest, int lib, long idx);
217224 * @param bc the bc segment
218225 * @param idx the address
219226 */
220- void bc_add_addr (bc_t * bc , addr_t idx );
227+ void bc_add_addr (bc_t * bc , addr_t idx );
221228
222229/**
223230 * @ingroup scan
@@ -229,7 +236,7 @@ void bc_add_addr(bc_t * bc, addr_t idx);
229236 * @param true_ip the jump-address when on true
230237 * @param false_ip the jump-address when on false
231238 */
232- void bc_add_ctrl (bc_t * bc , code_t code , addr_t true_ip , addr_t false_ip );
239+ void bc_add_ctrl (bc_t * bc , code_t code , addr_t true_ip , addr_t false_ip );
233240
234241/**
235242 * @ingroup scan
@@ -239,7 +246,7 @@ void bc_add_ctrl(bc_t * bc, code_t code, addr_t true_ip, addr_t false_ip);
239246 * @param bc the bc segment
240247 * @param v the number
241248 */
242- void bc_add_creal (bc_t * bc , var_num_t v );
249+ void bc_add_creal (bc_t * bc , var_num_t v );
243250
244251/**
245252 * @ingroup scan
@@ -249,6 +256,6 @@ void bc_add_creal(bc_t * bc, var_num_t v);
249256 * @param bc the bc segment
250257 * @param v the number
251258 */
252- void bc_add_cint (bc_t * bc , var_int_t v );
259+ void bc_add_cint (bc_t * bc , var_int_t v );
253260
254261#endif
0 commit comments