ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/UUlib.xs
(Generate patch)

Comparing Convert-UUlib/UUlib.xs (file contents):
Revision 1.1 by root, Mon Jun 11 19:48:55 2001 UTC vs.
Revision 1.12 by root, Mon May 2 19:58:40 2005 UTC

1#include "EXTERN.h" 1#include "EXTERN.h"
2#include "perl.h" 2#include "perl.h"
3#include "XSUB.h" 3#include "XSUB.h"
4 4
5#include "uulib/fptools.h" 5#include "uulib/fptools.h"
6#include "uulib/uulib.h" 6#include "uulib/uudeview.h"
7#include "uulib/uuint.h" 7#include "uulib/uuint.h"
8 8
9static int 9static int
10not_here(char *s) 10not_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
16static int 16static int
17constant(char *name) 17constant (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;
63 if (strEQ(name, "OPT_REMOVE")) return UUOPT_REMOVE;
64 if (strEQ(name, "OPT_MOREMIME")) return UUOPT_MOREMIME;
65 if (strEQ(name, "OPT_DOTDOT")) return UUOPT_DOTDOT;
61 if (strEQ(name, "OPT_VERBOSE")) return UUOPT_VERBOSE; 66 if (strEQ(name, "OPT_RBUF")) return UUOPT_RBUF;
62 if (strEQ(name, "OPT_VERSION")) return UUOPT_VERSION; 67 if (strEQ(name, "OPT_WBUF")) return UUOPT_WBUF;
63 case 'R': 68 case 'R':
64 if (strEQ(name, "RET_CANCEL")) return UURET_CANCEL; 69 if (strEQ(name, "RET_CANCEL")) return UURET_CANCEL;
65 if (strEQ(name, "RET_CONT")) return UURET_CONT; 70 if (strEQ(name, "RET_CONT")) return UURET_CONT;
66 if (strEQ(name, "RET_EXISTS")) return UURET_EXISTS; 71 if (strEQ(name, "RET_EXISTS")) return UURET_EXISTS;
67 if (strEQ(name, "RET_ILLVAL")) return UURET_ILLVAL; 72 if (strEQ(name, "RET_ILLVAL")) return UURET_ILLVAL;
70 if (strEQ(name, "RET_NOEND")) return UURET_NOEND; 75 if (strEQ(name, "RET_NOEND")) return UURET_NOEND;
71 if (strEQ(name, "RET_NOMEM")) return UURET_NOMEM; 76 if (strEQ(name, "RET_NOMEM")) return UURET_NOMEM;
72 if (strEQ(name, "RET_OK")) return UURET_OK; 77 if (strEQ(name, "RET_OK")) return UURET_OK;
73 if (strEQ(name, "RET_UNSUP")) return UURET_UNSUP; 78 if (strEQ(name, "RET_UNSUP")) return UURET_UNSUP;
74 case 'B': 79 case 'B':
75 if (strEQ(name, "B64ENCODED")) return B64ENCODED; 80 if (strEQ(name, "B64_ENCODED")) return B64ENCODED;
76 if (strEQ(name, "BH_ENCODED")) return BH_ENCODED; 81 if (strEQ(name, "BH_ENCODED")) return BH_ENCODED;
77 case 'P': 82 case 'P':
78 if (strEQ(name, "PT_ENCODED")) return PT_ENCODED; 83 if (strEQ(name, "PT_ENCODED")) return PT_ENCODED;
79 case 'Q': 84 case 'Q':
80 if (strEQ(name, "QP_ENCODED")) return QP_ENCODED; 85 if (strEQ(name, "QP_ENCODED")) return QP_ENCODED;
81 case 'U': 86 case 'U':
82 if (strEQ(name, "UU_ENCODED")) return UU_ENCODED; 87 if (strEQ(name, "UU_ENCODED")) return UU_ENCODED;
83 case 'X': 88 case 'X':
84 if (strEQ(name, "XX_ENCODED")) return XX_ENCODED; 89 if (strEQ(name, "XX_ENCODED")) return XX_ENCODED;
90 case 'Y':
91 if (strEQ(name, "YENC_ENCODED")) return YENC_ENCODED;
85 } 92 }
86 errno = EINVAL; 93 errno = EINVAL;
87 return 0; 94 return 0;
88} 95}
89 96
97static void
90static void uu_msg_callback (void *cb, char *msg, int level) 98uu_msg_callback (void *cb, char *msg, int level)
91{ 99{
92 dSP; 100 dSP;
93 101
94 ENTER; SAVETMPS; PUSHMARK(SP); EXTEND(SP,2); 102 ENTER; SAVETMPS; PUSHMARK (SP); EXTEND (SP, 2);
95 103
96 PUSHs(sv_2mortal(newSVpv(msg,0))); 104 PUSHs (sv_2mortal (newSVpv (msg, 0)));
97 PUSHs(sv_2mortal(newSViv(level))); 105 PUSHs (sv_2mortal (newSViv (level)));
98 106
99 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;
100 PUTBACK; FREETMPS; LEAVE; 108 PUTBACK; FREETMPS; LEAVE;
101} 109}
102 110
111static int
103static int uu_busy_callback (void *cb, uuprogress *uup) 112uu_busy_callback (void *cb, uuprogress *uup)
104{ 113{
105 dSP; 114 dSP;
106 int count; 115 int count;
107 int retval; 116 int retval;
108 117
109 ENTER; SAVETMPS; PUSHMARK(SP); EXTEND(SP,6); 118 ENTER; SAVETMPS; PUSHMARK (SP); EXTEND (SP, 6);
110 119
111 PUSHs(sv_2mortal(newSViv(uup->action))); 120 PUSHs (sv_2mortal (newSViv (uup->action)));
112 PUSHs(sv_2mortal(newSVpv(uup->curfile,0))); 121 PUSHs (sv_2mortal (newSVpv (uup->curfile, 0)));
113 PUSHs(sv_2mortal(newSViv(uup->partno))); 122 PUSHs (sv_2mortal (newSViv (uup->partno)));
114 PUSHs(sv_2mortal(newSViv(uup->numparts))); 123 PUSHs (sv_2mortal (newSViv (uup->numparts)));
115 PUSHs(sv_2mortal(newSViv(uup->fsize))); 124 PUSHs (sv_2mortal (newSViv (uup->fsize)));
116 PUSHs(sv_2mortal(newSViv(uup->percent))); 125 PUSHs (sv_2mortal (newSViv (uup->percent)));
117 126
118 PUTBACK; count = perl_call_sv ((SV *)cb, G_SCALAR); SPAGAIN; 127 PUTBACK; count = perl_call_sv ((SV *)cb, G_SCALAR); SPAGAIN;
119 128
120 if (count != 1) 129 if (count != 1)
121 croak ("busycallback perl callback returned more than one argument"); 130 croak ("busycallback perl callback returned more than one argument");
125 PUTBACK; FREETMPS; LEAVE; 134 PUTBACK; FREETMPS; LEAVE;
126 135
127 return retval; 136 return retval;
128} 137}
129 138
139static char *
130static char *uu_fnamefilter_callback (void *cb, char *fname) 140uu_fnamefilter_callback (void *cb, char *fname)
131{ 141{
132 dSP; 142 dSP;
133 int count; 143 int count;
134 static char *str; 144 static char *str;
135 145
136 ENTER; SAVETMPS; PUSHMARK(SP); EXTEND(SP,1); 146 ENTER; SAVETMPS; PUSHMARK (SP); EXTEND (SP, 1);
137 147
138 PUSHs(sv_2mortal(newSVpv(fname,0))); 148 PUSHs (sv_2mortal (newSVpv (fname, 0)));
139 149
140 PUTBACK; count = perl_call_sv ((SV *)cb, G_SCALAR); SPAGAIN; 150 PUTBACK; count = perl_call_sv ((SV *)cb, G_SCALAR); SPAGAIN;
141 151
142 if (count != 1) 152 if (count != 1)
143 croak ("fnamefilter perl callback returned more than one argument"); 153 croak ("fnamefilter perl callback returned more than one argument");
144 154
145 FP_free(str); str = FP_strdup (POPp); 155 _FP_free(str); str = _FP_strdup (POPp);
146 156
147 PUTBACK; FREETMPS; LEAVE; 157 PUTBACK; FREETMPS; LEAVE;
148 158
149 return str; 159 return str;
150} 160}
151 161
162static int
152static int uu_file_callback (void *cb, char *id, char *fname, int retrieve) 163uu_file_callback (void *cb, char *id, char *fname, int retrieve)
153{ 164{
154 dSP; 165 dSP;
155 int count; 166 int count;
156 int retval; 167 int retval;
157 SV *xfname = newSVpv ("", 0); 168 SV *xfname = newSVpv ("", 0);
158 STRLEN dc; 169 STRLEN dc;
159 170
160 ENTER; SAVETMPS; PUSHMARK(SP); EXTEND(SP,3); 171 ENTER; SAVETMPS; PUSHMARK (SP); EXTEND (SP, 3);
161 172
162 PUSHs(sv_2mortal(newSVpv(id,0))); 173 PUSHs (sv_2mortal (newSVpv (id, 0)));
163 PUSHs(sv_2mortal(xfname)); 174 PUSHs (sv_2mortal (xfname));
164 PUSHs(sv_2mortal(newSViv(retrieve))); 175 PUSHs (sv_2mortal (newSViv (retrieve)));
165 176
166 PUTBACK; count = perl_call_sv ((SV *)cb, G_SCALAR); SPAGAIN; 177 PUTBACK; count = perl_call_sv ((SV *)cb, G_SCALAR); SPAGAIN;
167 178
168 if (count != 1) 179 if (count != 1)
169 croak ("filecallback perl callback returned more than one argument"); 180 croak ("filecallback perl callback returned more than one argument");
175 PUTBACK; FREETMPS; LEAVE; 186 PUTBACK; FREETMPS; LEAVE;
176 187
177 return retval; 188 return retval;
178} 189}
179 190
191static char *
192uu_filename_callback (void *cb, char *subject, char *filename)
193{
194 dSP;
195 int count;
196 SV *retval;
197 STRLEN dc;
198
199 ENTER; SAVETMPS; PUSHMARK(SP); EXTEND(SP,3);
200
201 PUSHs(sv_2mortal(newSVpv(subject, 0)));
202 PUSHs(filename ? sv_2mortal(newSVpv(filename, 0)) : &PL_sv_undef);
203
204 PUTBACK; count = perl_call_sv ((SV *)cb, G_ARRAY); SPAGAIN;
205
206 if (count > 1)
207 croak ("filenamecallback perl callback returned more than one argument");
208
209 if (count)
210 {
211 _FP_free (filename);
212
213 retval = POPs;
214
215 if (SvOK (retval))
216 {
217 STRLEN len;
218 char *fn = SvPV (retval, len);
219
220 filename = malloc (len + 1);
221
222 if (filename)
223 {
224 memcpy (filename, fn, len);
225 filename[len] = 0;
226 }
227 }
228 else
229 filename = 0;
230 }
231
232 PUTBACK; FREETMPS; LEAVE;
233
234 return filename;
235}
236
180static SV *uu_msg_sv, *uu_busy_sv, *uu_file_sv, *uu_fnamefilter_sv; 237static SV *uu_msg_sv, *uu_busy_sv, *uu_file_sv, *uu_fnamefilter_sv, *uu_filename_sv;
181 238
182#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
183 240
241static int
184static int uu_info_file(void *cb, char *info) 242uu_info_file (void *cb, char *info)
185{ 243{
186 dSP; 244 dSP;
187 int count; 245 int count;
188 int retval; 246 int retval;
189 247
222MODULE = Convert::UUlib PACKAGE = Convert::UUlib PREFIX = UU 280MODULE = Convert::UUlib PACKAGE = Convert::UUlib PREFIX = UU
223 281
224PROTOTYPES: ENABLE 282PROTOTYPES: ENABLE
225 283
226int 284int
227constant(name) 285constant (name)
228 char * name 286 char * name
229 287
230 288
231void 289void
232UUInitialize() 290UUInitialize ()
233 CODE: 291 CODE:
234 if (!uu_initialized) 292 if (!uu_initialized)
235 { 293 {
236 int retval; 294 int retval;
237 295
240 298
241 uu_initialized = 1; 299 uu_initialized = 1;
242 } 300 }
243 301
244void 302void
245UUCleanUp() 303UUCleanUp ()
246 CODE: 304 CODE:
247 if (uu_initialized) 305 if (uu_initialized)
248 UUCleanUp (); 306 UUCleanUp ();
249 307
250 uu_initialized = 0; 308 uu_initialized = 0;
251 309
252SV * 310SV *
253UUGetOption(opt) 311UUGetOption (opt)
254 int opt 312 int opt
255 CODE: 313 CODE:
256 { 314 {
257 if (opt == UUOPT_PROGRESS) 315 if (opt == UUOPT_PROGRESS)
258 croak ("GetOption(UUOPT_PROGRESS) is not yet implemented"); 316 croak ("GetOption(UUOPT_PROGRESS) is not yet implemented");
270 } 328 }
271 OUTPUT: 329 OUTPUT:
272 RETVAL 330 RETVAL
273 331
274int 332int
275UUSetOption(opt,val) 333UUSetOption (opt, val)
276 int opt 334 int opt
277 SV * val 335 SV * val
278 CODE: 336 CODE:
279 { 337 {
280 STRLEN dc; 338 STRLEN dc;
286 } 344 }
287 OUTPUT: 345 OUTPUT:
288 RETVAL 346 RETVAL
289 347
290char * 348char *
291UUstrerror(errcode) 349UUstrerror (errcode)
292 int errcode 350 int errcode
293 351
294void 352void
295UUSetMsgCallback(func=0) 353UUSetMsgCallback (func = 0)
296 SV * func 354 SV * func
297 CODE: 355 CODE:
298 UUSetMsgCallback (FUNC_CB(uu_msg)); 356 UUSetMsgCallback (FUNC_CB(uu_msg));
299 357
300void 358void
301UUSetBusyCallback(func=0,msecs=1000) 359UUSetBusyCallback (func = 0,msecs = 1000)
302 SV * func 360 SV * func
303 long msecs 361 long msecs
304 CODE: 362 CODE:
305 UUSetBusyCallback (FUNC_CB(uu_busy), msecs); 363 UUSetBusyCallback (FUNC_CB(uu_busy), msecs);
306 364
307void 365void
308UUSetFileCallback(func=0) 366UUSetFileCallback (func = 0)
309 SV * func 367 SV * func
310 CODE: 368 CODE:
311 UUSetFileCallback (FUNC_CB(uu_file)); 369 UUSetFileCallback (FUNC_CB(uu_file));
312 370
313void 371void
314UUSetFNameFilter(func=0) 372UUSetFNameFilter (func = 0)
315 SV * func 373 SV * func
316 CODE: 374 CODE:
317 UUSetFNameFilter (FUNC_CB(uu_fnamefilter)); 375 UUSetFNameFilter (FUNC_CB(uu_fnamefilter));
318 376
377void
378UUSetFileNameCallback (func = 0)
379 SV * func
380 CODE:
381 UUSetFileNameCallback (FUNC_CB(uu_filename));
382
319char * 383char *
320UUFNameFilter(fname) 384UUFNameFilter (fname)
321 char * fname 385 char * fname
322 386
323void 387void
324UULoadFile(fname,id=0,delflag=0) 388UULoadFile (fname, id = 0, delflag = 0, partno = -1)
325 char * fname 389 char * fname
326 char * id 390 char * id
327 int delflag 391 int delflag
392 int partno
328 PPCODE: 393 PPCODE:
329 { 394 {
330 int count; 395 int count;
331 396
332 XPUSHs(sv_2mortal(newSViv(UULoadFile (fname, id, delflag, &count)))); 397 XPUSHs (sv_2mortal (newSViv (UULoadFileWithPartNo (fname, id, delflag, partno, &count))));
333 if (GIMME_V == G_ARRAY) 398 if (GIMME_V == G_ARRAY)
334 XPUSHs(sv_2mortal(newSViv(count))); 399 XPUSHs (sv_2mortal (newSViv (count)));
335 } 400 }
336 401
337int 402int
338UUSmerge(pass) 403UUSmerge (pass)
339 int pass 404 int pass
340 405
341int 406int
342UUQuickDecode(datain,dataout,boundary,maxpos) 407UUQuickDecode(datain,dataout,boundary,maxpos)
343 FILE * datain 408 FILE * datain
413 char * from 478 char * from
414 char * subject 479 char * subject
415 int isemail 480 int isemail
416 481
417uulist * 482uulist *
418UUGetFileListItem(num) 483UUGetFileListItem (num)
419 int num 484 int num
420 485
486MODULE = Convert::UUlib PACKAGE = Convert::UUlib::Item
487
421int 488int
422UURenameFile(item,newname) 489rename (item, newname)
423 uulist *item 490 uulist *item
424 char * newname 491 char * newname
425 ALIAS: 492 CODE:
426 Convert::UUlib::Item::rename = 1 493 RETVAL = UURenameFile (item, newname);
494 OUTPUT:
495 RETVAL
427 496
428int 497int
429UUDecodeToTemp(item) 498decode_temp (item)
430 uulist *item 499 uulist *item
431 ALIAS: 500 CODE:
432 Convert::UUlib::Item::decode_temp = 1 501 RETVAL = UUDecodeToTemp (item);
502 OUTPUT:
503 RETVAL
433 504
434int 505int
435UURemoveTemp(item) 506remove_temp (item)
436 uulist *item 507 uulist *item
437 ALIAS: 508 CODE:
438 Convert::UUlib::Item::remove_temp = 1 509 RETVAL = UURemoveTemp (item);
510 OUTPUT:
511 RETVAL
439 512
440int 513int
441UUDecodeFile(item,target=0) 514decode (item, target = 0)
442 uulist *item 515 uulist *item
443 char * target 516 char * target
444 ALIAS: 517 CODE:
445 Convert::UUlib::Item::decode = 1 518 RETVAL = UUDecodeFile (item, target);
519 OUTPUT:
520 RETVAL
446 521
447void 522void
448UUInfoFile(item,func) 523info (item, func)
449 uulist *item 524 uulist *item
450 SV * func 525 SV * func
451 CODE: 526 CODE:
452 UUInfoFile(item,(void *)func,uu_info_file); 527 UUInfoFile (item,(void *)func, uu_info_file);
453 ALIAS:
454 Convert::UUlib::Item::info = 1
455
456MODULE = Convert::UUlib PACKAGE = Convert::UUlib::Item
457 528
458short 529short
459state(li) 530state(li)
460 uulist *li 531 uulist *li
461 CODE: 532 CODE:
489 RETVAL = li->size; 560 RETVAL = li->size;
490 OUTPUT: 561 OUTPUT:
491 RETVAL 562 RETVAL
492 563
493char * 564char *
494filename(li,newfilename=0) 565filename (li, newfilename = 0)
495 uulist *li 566 uulist *li
496 char * newfilename 567 char * newfilename
497 CODE: 568 CODE:
498 if (newfilename) 569 if (newfilename)
499 { 570 {
500 FP_free (li->filename); 571 _FP_free (li->filename);
501 li->filename = FP_strdup (newfilename); 572 li->filename = _FP_strdup (newfilename);
502 } 573 }
503 RETVAL = li->filename; 574 RETVAL = li->filename;
504 OUTPUT: 575 OUTPUT:
505 RETVAL 576 RETVAL
506 577
507char * 578char *
508subfname(li) 579subfname (li)
509 uulist *li 580 uulist *li
510 CODE: 581 CODE:
511 RETVAL = li->subfname; 582 RETVAL = li->subfname;
512 OUTPUT: 583 OUTPUT:
513 RETVAL 584 RETVAL
514 585
515char * 586char *
516mimeid(li) 587mimeid (li)
517 uulist *li 588 uulist *li
518 CODE: 589 CODE:
519 RETVAL = li->mimeid; 590 RETVAL = li->mimeid;
520 OUTPUT: 591 OUTPUT:
521 RETVAL 592 RETVAL
522 593
523char * 594char *
524mimetype(li) 595mimetype (li)
525 uulist *li 596 uulist *li
526 CODE: 597 CODE:
527 RETVAL = li->mimetype; 598 RETVAL = li->mimetype;
528 OUTPUT: 599 OUTPUT:
529 RETVAL 600 RETVAL
530 601
531char * 602char *
532binfile(li) 603binfile (li)
533 uulist *li 604 uulist *li
534 CODE: 605 CODE:
535 RETVAL = li->binfile; 606 RETVAL = li->binfile;
536 OUTPUT: 607 OUTPUT:
537 RETVAL 608 RETVAL
538 609
539# functions accessing internal data(!) 610# methods accessing internal data(!)
540 611
541void 612void
542parts(li) 613parts (li)
543 uulist *li 614 uulist *li
544 PPCODE: 615 PPCODE:
545 { 616 {
546 struct _uufile *p = li->thisfile; 617 struct _uufile *p = li->thisfile;
547 618
571 p = p->NEXT; 642 p = p->NEXT;
572 } 643 }
573 } 644 }
574 645
575BOOT: 646BOOT:
576uu_msg_sv = newSVsv(&PL_sv_undef); 647 uu_msg_sv = newSVsv(&PL_sv_undef);
577uu_busy_sv = newSVsv(&PL_sv_undef); 648 uu_busy_sv = newSVsv(&PL_sv_undef);
578uu_file_sv = newSVsv(&PL_sv_undef); 649 uu_file_sv = newSVsv(&PL_sv_undef);
579uu_fnamefilter_sv = newSVsv(&PL_sv_undef); 650 uu_fnamefilter_sv = newSVsv(&PL_sv_undef);
651 uu_filename_sv = newSVsv(&PL_sv_undef);
580 652

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines