tvkaista-0.982/Makefile tvkaista-0.983/Makefile
56 tvkaista.menu logo.pov Makefile gitlog && \56 tvkaista.menu logo.pov Makefile gitlog && \
57 echo Created tvkaista-$$ver.tar.gz57 echo Created tvkaista-$$ver.tar.gz
5858
59diffa:
60 case "$P" in '') usage: make diffa P=prevver; exit 1 ;; esac
61 ver=`sed -n 's/Version=//p' tvkaista.desktop`; \
62 diffa.sh 88 tvkaista-$P.tar.gz tvkaista-$$ver.tar.gz \
63 > diff-$P-`echo $$ver | sed 's/^0.//'`.html
64
59clean:65clean:
60 rm -f custom-list.o logo.png *~66 rm -f custom-list.o logo.png *~
6167

tvkaista-0.982/gitlog tvkaista-0.983/gitlog
1commit 79779b8dee749275a12771683f0b30139805f63d
2Author: Tomi Ollila <too@iki.fi>
3Date: Fri Jul 24 19:22:46 2009 +0300
4
5 .html, ei .tar.gz -pääte diffa-targetissa
6
7M Makefile
8
9commit dc7e2d794b1c3abff0d53f8c82305de95a85fd1b
10Author: Tomi Ollila <too@iki.fi>
11Date: Fri Jul 24 19:21:24 2009 +0300
12
13 diffa-aputargetti
14
15M Makefile
16
17commit cd68cabd9a9cc326010d6c238a889cca3f6750da
18Author: Tomi Ollila <too@iki.fi>
19Date: Fri Jul 24 19:16:09 2009 +0300
20
21 'memcasemem()' korvaa 'memmem()'-funktion suosikkilistassa...
22 ... eli case-insensitiiviset haut myös siellä.
23 Versio 0.983.
24
25M tvkaista.desktop
26M tvkaista_gtkui.c
27
1commit 3f3155cbb06deef87a98851dbbe6206ca0c7561b28commit 3f3155cbb06deef87a98851dbbe6206ca0c7561b
2Author: Tomi Ollila <too@iki.fi>29Author: Tomi Ollila <too@iki.fi>
3Date: Tue Jul 21 19:50:47 2009 +030030Date: Tue Jul 21 19:50:47 2009 +0300

tvkaista-0.982/tvkaista.desktop tvkaista-0.983/tvkaista.desktop
1[Desktop Entry]1[Desktop Entry]
2Encoding=UTF-82Encoding=UTF-8
3Version=0.9823Version=0.983
4Name=tv kaista4Name=tv kaista
5Comment=gui-kilentti tvkaistalle5Comment=gui-kilentti tvkaistalle
6GenericName=tvkaista-kilentti6GenericName=tvkaista-kilentti

tvkaista-0.982/tvkaista_gtkui.c tvkaista-0.983/tvkaista_gtkui.c
87 exit(1);87 exit(1);
88}88}
8989
90#include <ctype.h>
91
92#if 0
93//#ifndef HAVE_STRCASESTR
94char * strcasestr (char * haystack, char * needle)
95{
96 char * p, *startn = 0, *np = 0;
97
98 for (p = haystack; *p; p++) {
99 if (np) {
100 if (toupper(*p) == toupper(*np)) {
101 if (!*++np)
102 return startn;
103 } else
104 np = 0;
105 } else if (toupper(*p) == toupper(*needle)) {
106 np = needle + 1;
107 startn = p;
108 }
109 }
110
111 return 0;
112}
113#endif
114
115char * memcasemem(char * haystack, int haystacklen,
116 char * needle, int needlelen)
117{
118 while (haystacklen) {
119 if (toupper(*haystack) == toupper(*needle)) {
120 char * np = needle + 1;
121 char * snp = needle;
122 int nplen = needlelen - 1;
123 haystack++; haystacklen--;
124 while (haystacklen && nplen > 0) {
125 if (toupper(*haystack) != toupper(*np))
126 break;
127 haystack++; np++;
128 haystacklen--; nplen--;
129 }
130 if (nplen == 0)
131 return snp;
132 }
133 else {
134 haystack++;
135 haystacklen--;
136 }
137 }
138 return null;
139}
140
90#if 0141#if 0
91char * imp_create(void)142char * imp_create(void)
92{143{
322 int i;373 int i;
323 for (i = 0; lines[i].str; i++)374 for (i = 0; lines[i].str; i++)
324 {375 {
325 // memmem is GNU extension, although easy to implement on need.
326 if (memmem(record->program, plen, lines[i].str, lines[i].len))376 if (memcasemem(record->program, plen, lines[i].str, lines[i].len))
327 return true;377 return true;
328 }378 }
329 return false;379 return false;