… | |
… | |
5 | #include "uulib/fptools.h" |
5 | #include "uulib/fptools.h" |
6 | #include "uulib/uudeview.h" |
6 | #include "uulib/uudeview.h" |
7 | #include "uulib/uuint.h" |
7 | #include "uulib/uuint.h" |
8 | |
8 | |
9 | static int |
9 | static int |
10 | not_here(char *s) |
10 | not_here (char *s) |
11 | { |
11 | { |
12 | croak("%s not implemented on this architecture", s); |
12 | croak("%s not implemented", s); |
13 | return -1; |
13 | return -1; |
14 | } |
14 | } |
15 | |
15 | |
16 | static int |
16 | static int |
17 | constant(char *name) |
17 | constant (char *name) |
18 | { |
18 | { |
19 | errno = 0; |
19 | errno = 0; |
20 | switch (*name) { |
20 | switch (*name) { |
21 | case 'A': |
21 | case 'A': |
22 | if (strEQ(name, "ACT_COPYING")) return UUACT_COPYING; |
22 | if (strEQ(name, "ACT_COPYING")) return UUACT_COPYING; |
… | |
… | |
41 | if (strEQ(name, "MSG_MESSAGE")) return UUMSG_MESSAGE; |
41 | if (strEQ(name, "MSG_MESSAGE")) return UUMSG_MESSAGE; |
42 | if (strEQ(name, "MSG_NOTE")) return UUMSG_NOTE; |
42 | if (strEQ(name, "MSG_NOTE")) return UUMSG_NOTE; |
43 | if (strEQ(name, "MSG_PANIC")) return UUMSG_PANIC; |
43 | if (strEQ(name, "MSG_PANIC")) return UUMSG_PANIC; |
44 | if (strEQ(name, "MSG_WARNING")) return UUMSG_WARNING; |
44 | if (strEQ(name, "MSG_WARNING")) return UUMSG_WARNING; |
45 | case 'O': |
45 | case 'O': |
|
|
46 | if (strEQ(name, "OPT_VERSION")) return UUOPT_VERSION; |
|
|
47 | if (strEQ(name, "OPT_FAST")) return UUOPT_FAST; |
|
|
48 | if (strEQ(name, "OPT_DUMBNESS")) return UUOPT_DUMBNESS; |
46 | if (strEQ(name, "OPT_BRACKPOL")) return UUOPT_BRACKPOL; |
49 | if (strEQ(name, "OPT_BRACKPOL")) return UUOPT_BRACKPOL; |
47 | if (strEQ(name, "OPT_DEBUG")) return UUOPT_DEBUG; |
50 | if (strEQ(name, "OPT_VERBOSE")) return UUOPT_VERBOSE; |
48 | if (strEQ(name, "OPT_DESPERATE")) return UUOPT_DESPERATE; |
51 | if (strEQ(name, "OPT_DESPERATE")) return UUOPT_DESPERATE; |
49 | if (strEQ(name, "OPT_DUMBNESS")) return UUOPT_DUMBNESS; |
|
|
50 | if (strEQ(name, "OPT_ENCEXT")) return UUOPT_ENCEXT; |
|
|
51 | if (strEQ(name, "OPT_ERRNO")) return UUOPT_ERRNO; |
|
|
52 | if (strEQ(name, "OPT_FAST")) return UUOPT_FAST; |
|
|
53 | if (strEQ(name, "OPT_IGNMODE")) return UUOPT_IGNMODE; |
|
|
54 | if (strEQ(name, "OPT_IGNREPLY")) return UUOPT_IGNREPLY; |
52 | if (strEQ(name, "OPT_IGNREPLY")) return UUOPT_IGNREPLY; |
55 | if (strEQ(name, "OPT_OVERWRITE")) return UUOPT_OVERWRITE; |
53 | if (strEQ(name, "OPT_OVERWRITE")) return UUOPT_OVERWRITE; |
|
|
54 | if (strEQ(name, "OPT_SAVEPATH")) return UUOPT_SAVEPATH; |
|
|
55 | if (strEQ(name, "OPT_IGNMODE")) return UUOPT_IGNMODE; |
|
|
56 | if (strEQ(name, "OPT_DEBUG")) return UUOPT_DEBUG; |
|
|
57 | if (strEQ(name, "OPT_ERRNO")) return UUOPT_ERRNO; |
|
|
58 | if (strEQ(name, "OPT_PROGRESS")) return UUOPT_PROGRESS; |
|
|
59 | if (strEQ(name, "OPT_USETEXT")) return UUOPT_USETEXT; |
56 | if (strEQ(name, "OPT_PREAMB")) return UUOPT_PREAMB; |
60 | if (strEQ(name, "OPT_PREAMB")) return UUOPT_PREAMB; |
57 | if (strEQ(name, "OPT_PROGRESS")) return UUOPT_PROGRESS; |
|
|
58 | if (strEQ(name, "OPT_SAVEPATH")) return UUOPT_SAVEPATH; |
|
|
59 | if (strEQ(name, "OPT_TINYB64")) return UUOPT_TINYB64; |
61 | if (strEQ(name, "OPT_TINYB64")) return UUOPT_TINYB64; |
60 | if (strEQ(name, "OPT_USETEXT")) return UUOPT_USETEXT; |
62 | if (strEQ(name, "OPT_ENCEXT")) return UUOPT_ENCEXT; |
61 | if (strEQ(name, "OPT_VERBOSE")) return UUOPT_VERBOSE; |
|
|
62 | if (strEQ(name, "OPT_VERSION")) return UUOPT_VERSION; |
|
|
63 | if (strEQ(name, "OPT_REMOVE")) return UUOPT_REMOVE; |
63 | if (strEQ(name, "OPT_REMOVE")) return UUOPT_REMOVE; |
64 | if (strEQ(name, "OPT_MOREMIME")) return UUOPT_MOREMIME; |
64 | if (strEQ(name, "OPT_MOREMIME")) return UUOPT_MOREMIME; |
|
|
65 | if (strEQ(name, "OPT_DOTDOT")) return UUOPT_DOTDOT; |
65 | case 'R': |
66 | case 'R': |
66 | if (strEQ(name, "RET_CANCEL")) return UURET_CANCEL; |
67 | if (strEQ(name, "RET_CANCEL")) return UURET_CANCEL; |
67 | if (strEQ(name, "RET_CONT")) return UURET_CONT; |
68 | if (strEQ(name, "RET_CONT")) return UURET_CONT; |
68 | if (strEQ(name, "RET_EXISTS")) return UURET_EXISTS; |
69 | if (strEQ(name, "RET_EXISTS")) return UURET_EXISTS; |
69 | if (strEQ(name, "RET_ILLVAL")) return UURET_ILLVAL; |
70 | if (strEQ(name, "RET_ILLVAL")) return UURET_ILLVAL; |
… | |
… | |
72 | if (strEQ(name, "RET_NOEND")) return UURET_NOEND; |
73 | if (strEQ(name, "RET_NOEND")) return UURET_NOEND; |
73 | if (strEQ(name, "RET_NOMEM")) return UURET_NOMEM; |
74 | if (strEQ(name, "RET_NOMEM")) return UURET_NOMEM; |
74 | if (strEQ(name, "RET_OK")) return UURET_OK; |
75 | if (strEQ(name, "RET_OK")) return UURET_OK; |
75 | if (strEQ(name, "RET_UNSUP")) return UURET_UNSUP; |
76 | if (strEQ(name, "RET_UNSUP")) return UURET_UNSUP; |
76 | case 'B': |
77 | case 'B': |
77 | if (strEQ(name, "B64ENCODED")) return B64ENCODED; |
78 | if (strEQ(name, "B64_ENCODED")) return B64ENCODED; |
78 | if (strEQ(name, "BH_ENCODED")) return BH_ENCODED; |
79 | if (strEQ(name, "BH_ENCODED")) return BH_ENCODED; |
79 | case 'P': |
80 | case 'P': |
80 | if (strEQ(name, "PT_ENCODED")) return PT_ENCODED; |
81 | if (strEQ(name, "PT_ENCODED")) return PT_ENCODED; |
81 | case 'Q': |
82 | case 'Q': |
82 | if (strEQ(name, "QP_ENCODED")) return QP_ENCODED; |
83 | if (strEQ(name, "QP_ENCODED")) return QP_ENCODED; |
… | |
… | |
89 | } |
90 | } |
90 | errno = EINVAL; |
91 | errno = EINVAL; |
91 | return 0; |
92 | return 0; |
92 | } |
93 | } |
93 | |
94 | |
|
|
95 | static void |
94 | static void uu_msg_callback (void *cb, char *msg, int level) |
96 | uu_msg_callback (void *cb, char *msg, int level) |
95 | { |
97 | { |
96 | dSP; |
98 | dSP; |
97 | |
99 | |
98 | ENTER; SAVETMPS; PUSHMARK(SP); EXTEND(SP,2); |
100 | ENTER; SAVETMPS; PUSHMARK(SP); EXTEND(SP,2); |
99 | |
101 | |
… | |
… | |
102 | |
104 | |
103 | PUTBACK; (void) perl_call_sv ((SV *)cb, G_VOID|G_DISCARD); SPAGAIN; |
105 | PUTBACK; (void) perl_call_sv ((SV *)cb, G_VOID|G_DISCARD); SPAGAIN; |
104 | PUTBACK; FREETMPS; LEAVE; |
106 | PUTBACK; FREETMPS; LEAVE; |
105 | } |
107 | } |
106 | |
108 | |
|
|
109 | static int |
107 | static int uu_busy_callback (void *cb, uuprogress *uup) |
110 | uu_busy_callback (void *cb, uuprogress *uup) |
108 | { |
111 | { |
109 | dSP; |
112 | dSP; |
110 | int count; |
113 | int count; |
111 | int retval; |
114 | int retval; |
112 | |
115 | |
… | |
… | |
129 | PUTBACK; FREETMPS; LEAVE; |
132 | PUTBACK; FREETMPS; LEAVE; |
130 | |
133 | |
131 | return retval; |
134 | return retval; |
132 | } |
135 | } |
133 | |
136 | |
|
|
137 | static char * |
134 | static char *uu_fnamefilter_callback (void *cb, char *fname) |
138 | uu_fnamefilter_callback (void *cb, char *fname) |
135 | { |
139 | { |
136 | dSP; |
140 | dSP; |
137 | int count; |
141 | int count; |
138 | static char *str; |
142 | static char *str; |
139 | |
143 | |
… | |
… | |
151 | PUTBACK; FREETMPS; LEAVE; |
155 | PUTBACK; FREETMPS; LEAVE; |
152 | |
156 | |
153 | return str; |
157 | return str; |
154 | } |
158 | } |
155 | |
159 | |
|
|
160 | static int |
156 | static int uu_file_callback (void *cb, char *id, char *fname, int retrieve) |
161 | uu_file_callback (void *cb, char *id, char *fname, int retrieve) |
157 | { |
162 | { |
158 | dSP; |
163 | dSP; |
159 | int count; |
164 | int count; |
160 | int retval; |
165 | int retval; |
161 | SV *xfname = newSVpv ("", 0); |
166 | SV *xfname = newSVpv ("", 0); |
… | |
… | |
179 | PUTBACK; FREETMPS; LEAVE; |
184 | PUTBACK; FREETMPS; LEAVE; |
180 | |
185 | |
181 | return retval; |
186 | return retval; |
182 | } |
187 | } |
183 | |
188 | |
|
|
189 | static char * |
|
|
190 | uu_filename_callback (void *cb, char *subject, char *filename) |
|
|
191 | { |
|
|
192 | dSP; |
|
|
193 | int count; |
|
|
194 | SV *retval; |
|
|
195 | STRLEN dc; |
|
|
196 | |
|
|
197 | ENTER; SAVETMPS; PUSHMARK(SP); EXTEND(SP,3); |
|
|
198 | |
|
|
199 | PUSHs(sv_2mortal(newSVpv(subject, 0))); |
|
|
200 | PUSHs(filename ? sv_2mortal(newSVpv(filename, 0)) : &PL_sv_undef); |
|
|
201 | |
|
|
202 | PUTBACK; count = perl_call_sv ((SV *)cb, G_ARRAY); SPAGAIN; |
|
|
203 | |
|
|
204 | if (count > 1) |
|
|
205 | croak ("filenamecallback perl callback returned more than one argument"); |
|
|
206 | |
|
|
207 | if (count) |
|
|
208 | { |
|
|
209 | _FP_free (filename); |
|
|
210 | |
|
|
211 | retval = POPs; |
|
|
212 | |
|
|
213 | if (SvOK (retval)) |
|
|
214 | { |
|
|
215 | STRLEN len; |
|
|
216 | char *fn = SvPV (retval, len); |
|
|
217 | |
|
|
218 | filename = malloc (len + 1); |
|
|
219 | |
|
|
220 | if (filename) |
|
|
221 | { |
|
|
222 | memcpy (filename, fn, len); |
|
|
223 | filename[len] = 0; |
|
|
224 | } |
|
|
225 | } |
|
|
226 | else |
|
|
227 | filename = 0; |
|
|
228 | } |
|
|
229 | |
|
|
230 | PUTBACK; FREETMPS; LEAVE; |
|
|
231 | |
|
|
232 | return filename; |
|
|
233 | } |
|
|
234 | |
184 | static SV *uu_msg_sv, *uu_busy_sv, *uu_file_sv, *uu_fnamefilter_sv; |
235 | static SV *uu_msg_sv, *uu_busy_sv, *uu_file_sv, *uu_fnamefilter_sv, *uu_filename_sv; |
185 | |
236 | |
186 | #define FUNC_CB(cb) (void *)(sv_setsv (cb ## _sv, func), cb ## _sv), func ? cb ## _callback : NULL |
237 | #define FUNC_CB(cb) (void *)(sv_setsv (cb ## _sv, func), cb ## _sv), func ? cb ## _callback : NULL |
187 | |
238 | |
|
|
239 | static int |
188 | static int uu_info_file(void *cb, char *info) |
240 | uu_info_file (void *cb, char *info) |
189 | { |
241 | { |
190 | dSP; |
242 | dSP; |
191 | int count; |
243 | int count; |
192 | int retval; |
244 | int retval; |
193 | |
245 | |
… | |
… | |
226 | MODULE = Convert::UUlib PACKAGE = Convert::UUlib PREFIX = UU |
278 | MODULE = Convert::UUlib PACKAGE = Convert::UUlib PREFIX = UU |
227 | |
279 | |
228 | PROTOTYPES: ENABLE |
280 | PROTOTYPES: ENABLE |
229 | |
281 | |
230 | int |
282 | int |
231 | constant(name) |
283 | constant (name) |
232 | char * name |
284 | char * name |
233 | |
285 | |
234 | |
286 | |
235 | void |
287 | void |
236 | UUInitialize() |
288 | UUInitialize () |
237 | CODE: |
289 | CODE: |
238 | if (!uu_initialized) |
290 | if (!uu_initialized) |
239 | { |
291 | { |
240 | int retval; |
292 | int retval; |
241 | |
293 | |
… | |
… | |
244 | |
296 | |
245 | uu_initialized = 1; |
297 | uu_initialized = 1; |
246 | } |
298 | } |
247 | |
299 | |
248 | void |
300 | void |
249 | UUCleanUp() |
301 | UUCleanUp () |
250 | CODE: |
302 | CODE: |
251 | if (uu_initialized) |
303 | if (uu_initialized) |
252 | UUCleanUp (); |
304 | UUCleanUp (); |
253 | |
305 | |
254 | uu_initialized = 0; |
306 | uu_initialized = 0; |
255 | |
307 | |
256 | SV * |
308 | SV * |
257 | UUGetOption(opt) |
309 | UUGetOption (opt) |
258 | int opt |
310 | int opt |
259 | CODE: |
311 | CODE: |
260 | { |
312 | { |
261 | if (opt == UUOPT_PROGRESS) |
313 | if (opt == UUOPT_PROGRESS) |
262 | croak ("GetOption(UUOPT_PROGRESS) is not yet implemented"); |
314 | croak ("GetOption(UUOPT_PROGRESS) is not yet implemented"); |
… | |
… | |
274 | } |
326 | } |
275 | OUTPUT: |
327 | OUTPUT: |
276 | RETVAL |
328 | RETVAL |
277 | |
329 | |
278 | int |
330 | int |
279 | UUSetOption(opt,val) |
331 | UUSetOption (opt, val) |
280 | int opt |
332 | int opt |
281 | SV * val |
333 | SV * val |
282 | CODE: |
334 | CODE: |
283 | { |
335 | { |
284 | STRLEN dc; |
336 | STRLEN dc; |
… | |
… | |
290 | } |
342 | } |
291 | OUTPUT: |
343 | OUTPUT: |
292 | RETVAL |
344 | RETVAL |
293 | |
345 | |
294 | char * |
346 | char * |
295 | UUstrerror(errcode) |
347 | UUstrerror (errcode) |
296 | int errcode |
348 | int errcode |
297 | |
349 | |
298 | void |
350 | void |
299 | UUSetMsgCallback(func=0) |
351 | UUSetMsgCallback (func = 0) |
300 | SV * func |
352 | SV * func |
301 | CODE: |
353 | CODE: |
302 | UUSetMsgCallback (FUNC_CB(uu_msg)); |
354 | UUSetMsgCallback (FUNC_CB(uu_msg)); |
303 | |
355 | |
304 | void |
356 | void |
305 | UUSetBusyCallback(func=0,msecs=1000) |
357 | UUSetBusyCallback (func = 0,msecs = 1000) |
306 | SV * func |
358 | SV * func |
307 | long msecs |
359 | long msecs |
308 | CODE: |
360 | CODE: |
309 | UUSetBusyCallback (FUNC_CB(uu_busy), msecs); |
361 | UUSetBusyCallback (FUNC_CB(uu_busy), msecs); |
310 | |
362 | |
311 | void |
363 | void |
312 | UUSetFileCallback(func=0) |
364 | UUSetFileCallback (func = 0) |
313 | SV * func |
365 | SV * func |
314 | CODE: |
366 | CODE: |
315 | UUSetFileCallback (FUNC_CB(uu_file)); |
367 | UUSetFileCallback (FUNC_CB(uu_file)); |
316 | |
368 | |
317 | void |
369 | void |
318 | UUSetFNameFilter(func=0) |
370 | UUSetFNameFilter (func = 0) |
319 | SV * func |
371 | SV * func |
320 | CODE: |
372 | CODE: |
321 | UUSetFNameFilter (FUNC_CB(uu_fnamefilter)); |
373 | UUSetFNameFilter (FUNC_CB(uu_fnamefilter)); |
322 | |
374 | |
|
|
375 | void |
|
|
376 | UUSetFileNameCallback (func = 0) |
|
|
377 | SV * func |
|
|
378 | CODE: |
|
|
379 | UUSetFileNameCallback (FUNC_CB(uu_filename)); |
|
|
380 | |
323 | char * |
381 | char * |
324 | UUFNameFilter(fname) |
382 | UUFNameFilter (fname) |
325 | char * fname |
383 | char * fname |
326 | |
384 | |
327 | void |
385 | void |
328 | UULoadFile(fname,id=0,delflag=0) |
386 | UULoadFile (fname, id = 0, delflag = 0, int partno = -1) |
329 | char * fname |
387 | char * fname |
330 | char * id |
388 | char * id |
331 | int delflag |
389 | int delflag |
332 | PPCODE: |
390 | PPCODE: |
333 | { |
391 | { |
334 | int count; |
392 | int count; |
335 | |
393 | |
336 | XPUSHs(sv_2mortal(newSViv(UULoadFile (fname, id, delflag, &count)))); |
394 | XPUSHs(sv_2mortal(newSViv(UULoadFile (fname, id, delflag, partno, &count)))); |
337 | if (GIMME_V == G_ARRAY) |
395 | if (GIMME_V == G_ARRAY) |
338 | XPUSHs(sv_2mortal(newSViv(count))); |
396 | XPUSHs(sv_2mortal(newSViv(count))); |
339 | } |
397 | } |
340 | |
398 | |
341 | int |
399 | int |
342 | UUSmerge(pass) |
400 | UUSmerge (pass) |
343 | int pass |
401 | int pass |
344 | |
402 | |
345 | int |
403 | int |
346 | UUQuickDecode(datain,dataout,boundary,maxpos) |
404 | UUQuickDecode(datain,dataout,boundary,maxpos) |
347 | FILE * datain |
405 | FILE * datain |
… | |
… | |
417 | char * from |
475 | char * from |
418 | char * subject |
476 | char * subject |
419 | int isemail |
477 | int isemail |
420 | |
478 | |
421 | uulist * |
479 | uulist * |
422 | UUGetFileListItem(num) |
480 | UUGetFileListItem (num) |
423 | int num |
481 | int num |
424 | |
482 | |
|
|
483 | MODULE = Convert::UUlib PACKAGE = Convert::UUlib::Item |
|
|
484 | |
425 | int |
485 | int |
426 | UURenameFile(item,newname) |
486 | rename (item, newname) |
427 | uulist *item |
487 | uulist *item |
428 | char * newname |
488 | char * newname |
429 | ALIAS: |
489 | CODE: |
430 | Convert::UUlib::Item::rename = 1 |
490 | RETVAL = UURenameFile (item, newname); |
|
|
491 | OUTPUT: |
|
|
492 | RETVAL |
431 | |
493 | |
432 | int |
494 | int |
433 | UUDecodeToTemp(item) |
495 | decode_temp (item) |
434 | uulist *item |
496 | uulist *item |
435 | ALIAS: |
497 | CODE: |
436 | Convert::UUlib::Item::decode_temp = 1 |
498 | RETVAL = UUDecodeToTemp (item); |
|
|
499 | OUTPUT: |
|
|
500 | RETVAL |
437 | |
501 | |
438 | int |
502 | int |
439 | UURemoveTemp(item) |
503 | remove_temp (item) |
440 | uulist *item |
504 | uulist *item |
441 | ALIAS: |
505 | CODE: |
442 | Convert::UUlib::Item::remove_temp = 1 |
506 | RETVAL = UURemoveTemp (item); |
|
|
507 | OUTPUT: |
|
|
508 | RETVAL |
443 | |
509 | |
444 | int |
510 | int |
445 | UUDecodeFile(item,target=0) |
511 | decode (item, target = 0) |
446 | uulist *item |
512 | uulist *item |
447 | char * target |
513 | char * target |
448 | ALIAS: |
514 | CODE: |
449 | Convert::UUlib::Item::decode = 1 |
515 | RETVAL = UUDecodeFile (item, target); |
|
|
516 | OUTPUT: |
|
|
517 | RETVAL |
450 | |
518 | |
451 | void |
519 | void |
452 | UUInfoFile(item,func) |
520 | info (item, func) |
453 | uulist *item |
521 | uulist *item |
454 | SV * func |
522 | SV * func |
455 | CODE: |
523 | CODE: |
456 | UUInfoFile(item,(void *)func,uu_info_file); |
524 | UUInfoFile (item,(void *)func, uu_info_file); |
457 | ALIAS: |
|
|
458 | Convert::UUlib::Item::info = 1 |
|
|
459 | |
|
|
460 | MODULE = Convert::UUlib PACKAGE = Convert::UUlib::Item |
|
|
461 | |
525 | |
462 | short |
526 | short |
463 | state(li) |
527 | state(li) |
464 | uulist *li |
528 | uulist *li |
465 | CODE: |
529 | CODE: |
… | |
… | |
493 | RETVAL = li->size; |
557 | RETVAL = li->size; |
494 | OUTPUT: |
558 | OUTPUT: |
495 | RETVAL |
559 | RETVAL |
496 | |
560 | |
497 | char * |
561 | char * |
498 | filename(li,newfilename=0) |
562 | filename (li, newfilename = 0) |
499 | uulist *li |
563 | uulist *li |
500 | char * newfilename |
564 | char * newfilename |
501 | CODE: |
565 | CODE: |
502 | if (newfilename) |
566 | if (newfilename) |
503 | { |
567 | { |
… | |
… | |
507 | RETVAL = li->filename; |
571 | RETVAL = li->filename; |
508 | OUTPUT: |
572 | OUTPUT: |
509 | RETVAL |
573 | RETVAL |
510 | |
574 | |
511 | char * |
575 | char * |
512 | subfname(li) |
576 | subfname (li) |
513 | uulist *li |
577 | uulist *li |
514 | CODE: |
578 | CODE: |
515 | RETVAL = li->subfname; |
579 | RETVAL = li->subfname; |
516 | OUTPUT: |
580 | OUTPUT: |
517 | RETVAL |
581 | RETVAL |
518 | |
582 | |
519 | char * |
583 | char * |
520 | mimeid(li) |
584 | mimeid (li) |
521 | uulist *li |
585 | uulist *li |
522 | CODE: |
586 | CODE: |
523 | RETVAL = li->mimeid; |
587 | RETVAL = li->mimeid; |
524 | OUTPUT: |
588 | OUTPUT: |
525 | RETVAL |
589 | RETVAL |
526 | |
590 | |
527 | char * |
591 | char * |
528 | mimetype(li) |
592 | mimetype (li) |
529 | uulist *li |
593 | uulist *li |
530 | CODE: |
594 | CODE: |
531 | RETVAL = li->mimetype; |
595 | RETVAL = li->mimetype; |
532 | OUTPUT: |
596 | OUTPUT: |
533 | RETVAL |
597 | RETVAL |
534 | |
598 | |
535 | char * |
599 | char * |
536 | binfile(li) |
600 | binfile (li) |
537 | uulist *li |
601 | uulist *li |
538 | CODE: |
602 | CODE: |
539 | RETVAL = li->binfile; |
603 | RETVAL = li->binfile; |
540 | OUTPUT: |
604 | OUTPUT: |
541 | RETVAL |
605 | RETVAL |
542 | |
606 | |
543 | # functions accessing internal data(!) |
607 | # methods accessing internal data(!) |
544 | |
608 | |
545 | void |
609 | void |
546 | parts(li) |
610 | parts (li) |
547 | uulist *li |
611 | uulist *li |
548 | PPCODE: |
612 | PPCODE: |
549 | { |
613 | { |
550 | struct _uufile *p = li->thisfile; |
614 | struct _uufile *p = li->thisfile; |
551 | |
615 | |
… | |
… | |
575 | p = p->NEXT; |
639 | p = p->NEXT; |
576 | } |
640 | } |
577 | } |
641 | } |
578 | |
642 | |
579 | BOOT: |
643 | BOOT: |
580 | uu_msg_sv = newSVsv(&PL_sv_undef); |
644 | uu_msg_sv = newSVsv(&PL_sv_undef); |
581 | uu_busy_sv = newSVsv(&PL_sv_undef); |
645 | uu_busy_sv = newSVsv(&PL_sv_undef); |
582 | uu_file_sv = newSVsv(&PL_sv_undef); |
646 | uu_file_sv = newSVsv(&PL_sv_undef); |
583 | uu_fnamefilter_sv = newSVsv(&PL_sv_undef); |
647 | uu_fnamefilter_sv = newSVsv(&PL_sv_undef); |
|
|
648 | uu_filename_sv = newSVsv(&PL_sv_undef); |
584 | |
649 | |