… | |
… | |
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; |
|
|
66 | if (strEQ(name, "OPT_RBUF")) return UUOPT_RBUF; |
|
|
67 | if (strEQ(name, "OPT_WBUF")) return UUOPT_WBUF; |
65 | case 'R': |
68 | case 'R': |
66 | if (strEQ(name, "RET_CANCEL")) return UURET_CANCEL; |
69 | if (strEQ(name, "RET_CANCEL")) return UURET_CANCEL; |
67 | if (strEQ(name, "RET_CONT")) return UURET_CONT; |
70 | if (strEQ(name, "RET_CONT")) return UURET_CONT; |
68 | if (strEQ(name, "RET_EXISTS")) return UURET_EXISTS; |
71 | if (strEQ(name, "RET_EXISTS")) return UURET_EXISTS; |
69 | if (strEQ(name, "RET_ILLVAL")) return UURET_ILLVAL; |
72 | if (strEQ(name, "RET_ILLVAL")) return UURET_ILLVAL; |
… | |
… | |
72 | if (strEQ(name, "RET_NOEND")) return UURET_NOEND; |
75 | if (strEQ(name, "RET_NOEND")) return UURET_NOEND; |
73 | if (strEQ(name, "RET_NOMEM")) return UURET_NOMEM; |
76 | if (strEQ(name, "RET_NOMEM")) return UURET_NOMEM; |
74 | if (strEQ(name, "RET_OK")) return UURET_OK; |
77 | if (strEQ(name, "RET_OK")) return UURET_OK; |
75 | if (strEQ(name, "RET_UNSUP")) return UURET_UNSUP; |
78 | if (strEQ(name, "RET_UNSUP")) return UURET_UNSUP; |
76 | case 'B': |
79 | case 'B': |
77 | if (strEQ(name, "B64ENCODED")) return B64ENCODED; |
80 | if (strEQ(name, "B64_ENCODED")) return B64ENCODED; |
78 | if (strEQ(name, "BH_ENCODED")) return BH_ENCODED; |
81 | if (strEQ(name, "BH_ENCODED")) return BH_ENCODED; |
79 | case 'P': |
82 | case 'P': |
80 | if (strEQ(name, "PT_ENCODED")) return PT_ENCODED; |
83 | if (strEQ(name, "PT_ENCODED")) return PT_ENCODED; |
81 | case 'Q': |
84 | case 'Q': |
82 | if (strEQ(name, "QP_ENCODED")) return QP_ENCODED; |
85 | if (strEQ(name, "QP_ENCODED")) return QP_ENCODED; |
… | |
… | |
89 | } |
92 | } |
90 | errno = EINVAL; |
93 | errno = EINVAL; |
91 | return 0; |
94 | return 0; |
92 | } |
95 | } |
93 | |
96 | |
|
|
97 | static void |
94 | static void uu_msg_callback (void *cb, char *msg, int level) |
98 | uu_msg_callback (void *cb, char *msg, int level) |
95 | { |
99 | { |
96 | dSP; |
100 | dSP; |
97 | |
101 | |
98 | ENTER; SAVETMPS; PUSHMARK(SP); EXTEND(SP,2); |
102 | ENTER; SAVETMPS; PUSHMARK (SP); EXTEND (SP, 2); |
99 | |
103 | |
100 | PUSHs(sv_2mortal(newSVpv(msg,0))); |
104 | PUSHs (sv_2mortal (newSVpv (msg, 0))); |
101 | PUSHs(sv_2mortal(newSViv(level))); |
105 | PUSHs (sv_2mortal (newSViv (level))); |
102 | |
106 | |
103 | PUTBACK; (void) perl_call_sv ((SV *)cb, G_VOID|G_DISCARD); SPAGAIN; |
107 | PUTBACK; (void) perl_call_sv ((SV *)cb, G_VOID|G_DISCARD); SPAGAIN; |
104 | PUTBACK; FREETMPS; LEAVE; |
108 | PUTBACK; FREETMPS; LEAVE; |
105 | } |
109 | } |
106 | |
110 | |
|
|
111 | static int |
107 | static int uu_busy_callback (void *cb, uuprogress *uup) |
112 | uu_busy_callback (void *cb, uuprogress *uup) |
108 | { |
113 | { |
109 | dSP; |
114 | dSP; |
110 | int count; |
115 | int count; |
111 | int retval; |
116 | int retval; |
112 | |
117 | |
113 | ENTER; SAVETMPS; PUSHMARK(SP); EXTEND(SP,6); |
118 | ENTER; SAVETMPS; PUSHMARK (SP); EXTEND (SP, 6); |
114 | |
119 | |
115 | PUSHs(sv_2mortal(newSViv(uup->action))); |
120 | PUSHs (sv_2mortal (newSViv (uup->action))); |
116 | PUSHs(sv_2mortal(newSVpv(uup->curfile,0))); |
121 | PUSHs (sv_2mortal (newSVpv (uup->curfile, 0))); |
117 | PUSHs(sv_2mortal(newSViv(uup->partno))); |
122 | PUSHs (sv_2mortal (newSViv (uup->partno))); |
118 | PUSHs(sv_2mortal(newSViv(uup->numparts))); |
123 | PUSHs (sv_2mortal (newSViv (uup->numparts))); |
119 | PUSHs(sv_2mortal(newSViv(uup->fsize))); |
124 | PUSHs (sv_2mortal (newSViv (uup->fsize))); |
120 | PUSHs(sv_2mortal(newSViv(uup->percent))); |
125 | PUSHs (sv_2mortal (newSViv (uup->percent))); |
121 | |
126 | |
122 | PUTBACK; count = perl_call_sv ((SV *)cb, G_SCALAR); SPAGAIN; |
127 | PUTBACK; count = perl_call_sv ((SV *)cb, G_SCALAR); SPAGAIN; |
123 | |
128 | |
124 | if (count != 1) |
129 | if (count != 1) |
125 | croak ("busycallback perl callback returned more than one argument"); |
130 | croak ("busycallback perl callback returned more than one argument"); |
… | |
… | |
129 | PUTBACK; FREETMPS; LEAVE; |
134 | PUTBACK; FREETMPS; LEAVE; |
130 | |
135 | |
131 | return retval; |
136 | return retval; |
132 | } |
137 | } |
133 | |
138 | |
|
|
139 | static char * |
134 | static char *uu_fnamefilter_callback (void *cb, char *fname) |
140 | uu_fnamefilter_callback (void *cb, char *fname) |
135 | { |
141 | { |
136 | dSP; |
142 | dSP; |
137 | int count; |
143 | int count; |
138 | static char *str; |
144 | static char *str; |
139 | |
145 | |
140 | ENTER; SAVETMPS; PUSHMARK(SP); EXTEND(SP,1); |
146 | ENTER; SAVETMPS; PUSHMARK (SP); EXTEND (SP, 1); |
141 | |
147 | |
142 | PUSHs(sv_2mortal(newSVpv(fname,0))); |
148 | PUSHs (sv_2mortal (newSVpv (fname, 0))); |
143 | |
149 | |
144 | PUTBACK; count = perl_call_sv ((SV *)cb, G_SCALAR); SPAGAIN; |
150 | PUTBACK; count = perl_call_sv ((SV *)cb, G_SCALAR); SPAGAIN; |
145 | |
151 | |
146 | if (count != 1) |
152 | if (count != 1) |
147 | croak ("fnamefilter perl callback returned more than one argument"); |
153 | croak ("fnamefilter perl callback returned more than one argument"); |
… | |
… | |
151 | PUTBACK; FREETMPS; LEAVE; |
157 | PUTBACK; FREETMPS; LEAVE; |
152 | |
158 | |
153 | return str; |
159 | return str; |
154 | } |
160 | } |
155 | |
161 | |
|
|
162 | static int |
156 | static int uu_file_callback (void *cb, char *id, char *fname, int retrieve) |
163 | uu_file_callback (void *cb, char *id, char *fname, int retrieve) |
157 | { |
164 | { |
158 | dSP; |
165 | dSP; |
159 | int count; |
166 | int count; |
160 | int retval; |
167 | int retval; |
161 | SV *xfname = newSVpv ("", 0); |
168 | SV *xfname = newSVpv ("", 0); |
162 | STRLEN dc; |
169 | STRLEN dc; |
163 | |
170 | |
164 | ENTER; SAVETMPS; PUSHMARK(SP); EXTEND(SP,3); |
171 | ENTER; SAVETMPS; PUSHMARK (SP); EXTEND (SP, 3); |
165 | |
172 | |
166 | PUSHs(sv_2mortal(newSVpv(id,0))); |
173 | PUSHs (sv_2mortal (newSVpv (id, 0))); |
167 | PUSHs(sv_2mortal(xfname)); |
174 | PUSHs (sv_2mortal (xfname)); |
168 | PUSHs(sv_2mortal(newSViv(retrieve))); |
175 | PUSHs (sv_2mortal (newSViv (retrieve))); |
169 | |
176 | |
170 | PUTBACK; count = perl_call_sv ((SV *)cb, G_SCALAR); SPAGAIN; |
177 | PUTBACK; count = perl_call_sv ((SV *)cb, G_SCALAR); SPAGAIN; |
171 | |
178 | |
172 | if (count != 1) |
179 | if (count != 1) |
173 | croak ("filecallback perl callback returned more than one argument"); |
180 | croak ("filecallback perl callback returned more than one argument"); |
… | |
… | |
179 | PUTBACK; FREETMPS; LEAVE; |
186 | PUTBACK; FREETMPS; LEAVE; |
180 | |
187 | |
181 | return retval; |
188 | return retval; |
182 | } |
189 | } |
183 | |
190 | |
|
|
191 | static char * |
184 | static char *uu_filename_callback (void *cb, char *subject, char *filename) |
192 | uu_filename_callback (void *cb, char *subject, char *filename) |
185 | { |
193 | { |
186 | dSP; |
194 | dSP; |
187 | int count; |
195 | int count; |
188 | SV *retval; |
196 | SV *retval; |
189 | STRLEN dc; |
197 | STRLEN dc; |
… | |
… | |
228 | |
236 | |
229 | static SV *uu_msg_sv, *uu_busy_sv, *uu_file_sv, *uu_fnamefilter_sv, *uu_filename_sv; |
237 | static SV *uu_msg_sv, *uu_busy_sv, *uu_file_sv, *uu_fnamefilter_sv, *uu_filename_sv; |
230 | |
238 | |
231 | #define FUNC_CB(cb) (void *)(sv_setsv (cb ## _sv, func), cb ## _sv), func ? cb ## _callback : NULL |
239 | #define FUNC_CB(cb) (void *)(sv_setsv (cb ## _sv, func), cb ## _sv), func ? cb ## _callback : NULL |
232 | |
240 | |
|
|
241 | static int |
233 | static int uu_info_file(void *cb, char *info) |
242 | uu_info_file (void *cb, char *info) |
234 | { |
243 | { |
235 | dSP; |
244 | dSP; |
236 | int count; |
245 | int count; |
237 | int retval; |
246 | int retval; |
238 | |
247 | |
… | |
… | |
271 | MODULE = Convert::UUlib PACKAGE = Convert::UUlib PREFIX = UU |
280 | MODULE = Convert::UUlib PACKAGE = Convert::UUlib PREFIX = UU |
272 | |
281 | |
273 | PROTOTYPES: ENABLE |
282 | PROTOTYPES: ENABLE |
274 | |
283 | |
275 | int |
284 | int |
276 | constant(name) |
285 | constant (name) |
277 | char * name |
286 | char * name |
278 | |
287 | |
279 | |
288 | |
280 | void |
289 | void |
281 | UUInitialize() |
290 | UUInitialize () |
282 | CODE: |
291 | CODE: |
283 | if (!uu_initialized) |
292 | if (!uu_initialized) |
284 | { |
293 | { |
285 | int retval; |
294 | int retval; |
286 | |
295 | |
… | |
… | |
289 | |
298 | |
290 | uu_initialized = 1; |
299 | uu_initialized = 1; |
291 | } |
300 | } |
292 | |
301 | |
293 | void |
302 | void |
294 | UUCleanUp() |
303 | UUCleanUp () |
295 | CODE: |
304 | CODE: |
296 | if (uu_initialized) |
305 | if (uu_initialized) |
297 | UUCleanUp (); |
306 | UUCleanUp (); |
298 | |
307 | |
299 | uu_initialized = 0; |
308 | uu_initialized = 0; |
300 | |
309 | |
301 | SV * |
310 | SV * |
302 | UUGetOption(opt) |
311 | UUGetOption (opt) |
303 | int opt |
312 | int opt |
304 | CODE: |
313 | CODE: |
305 | { |
314 | { |
306 | if (opt == UUOPT_PROGRESS) |
315 | if (opt == UUOPT_PROGRESS) |
307 | croak ("GetOption(UUOPT_PROGRESS) is not yet implemented"); |
316 | croak ("GetOption(UUOPT_PROGRESS) is not yet implemented"); |
… | |
… | |
319 | } |
328 | } |
320 | OUTPUT: |
329 | OUTPUT: |
321 | RETVAL |
330 | RETVAL |
322 | |
331 | |
323 | int |
332 | int |
324 | UUSetOption(opt,val) |
333 | UUSetOption (opt, val) |
325 | int opt |
334 | int opt |
326 | SV * val |
335 | SV * val |
327 | CODE: |
336 | CODE: |
328 | { |
337 | { |
329 | STRLEN dc; |
338 | STRLEN dc; |
… | |
… | |
335 | } |
344 | } |
336 | OUTPUT: |
345 | OUTPUT: |
337 | RETVAL |
346 | RETVAL |
338 | |
347 | |
339 | char * |
348 | char * |
340 | UUstrerror(errcode) |
349 | UUstrerror (errcode) |
341 | int errcode |
350 | int errcode |
342 | |
351 | |
343 | void |
352 | void |
344 | UUSetMsgCallback(func=0) |
353 | UUSetMsgCallback (func = 0) |
345 | SV * func |
354 | SV * func |
346 | CODE: |
355 | CODE: |
347 | UUSetMsgCallback (FUNC_CB(uu_msg)); |
356 | UUSetMsgCallback (FUNC_CB(uu_msg)); |
348 | |
357 | |
349 | void |
358 | void |
350 | UUSetBusyCallback(func=0,msecs=1000) |
359 | UUSetBusyCallback (func = 0,msecs = 1000) |
351 | SV * func |
360 | SV * func |
352 | long msecs |
361 | long msecs |
353 | CODE: |
362 | CODE: |
354 | UUSetBusyCallback (FUNC_CB(uu_busy), msecs); |
363 | UUSetBusyCallback (FUNC_CB(uu_busy), msecs); |
355 | |
364 | |
356 | void |
365 | void |
357 | UUSetFileCallback(func=0) |
366 | UUSetFileCallback (func = 0) |
358 | SV * func |
367 | SV * func |
359 | CODE: |
368 | CODE: |
360 | UUSetFileCallback (FUNC_CB(uu_file)); |
369 | UUSetFileCallback (FUNC_CB(uu_file)); |
361 | |
370 | |
362 | void |
371 | void |
363 | UUSetFNameFilter(func=0) |
372 | UUSetFNameFilter (func = 0) |
364 | SV * func |
373 | SV * func |
365 | CODE: |
374 | CODE: |
366 | UUSetFNameFilter (FUNC_CB(uu_fnamefilter)); |
375 | UUSetFNameFilter (FUNC_CB(uu_fnamefilter)); |
367 | |
376 | |
368 | void |
377 | void |
369 | UUSetFileNameCallback(func=0) |
378 | UUSetFileNameCallback (func = 0) |
370 | SV * func |
379 | SV * func |
371 | CODE: |
380 | CODE: |
372 | UUSetFileNameCallback (FUNC_CB(uu_filename)); |
381 | UUSetFileNameCallback (FUNC_CB(uu_filename)); |
373 | |
382 | |
374 | char * |
383 | char * |
375 | UUFNameFilter(fname) |
384 | UUFNameFilter (fname) |
376 | char * fname |
385 | char * fname |
377 | |
386 | |
378 | void |
387 | void |
379 | UULoadFile(fname,id=0,delflag=0) |
388 | UULoadFile (fname, id = 0, delflag = 0, partno = -1) |
380 | char * fname |
389 | char * fname |
381 | char * id |
390 | char * id |
382 | int delflag |
391 | int delflag |
|
|
392 | int partno |
383 | PPCODE: |
393 | PPCODE: |
384 | { |
394 | { |
385 | int count; |
395 | int count; |
386 | |
396 | |
387 | XPUSHs(sv_2mortal(newSViv(UULoadFile (fname, id, delflag, &count)))); |
397 | XPUSHs (sv_2mortal (newSViv (UULoadFileWithPartNo (fname, id, delflag, partno, &count)))); |
388 | if (GIMME_V == G_ARRAY) |
398 | if (GIMME_V == G_ARRAY) |
389 | XPUSHs(sv_2mortal(newSViv(count))); |
399 | XPUSHs (sv_2mortal (newSViv (count))); |
390 | } |
400 | } |
391 | |
401 | |
392 | int |
402 | int |
393 | UUSmerge(pass) |
403 | UUSmerge (pass) |
394 | int pass |
404 | int pass |
395 | |
405 | |
396 | int |
406 | int |
397 | UUQuickDecode(datain,dataout,boundary,maxpos) |
407 | UUQuickDecode(datain,dataout,boundary,maxpos) |
398 | FILE * datain |
408 | FILE * datain |
… | |
… | |
468 | char * from |
478 | char * from |
469 | char * subject |
479 | char * subject |
470 | int isemail |
480 | int isemail |
471 | |
481 | |
472 | uulist * |
482 | uulist * |
473 | UUGetFileListItem(num) |
483 | UUGetFileListItem (num) |
474 | int num |
484 | int num |
475 | |
485 | |
|
|
486 | MODULE = Convert::UUlib PACKAGE = Convert::UUlib::Item |
|
|
487 | |
476 | int |
488 | int |
477 | UURenameFile(item,newname) |
489 | rename (item, newname) |
478 | uulist *item |
490 | uulist *item |
479 | char * newname |
491 | char * newname |
480 | ALIAS: |
492 | CODE: |
481 | Convert::UUlib::Item::rename = 1 |
493 | RETVAL = UURenameFile (item, newname); |
|
|
494 | OUTPUT: |
|
|
495 | RETVAL |
482 | |
496 | |
483 | int |
497 | int |
484 | UUDecodeToTemp(item) |
498 | decode_temp (item) |
485 | uulist *item |
499 | uulist *item |
486 | ALIAS: |
500 | CODE: |
487 | Convert::UUlib::Item::decode_temp = 1 |
501 | RETVAL = UUDecodeToTemp (item); |
|
|
502 | OUTPUT: |
|
|
503 | RETVAL |
488 | |
504 | |
489 | int |
505 | int |
490 | UURemoveTemp(item) |
506 | remove_temp (item) |
491 | uulist *item |
507 | uulist *item |
492 | ALIAS: |
508 | CODE: |
493 | Convert::UUlib::Item::remove_temp = 1 |
509 | RETVAL = UURemoveTemp (item); |
|
|
510 | OUTPUT: |
|
|
511 | RETVAL |
494 | |
512 | |
495 | int |
513 | int |
496 | UUDecodeFile(item,target=0) |
514 | decode (item, target = 0) |
497 | uulist *item |
515 | uulist *item |
498 | char * target |
516 | char * target |
499 | ALIAS: |
517 | CODE: |
500 | Convert::UUlib::Item::decode = 1 |
518 | RETVAL = UUDecodeFile (item, target); |
|
|
519 | OUTPUT: |
|
|
520 | RETVAL |
501 | |
521 | |
502 | void |
522 | void |
503 | UUInfoFile(item,func) |
523 | info (item, func) |
504 | uulist *item |
524 | uulist *item |
505 | SV * func |
525 | SV * func |
506 | CODE: |
526 | CODE: |
507 | UUInfoFile(item,(void *)func,uu_info_file); |
527 | UUInfoFile (item,(void *)func, uu_info_file); |
508 | ALIAS: |
|
|
509 | Convert::UUlib::Item::info = 1 |
|
|
510 | |
|
|
511 | MODULE = Convert::UUlib PACKAGE = Convert::UUlib::Item |
|
|
512 | |
528 | |
513 | short |
529 | short |
514 | state(li) |
530 | state(li) |
515 | uulist *li |
531 | uulist *li |
516 | CODE: |
532 | CODE: |
… | |
… | |
544 | RETVAL = li->size; |
560 | RETVAL = li->size; |
545 | OUTPUT: |
561 | OUTPUT: |
546 | RETVAL |
562 | RETVAL |
547 | |
563 | |
548 | char * |
564 | char * |
549 | filename(li,newfilename=0) |
565 | filename (li, newfilename = 0) |
550 | uulist *li |
566 | uulist *li |
551 | char * newfilename |
567 | char * newfilename |
552 | CODE: |
568 | CODE: |
553 | if (newfilename) |
569 | if (newfilename) |
554 | { |
570 | { |
… | |
… | |
558 | RETVAL = li->filename; |
574 | RETVAL = li->filename; |
559 | OUTPUT: |
575 | OUTPUT: |
560 | RETVAL |
576 | RETVAL |
561 | |
577 | |
562 | char * |
578 | char * |
563 | subfname(li) |
579 | subfname (li) |
564 | uulist *li |
580 | uulist *li |
565 | CODE: |
581 | CODE: |
566 | RETVAL = li->subfname; |
582 | RETVAL = li->subfname; |
567 | OUTPUT: |
583 | OUTPUT: |
568 | RETVAL |
584 | RETVAL |
569 | |
585 | |
570 | char * |
586 | char * |
571 | mimeid(li) |
587 | mimeid (li) |
572 | uulist *li |
588 | uulist *li |
573 | CODE: |
589 | CODE: |
574 | RETVAL = li->mimeid; |
590 | RETVAL = li->mimeid; |
575 | OUTPUT: |
591 | OUTPUT: |
576 | RETVAL |
592 | RETVAL |
577 | |
593 | |
578 | char * |
594 | char * |
579 | mimetype(li) |
595 | mimetype (li) |
580 | uulist *li |
596 | uulist *li |
581 | CODE: |
597 | CODE: |
582 | RETVAL = li->mimetype; |
598 | RETVAL = li->mimetype; |
583 | OUTPUT: |
599 | OUTPUT: |
584 | RETVAL |
600 | RETVAL |
585 | |
601 | |
586 | char * |
602 | char * |
587 | binfile(li) |
603 | binfile (li) |
588 | uulist *li |
604 | uulist *li |
589 | CODE: |
605 | CODE: |
590 | RETVAL = li->binfile; |
606 | RETVAL = li->binfile; |
591 | OUTPUT: |
607 | OUTPUT: |
592 | RETVAL |
608 | RETVAL |
593 | |
609 | |
594 | # functions accessing internal data(!) |
610 | # methods accessing internal data(!) |
595 | |
611 | |
596 | void |
612 | void |
597 | parts(li) |
613 | parts (li) |
598 | uulist *li |
614 | uulist *li |
599 | PPCODE: |
615 | PPCODE: |
600 | { |
616 | { |
601 | struct _uufile *p = li->thisfile; |
617 | struct _uufile *p = li->thisfile; |
602 | |
618 | |