]>
Commit | Line | Data |
---|---|---|
c3df1573 TP |
1 | diff -urN poldek-0.18.1.orig/vfile/Makefile.am poldek-0.18.1/vfile/Makefile.am |
2 | --- poldek-0.18.1.orig/vfile/Makefile.am Thu Oct 24 18:23:12 2002 | |
3 | +++ poldek-0.18.1/vfile/Makefile.am Fri May 2 10:55:06 2003 | |
4 | @@ -21,10 +21,10 @@ | |
5 | vlibs = vftp/libvftp.a vhttp/libvhttp.a | |
6 | ||
7 | noinst_PROGRAMS = sample ttest | |
8 | -sample_SOURCES = sample.c | |
9 | +sample_SOURCES = sample.c ../poldek_term.c ../log.c | |
10 | sample_LDADD = libvfile.a $(vlibs) @TRURL_LDFLAG@ $(LDADD_) $(top_srcdir)/sigint/libsigint.a | |
11 | ||
12 | -ttest_SOURCES = ttest.c | |
13 | +ttest_SOURCES = ttest.c ../poldek_term.c ../log.c | |
14 | ttest_LDADD = libvfile.a $(vlibs) @TRURL_LDFLAG@ $(LDADD_) $(top_srcdir)/sigint/libsigint.a | |
15 | EXTRA_DIST = $(VFCURL_SRCS) \ | |
16 | testcookie.c test_progress.c | |
17 | diff -urN poldek-0.18.1.orig/vfile/vfile.c poldek-0.18.1/vfile/vfile.c | |
18 | --- poldek-0.18.1.orig/vfile/vfile.c Tue Oct 29 17:55:56 2002 | |
19 | +++ poldek-0.18.1/vfile/vfile.c Fri May 2 10:59:25 2003 | |
20 | @@ -42,6 +42,7 @@ | |
21 | #include <trurl/nmalloc.h> | |
22 | ||
23 | #include "i18n.h" | |
24 | +#include "../poldek_term.h" | |
25 | ||
26 | #define VFILE_INTERNAL | |
27 | #include "vfile.h" | |
28 | @@ -224,6 +225,10 @@ | |
29 | return mod; | |
30 | } | |
31 | ||
32 | +const char *PR_URL(const char *url) { | |
33 | + return vf_url_slim_s(url, term_get_width()-strlen(_("Retrieving %s...\n"))-4); | |
34 | +} | |
35 | + | |
36 | int vfile_fetcha(const char *destdir, tn_array *urls, int urltype) | |
37 | { | |
38 | const struct vf_module *mod = NULL; | |
39 | diff -urN poldek-0.18.1.orig/vfile/vfile.h poldek-0.18.1/vfile/vfile.h | |
40 | --- poldek-0.18.1.orig/vfile/vfile.h Thu Nov 7 17:43:29 2002 | |
41 | +++ poldek-0.18.1/vfile/vfile.h Fri May 2 10:20:18 2003 | |
42 | @@ -189,7 +189,7 @@ | |
43 | ||
44 | /* short alias for */ | |
45 | #define CL_URL(url) vf_url_hidepasswd_s(url) | |
46 | -#define PR_URL(url) vf_url_slim_s(url, 60) | |
47 | +//#define PR_URL(url) vf_url_slim_s(url, 60) | |
48 | ||
49 | ||
50 |