H
humanmutantman
I stumbled across morse.c located at
http://c2.com/ward/morse/teach/morse.c
When I attempted to compile it with gcc 4.1.0 I get the following
errors:
morse.c:208: error: conflicting types for 'send'
morse.c:208: note: an argument type that has a default promotion
can't match an empty parameter name list declaration
morse.c:165: error: previous implicit declaration of 'send' was
here
Lines 208-216 are:
send(char code) {
register element;
do {
element = dit;
if (isdah(code)) element *= 3;
beep(TONE_ON, element);
beep(TONE_OFF, dit);
} while ((code >>= 1) != 1);
}
Can someone help me update morse.c to the 21st century? Thanks.
http://c2.com/ward/morse/teach/morse.c
When I attempted to compile it with gcc 4.1.0 I get the following
errors:
morse.c:208: error: conflicting types for 'send'
morse.c:208: note: an argument type that has a default promotion
can't match an empty parameter name list declaration
morse.c:165: error: previous implicit declaration of 'send' was
here
Lines 208-216 are:
send(char code) {
register element;
do {
element = dit;
if (isdah(code)) element *= 3;
beep(TONE_ON, element);
beep(TONE_OFF, dit);
} while ((code >>= 1) != 1);
}
Can someone help me update morse.c to the 21st century? Thanks.