File: CURIOSITY

package info (click to toggle)
kvirc2 2.1.3-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 16,308 kB
  • ctags: 9,533
  • sloc: cpp: 86,257; sh: 10,532; makefile: 631; perl: 419; ansic: 315; sed: 16
file content (202 lines) | stat: -rw-r--r-- 7,051 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
-24.01.99
...
make[1]: Entering directory `/usr/build/NEW_kvirc/kvirc/kvilib'
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde//include -I/usr/local/qt/include -I/usr/X11R6/include  -g -O2 -c kvi_mdi.cpp
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde//include -I/usr/local/qt/include -I/usr/X11R6/include -g -O2 -c -fPIC -DPIC kvi_mdi.cpp
In file included from kvi_mdi.cpp:39:
kvi_mdi.h:127: warning: ANSI C++ forbids initialization of member `m_captionFont'
kvi_mdi.h:127: Internal compiler error.
kvi_mdi.h:127: Please submit a full bug report to `egcs-bugs@cygnus.com'.
make[1]: *** [kvi_mdi.lo] Error 1
make[1]: Leaving directory `/usr/build/NEW_kvirc/kvirc/kvilib'
make: *** [install-recursive] Error 1


-24.02.99 [24 must be not a lucky day for egcs]

	KviExprTreeNode * pTop = 0;
	KviExprTreeNode ** ppNode = &pTop;
	...
	ppNode = &((*ppNode)->left());

kvi_expreval.cpp: In method `class KviExprTreeNode * KviAlgExpr::evaluateOperand()':
kvi_expreval.cpp:267: non-lvalue in unary `&'

	but... this one works...

	KviExprTreeNode * p = (*ppNode)->left();
	ppNode = &p;

	am I wrong ?

-25.04.99

A fuky Qt function :)

/*!  Returns a pointer to the pixmap for \a column, or a null pointer
  if there is no pixmap for \a column.

  This function works even if this item is not contained in a list
  view, but reimplementations of it are not required to work properly
  in that case.

  \sa setText() setPixmap()
*/

const QPixmap * QListViewItem::pixmap( int column ) const
{
    column = 0; //<------------What the hell is this ? :)
    QListViewPrivate::ItemColumnInfo * l
	= (QListViewPrivate::ItemColumnInfo*) columns;

    while( column && l ) {
	l = l->next;
	column--;
    }

    return (l && l->pm) ? l->pm : 0;
}

// Another Qt bug

QString QFileInfo::readLink() const
{
    char s[PATH_MAX+1];
#if defined(UNIX) && !defined(_OS_OS2EMX_)
    if ( !isSymLink() )
	return QString();
    int len = readlink( fn, s, PATH_MAX ); # <--- readlink does not put the terminator at the end; it is a bit unsafe
    if ( len < 0 )
	len = 0;				// error, return empty string #<-----What ?
#endif
    return s;				/#missing a QString.resize() here ?
}

-25.09.99

[22:19:44] Private conversation requested by Icewolf [~icewolf@193.120.142.251]
[22:19:44] <Icewolf> hi
[22:23:14] <BuTi> hi
[22:24:10] <Icewolf> did you write kvIRC?
[23:00:19] <BuTi> not really
[23:00:33] <BuTi> but i am helping pragma...
[23:00:48] <BuTi> and i wrote some pieces of code :)
[23:01:07] <Icewolf> in what language?
[23:01:10] <BuTi> c++
[23:01:11] <Icewolf> im writing IceIRC for win...
[23:01:33] <BuTi> and qt
[23:01:48] <BuTi> i never heared about iceIRC...
[23:02:01] <Icewolf> why not make mouse for kvIRC ?
[23:02:02] <Icewolf> heh
[23:02:15] <BuTi> make mouse?
[23:02:31] <BuTi> what is make mouse?
[23:02:46] <Icewolf> write mouse
[23:03:00] <Icewolf> sorry my english is bad
[23:03:23] <BuTi> what language are you better in?
[23:03:34] <Icewolf> Icelandic
[23:03:37] <BuTi> huch
[23:03:56] <Icewolf> Skiluru etta tunguml ? :P
[23:03:56] <Icewolf> hehe
[23:04:02] <BuTi> :)
[23:04:11] <BuTi> i do not understand a word...
[23:04:26] <BuTi> can you explain me "write mouse" ?
[23:05:59] <Icewolf> forget it
[23:06:02] <BuTi> ok
[05:59:46] [BuTi] prepares to go sleeping...


some pieces of really kewl code and "code":

#ifdef BRAIN_DAMAGED_AUTHOR_PARANOIA
#define I_DO_NOT_WANT_TO_HEAR_IT_ANYMORE_THAT_KVIRC_CAN_NOT_FIND_THE_BASE_PIXMAPS

void KviChannel::absurdWorkaroundForMaskEditorFocus()
{
	m_pMaskEditor->setFocus();
//	debug("focus widget = %s",g_pApp->focusWidget()->className());
}


kvi_config.cpp:239: warning: `class KviStr * pointer_that_IS_initialized'
	might be used uninitialized in this function
kvi_config.cpp: In method `class QRect KviConfig::readRectEntry(const char *, const class QRect &)':
kvi_config.cpp:364: warning: unused variable
	`int please_note_that_there_is_no__const_class_KviStr_this__pointer_here'
kvi_config.cpp:360: warning: `class KviStr * another_pointer_that_IS_initialized'
	might be used uninitialized in this function
kvi_config.cpp:365: warning: `const class KviStr * this'
	might be used uninitialized in this function



kvi_utoolbar.cpp: In method `KviUserToolBar::KviUserToolBar(class KviFrame *, class QWidget *)':
kvi_utoolbar.cpp:79: Internal compiler error.
kvi_utoolbar.cpp:79: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
kvi_utoolbar.cpp:79: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.

-19.12.1999

In file included from ../../kvilib/core/kvi_string.h:32,
                 from ../kvirc_plugin.h:30,
                 from libkvixmms.cpp:23:
/usr/include/stdio.h:400: Internal compiler error.
/usr/include/stdio.h:400: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
/usr/include/stdio.h:400: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
make[3]: *** [libkvixmms.lo] Error 1
make[3]: Leaving directory `/usr/build/kvirc/cvs/src/plugins/xmms'

WOW :)

- 15.5.2000

A bad day for egcs and my system:

(1)

In file included from kvi_scriptwizard.h:31,
                 from kvi_scriptwizard.cpp:22:
/usr/local/kde/qt-2.1/include/qcheckbox.h:63: `QCheckBox' as declarator (compiler error)
/usr/local/kde/qt-2.1/include/qcheckbox.h:63: confused by earlier errors, bailing out

(2)

c++ -DHAVE_CONFIG_H -I. -I. -I../../src   -pipe -I/usr/local/kde/./include   -I/usr/X11R6/include -I/usr/local/kde/qt-2.1/include -I/usr/X11R6/include -D_REENTRANT -I../common -I../kvilib -DGLOBAL_KVIRC_DIR=\"/usr/local/share/kvirc\"  -g -O2 -c kvi_taskbar.cpp
make[2]: *** [kvi_taskbar.o] Error 132 <-----eh ?
make[2]: Leaving directory `/usr/build/kvirc/cvs/src/kvirc'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/build/kvirc/cvs/src'
make: *** [install-recursive] Error 1

(3)

c++: Internal compiler error: program cc1plus got fatal signal 11
cpp: output pipe has been closed
{standard input}: Assembler messages:
{standard input}:1458: Warning: end of file not at end of a line; newline inserted
{standard input}:1605: Warning: Missing string
{standard input}:1605: Warning: .stabs: Missing comma

... got more of these today :)


- May 19 2000

../kvirc_plugin.h: In function `void kvirc_plugin_remove_hook(void *, int)':
In file included from libkvibiffsocket.cpp:31:
../kvirc_plugin.h:245: Internal compiler error.
../kvirc_plugin.h:245: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
../kvirc_plugin.h:245: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
make: *** [libkvibiffsocket.lo] Error 1

Well, seems egcs does not like KVIrc plugins:
-- Kristoff

Wow, another one, a few hours later:

libkvibiff.cpp: In method `KviBiffMailbox::KviBiffMailbox(const char *, const char *, const char *, unsigned int = 110)':
libkvibiff.cpp:64: Internal compiler error.
libkvibiff.cpp:64: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
libkvibiff.cpp:64: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.

isn't this sweet :) ?